Fixes JS error in GUM
This commit is contained in:
parent
aeff387575
commit
73b9164150
|
@ -3205,11 +3205,16 @@ var RTCUtils = {
|
|||
var GUM = function (device, s, e) {
|
||||
this.getUserMediaWithConstraints(device, s, e, options);
|
||||
};
|
||||
|
||||
var deviceGUM = {
|
||||
"audio": GUM.bind(self, ["audio"]),
|
||||
"video": GUM.bind(self, ["video"]),
|
||||
"desktop": screenObtainer.obtainStream.bind(screenObtainer)
|
||||
"video": GUM.bind(self, ["video"])
|
||||
};
|
||||
|
||||
if(screenObtainer.isSupported()){
|
||||
deviceGUM["desktop"] = screenObtainer.obtainStream.bind(
|
||||
screenObtainer);
|
||||
}
|
||||
// With FF/IE we can't split the stream into audio and video because FF
|
||||
// doesn't support media stream constructors. So, we need to get the
|
||||
// audio stream separately from the video stream using two distinct GUM
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -656,11 +656,16 @@ var RTCUtils = {
|
|||
var GUM = function (device, s, e) {
|
||||
this.getUserMediaWithConstraints(device, s, e, options);
|
||||
};
|
||||
|
||||
var deviceGUM = {
|
||||
"audio": GUM.bind(self, ["audio"]),
|
||||
"video": GUM.bind(self, ["video"]),
|
||||
"desktop": screenObtainer.obtainStream.bind(screenObtainer)
|
||||
"video": GUM.bind(self, ["video"])
|
||||
};
|
||||
|
||||
if(screenObtainer.isSupported()){
|
||||
deviceGUM["desktop"] = screenObtainer.obtainStream.bind(
|
||||
screenObtainer);
|
||||
}
|
||||
// With FF/IE we can't split the stream into audio and video because FF
|
||||
// doesn't support media stream constructors. So, we need to get the
|
||||
// audio stream separately from the video stream using two distinct GUM
|
||||
|
|
Loading…
Reference in New Issue