webrtc / apprtc

appr.tc has been shutdown. Please use the Dockerfile to run your own test/dev instance.
BSD 3-Clause "New" or "Revised" License
4.16k stars 1.37k forks source link

createOffer: TypeError: window.RTCSessionDescription is not a constructor #643

Open zhangmingwalker1633 opened 4 years ago

zhangmingwalker1633 commented 4 years ago

Browsers and versions affected windows Firefox 40.0

Description ubuntu 16.04 it seems turn server works properly,and collider server works properly ,and apprtc server works properly; but when I create room_server,I cannot get video in Firefox ; the web consol log as below:(url:http://192.168.8.156:8080/r/896312024) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 0.156: Initializing; server= undefined. apprtc.debug.js:6544:5 0.157: Initializing; room=undefined. apprtc.debug.js:6544:5 8.042: Opening signaling channel. apprtc.debug.js:6544:5 8.092: Signaling channel opened. apprtc.debug.js:6544:5 8.188: Joined the room. apprtc.debug.js:6544:5 8.188: Registering signaling channel. apprtc.debug.js:6544:5 8.188: Signaling channel registered. apprtc.debug.js:6544:5 12.291: Got access to local media with mediaConstraints: '{"video":true,"audio":true}' apprtc.debug.js:6544:5 12.291: User has granted access to local media. apprtc.debug.js:6544:5 12.294: Attaching local stream. apprtc.debug.js:6544:5 12.294: Starting signaling. apprtc.debug.js:6544:5 12.298: Creating RTCPeerConnnection with: config: '{"rtcpMuxPolicy":"require","iceServers":[{"credential":"helloword","username":"helloword","urls":["turn:192.168.8.156:3478?transport=udp","turn:192.168.8.156:3478?transport=tcp"]}],"bundlePolicy":"max-bundle"}'; constraints: '{"optional":[]}'. apprtc.debug.js:6544:5 12.354: Created PeerConnectionClient apprtc.debug.js:6544:5 12.354: Adding local stream. apprtc.debug.js:6544:5 12.355: Sending offer to peer, with constraints: '{"offerToReceiveAudio":1,"offerToReceiveVideo":1,"voiceActivityDetection":false}'. apprtc.debug.js:6544:5 12.359: No preference on audio receive codec. apprtc.debug.js:6544:5 12.359: Prefer video receive codec: VP9 apprtc.debug.js:6544:5 12.360: createOffer: TypeError: window.RTCSessionDescription is not a constructor apprtc.debug.js:6544:5

jan-ivar commented 4 years ago

Firefox 40 was released on August 11, 2015. To stay safe, please update to a modern version, currently 71 (or 68 if you're on ESR).