I just want achieve one client send mediaSteam and another received the mediaSteam. So Receiver client needn't add localSteam.and i just code pc.addStream(null).But not work. How i achieve this by WebRtc?
相关问题
- ICE vs STUN vs TURN
- addIceCandidate with argument null result in error
- WEBRTC peer connection blocked by UAE?
- WebRTC iOS: remote video is not shown in iOS clien
- Get current IP in JS (no third party services) [du
相关文章
- Unable to Mute HTML5 Video Tag in Firefox
- Android WebRTC DataChannel binary transfer mode
- Is there a Webbrowser control that supports html5
- How to use WebRTC to stream video to RTMP?
- Camera on Xamarin WebView
- iceConnectionState is disconnected (when used over
- How to enable H264 on Android webRTC
- mDNS Support for WebRTC at Google Chrome M74
Don't call
pc.addStream
withnull
. Instead, just don't call it.You need to specify these RTCOfferOptions to
createOffer
:The reason is that by default, the offerer only offers to receive the same kinds of streams it is sending. I know, a dumb default, but it gives the offerer a bit more control. On the upside, there's no harm in always specifying these options, if it matches your desired behavior.