You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario
1 – First user initially joins the room. That user is in datachannel only mode (dcOnly = true using url parameter ?dcOnly=true).
2 – 2nd user joins the room. The 2nd user is also in datachannel only mode (dcOnly = true).
3 – Then one of the users starts video (Turn on Camera button).
4 – Same for 2nd user, also starts video.
What we want to do is to go from datachannel only mode to normal conference mode without closing the datachannel connection and reconnecting with webrtcadaptor.onlyDataChannel = true, basically dynamically switch from one mode to the other maintaining the connection and the same stream id.
mekya
changed the title
Provide onlyDataChannel to video/audio publisher sample on codepen.io
Open webrtc adaptor without camera/mic and open video/audio on the fly - Provide live sample on the codepen.io
Jul 26, 2023
Please pay attention that second parameter is critical and it is the stream id of your current active broadcast. webRTCAdaptor uses that value to change the tracks of the peer connection on the fly.
Scenario
1 – First user initially joins the room. That user is in datachannel only mode (dcOnly = true using url parameter ?dcOnly=true).
2 – 2nd user joins the room. The 2nd user is also in datachannel only mode (dcOnly = true).
3 – Then one of the users starts video (Turn on Camera button).
4 – Same for 2nd user, also starts video.
What we want to do is to go from datachannel only mode to normal conference mode without closing the datachannel connection and reconnecting with webrtcadaptor.onlyDataChannel = true, basically dynamically switch from one mode to the other maintaining the connection and the same stream id.
Discussed here
https://github.com/orgs/ant-media/discussions/5367
The text was updated successfully, but these errors were encountered: