muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.77k stars 3.95k forks source link

RTCMultiConnection.js -> CheckDeviceSupport() #275

Open Skalkaz opened 10 years ago

Skalkaz commented 10 years ago

error in win7 + safari: ReferenceError: Can't find variable: MediaStreamTrack

Solution: around at the 4017 line, instead of if (!navigator.getMediaDevices && MediaStreamTrack && MediaStreamTrack.getSources) { navigator.getMediaDevices = MediaStreamTrack.getSources.bind(MediaStreamTrack); }

it should be: if (!navigator.getMediaDevices && window.MediaStreamTrack && MediaStreamTrack.getSources) { navigator.getMediaDevices = MediaStreamTrack.getSources.bind(MediaStreamTrack); }

muaz-khan commented 10 years ago

Please use latest RTCMultiConnection builds. This issue is fixed in v2.*.*:

// v2.1.7 is latest one
npm install rtcmulticonnection

// or directly link the file
https://cdn.webrtc-experiment.com/RTCMultiConnection-v2.1.7.js

// or preferred one
https://cdn.webrtc-experiment.com/RTCMultiConnection.js

PluginRTC: v2.1.7 auto loads Plugin.EveryWhere.js for IE/Safari:

https://cdn.webrtc-experiment.com/Plugin.EveryWhere.js