|
|
@@ -138,7 +138,8 @@ function initRawEnumerateDevicesWithCallback() {
|
|
138
|
138
|
// "ReferenceError: Can't find variable: MediaStreamTrack" when
|
|
139
|
139
|
// Temasys plugin is not installed yet, have to delay this call
|
|
140
|
140
|
// until WebRTC is ready.
|
|
141
|
|
- : MediaStreamTrack && MediaStreamTrack.getSources
|
|
|
141
|
+ : typeof MediaStreamTrack !== 'undefined'
|
|
|
142
|
+ && MediaStreamTrack.getSources
|
|
142
|
143
|
? function(callback) {
|
|
143
|
144
|
MediaStreamTrack.getSources(
|
|
144
|
145
|
sources =>
|