Questions tagged [rtcpeerconnection]
140 questions
0
votes
2 answers
Uncaught DOMException: Failed to construct 'RTCPeerConnection': Both username and credential are required when the URL scheme is "turn" or "turns"
Uncaught DOMException: Failed to construct 'RTCPeerConnection': Both username and credential are required when the URL scheme is "turn" or "turns".
I have getting error.
My code and coturn config are.
const iceConfiguration = {
iceServers:…

Miguel
- 377
- 1
- 17
0
votes
1 answer
How to send a MediaStream between two iframes
I have two iframe elements loaded with each their document, both of the same origin domain.
The document loaded in the first frame obtains some media stream (using getUserMedia) and will attach the stream to a player.
The document loaded in the…

Anto Joy
- 141
- 3
- 12
0
votes
1 answer
Can i re-use webRTC Peer Connection object for Multi user chat?
I have used WebRTC for my chat application. My idea is whenever any user has joined in the chat application then a new RTCPeerConnection object will create. The chat room will allow only one-to-one communication.
Example: Suppose User1 , User2 and…

user2986042
- 1,098
- 2
- 16
- 37
0
votes
1 answer
How to make WebRTC video streaming on local network working?
I'm trying to establish peer connection between two clients via WebRTC and then stream the video from camera through the connection. The problem is, there's no video shown on the remote side, although I can clearly see the remotePc.ontrack event was…

kejm
- 103
- 1
- 6
0
votes
1 answer
WebRTC with multiple Peer Connections - Stream between existing peer connections stop when a new connection is created
I am creating a video chat application for multiple users.The host initiates the call, when a second participant joins, a Peer Connection is created between host and the second participant.
When the third person joins, Peer connections are created…

Abhishek Pandey
- 300
- 1
- 13
0
votes
1 answer
How chrome://webrtc-internal measures the round trip time?
I have been analyzing the JSON file generated using chrome://webrtc-internal, while running webrtc on 2 PCS.
I looked at Stats API to verify how webrtc-internal computes the round trip time (RTT).
I found 2 ways:
RTC Remote Inbound RTP Video Stream…

Ahmad Alhilal
- 444
- 4
- 19
0
votes
1 answer
Video stream is not sent through my RTCPeerConnection
So I've put up this little test code modeling what's going on with the real version of what i have. In it I have set up 2 peer connections in the same file, each having a dedicated video element on the html. The problem is, when i start sharing the…

Igor Karpiuk
- 21
- 4
0
votes
1 answer
WebRTC showing black screen on IOS
If the broadcaster app (Android) and client app(IOS and Android) are connected to wifi in the same network, everything works fine. But when the broadcaster app is connected to mobile data connection, client app (IOS) shows black screen but the…

Peter Mora
- 1
- 2
0
votes
1 answer
proper teardown of a WebRTC RTCPeerConnection
I tried to do a simple WebRTC p2p video chat browser app. I setup a signal server and have two peers doing all the SDP and ICE handshakes. Some of my code snippet:
pc = new RTCPeerConnection(config);
pc.onicecandidate = (event) => {
…

Joe Lin
- 450
- 7
- 20
0
votes
1 answer
onaddstream event not working when 3rd person joined the room in webrtc
I am new here in webrtc, i have strange issue, when i worked with one to one user onaddstream event is working, i am getting its response, but after then 3rd person joined the room onaddstream event is not working, can anyone please help me how to…

Nikul Panchal
- 1,542
- 3
- 35
- 58
0
votes
1 answer
How should i pass a localStream object as an argument to an rtcpeerconnection addtrack method
I tried the code below
localPeerConnection.addTrack(await localStream)
remotePeerConnection.ontrack = () => {
const remoteStreamVideoElement = document.querySelector("#remoteStreamVideoElement")
remoteStreamVideoElement.srcObject =…
user12228909
0
votes
1 answer
Should I wait for RTCPeerConnection.setRemoteDescription() & RTCPeerConnection.addIceCandidate() Promises to settle?
RTCPeerConnection.setRemoteDescription() returns a Promise that resolves once the value of the connection's remoteDescription is successfully changed. Do I need to wait for this Promise to resolve successfully before…

dbotha
- 1,501
- 4
- 20
- 38
0
votes
0 answers
Can i edit a message sent via webRTC data channel?
Is there a way to edit any messages sent by the RTCDataChannel API for webRTC ?

D3V
- 88
- 5
0
votes
1 answer
OnNegotiationNeeded event in webrtc.PeerConnection not found (pion golang). But in official docs it show that it's there
ur.com/3Nydn.png
The official docs pion webrtc doc shows that *func (PeerConnection) OnNegotiationNeeded exists. But actually this event is not present in the PeerConnection object. It can be checked from the given screenshot. Also other events are…
0
votes
2 answers
RTCPeerConnection.generateCertificate() is returning an empty object
Here is the code (browser Chrome on Ubuntu):
RTCPeerConnection.generateCertificate(
{ name: "RSASSA-PKCS1-v1_5",
modulusLength: 2048,
publicExponent: new Uint8Array([1, 0, 1]),
…

asinix
- 966
- 1
- 9
- 22