TechTeamer/janus-api

awesome plugin

Closed this issue · 24 comments

Looks very clean compare with the official one, it would be good if you could do some docs for it, i have a looked around and just don't know where to start with this

Hi Jason!

For examples, please take a look at test folder

Those test are running in browser, see test/buildtest.js

Which node version are you using?

we use ws library on nodejs side to have websocket, in the browser we did not need it. You can check: https://github.com/TechTeamer/janus-api/blob/master/src/WebSocket.js

Try not to include ws in the build

May be this can help: socketio/socket.io-client#933

I've successfully built sample react app by putting externals: ['ws'] line in the webpack configuration node_modules/react-scripts/config/webpack.config.dev.js

however i couldn't find a way how to override that webpack config :S
but this is a quick and dirty solution:

  "scripts": {
    "start": "rm -rf ./node_modules/ws && react-scripts start",
    "build": "rm -rf ./node_modules/ws && react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }

For one client you should create a publisher and several listeners

screen shot 2018-05-22 at 3 40 13 am

also have you come across this error?

yep, its not a real error. slow_link means that janus discovered that one of the connection is weak.

ok so its good then, if reduce the video res should be fix this warning right

one more question while i have you online

  1. if want to make a video chat(more than one publisher) just do more than one publisher, is that correct.

  2. is it possible to do 1 one 1 call with the plugin