rtcpeerconnection

addIceCandidate with argument null result in error

痴心易碎 提交于 2020-06-27 17:54:28
问题 I am trying to learn WebRTC, I had achieved connecting two RTCPeerConnection in same page and I am now attempting to separate them into two separate pages and connects them. However, after code are written and exchanged offer and answer, I noticed addIceCandidate() on initiator.html will always throw this with null argument Error at addIceCandidate from queue: TypeError: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Candidate missing values for both sdpMid and sdpMLineIndex at

Unable to fetch IP V4 address from RTCPeerConnection - chrome

我的梦境 提交于 2020-01-22 12:59:06
问题 I need to fetch the client local IP address from a web application. For which I am using a standard RTCPeerConnection implementation to fetch. But the ice candidate that is returned does not carry the IP V4 address, but an address that look like a guid: asdf-xxxx-saass-xxxx.local But surprisingly this chrome extension is able to fetch the same on same machine and browser. Note: code that I used in web application is same as of the extension This is the html code for same: <html> <head>

How to set remote description for a WebRTC caller in Chrome without errors?

[亡魂溺海] 提交于 2019-12-17 21:08:01
问题 I hope there is no flaw in the logic. Step 1: caller creates offer Step 2: caller sets localDescription Step 3: caller sends the description to the callee //------------------------------------------------------// Step 4: callee receives the offer sets remote description Step 5: callee creates answer Step 6: callee sets local description Step 7: callee send the description to caller //------------------------------------------------------// Step 8: caller receives the answer and sets remote

RTCPeerConnection and createDataChannel not working for Edge

故事扮演 提交于 2019-12-13 17:24:38
问题 I have been working on an application where when a person logs into an account, the IP address of the device is stored in the backend and local storage. Then when a person logs into the same account from another browser or so, it will show a popup with the last login IP address. It seems to work on chrome and Mozilla but not working in edge browser. It always returns null because it's not entering the code after pc.createDataChannel. The code snippet is as below. const getIpAddress = state =>

Unable to fetch IP V4 address from RTCPeerConnection - chrome

久未见 提交于 2019-12-03 20:40:38
I need to fetch the client local IP address from a web application. For which I am using a standard RTCPeerConnection implementation to fetch. But the ice candidate that is returned does not carry the IP V4 address, but an address that look like a guid: asdf-xxxx-saass-xxxx.local But surprisingly this chrome extension is able to fetch the same on same machine and browser. Note: code that I used in web application is same as of the extension This is the html code for same: <html> <head> <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.js"></script> <script type="text