Relative Content

Tag Archive for webrtc

How can I create a “limited” webrtc-connection?

In my webrtc-applications (peers in javascript, Windows, Firefox, my signalling server in C++):
peer1 starts the connection (sends offer) add tracks to the connection, peer2 gets offer and sends answer, adds own track.
All works good if user grants both peers all right to media (camera, mic) – getUserMedia resolved OK.
I’d like to create a “limited” connection: peer1 will not have rights for camera and mic, perr2 will have.

The problem is: peer1 can not call addTrack(), because it has not rights and tracks to send. So, negotiationneeded is not fired for it.

The question is: how can peer1 can force negotiationneeded event to start a connection process – send your offer etc ?

Error in file sigslot.h when building WebRTC version M120

I am building WebRTC using version M120 with the command:
gn gen out/clang/win_x64 –args=”target_os=”win” target_cpu=”x64″ is_component_build=false is_clang=true is_debug=false rtc_use_h264=true ffmpeg_branding=”Chrome” rtc_include_tests=false rtc_build_examples=false use_custom_libcxx=true” –ide=vs2022.

How remove a webrtc track and RtpSender/Receiver?

According to the MDN, RtcPeerConnection.removeTrack() “Tells the local end of the connection to stop
sending media from the specified track, without actually removing the corresponding RTCRtpSender
from the list of senders as reported by getSenders()”.
First I add video and audio track, webrtc connection works fine.

webrtc, how to createAnswerSdp without m=video?

I am using JSSIP to implement WebRTC phone, and I have an trouble when a video call comes in (the SDP contains m=video). I want create SDP to contain only audio,not m=video.But always createAnswer sdp have m=video and a=recvonly.