Posts

Showing posts from December 30, 2018

WebRTC video is not displaying

Image
0 1 i am creating one-to-one webrtc video chatroom and this code does not working and i wanna know why function hasUserMedia(){ navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; return !!navigator.getUserMedia; } function hasRTCPeerConnection() { window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; return !!window.RTCPeerConnection; } function startPeerConnection(stream) { var configuration = { "iceServers": [{ "url": "stun:stun.1.google.com:19302" }] }; yourConnection = new RTCPeerConnection(configuration); theirConnection = new webkitRTCPeerConnection(configuration); yourConnection.addStream(stream); the...