Fixes issue with obtaining audio/video permissions when simulcast is disabled.

pull/213/merge
hristoterezov 11 years ago
parent 2ee5a92ef0
commit efc161dacd
  1. 13
      libs/modules/RTC.bundle.js
  2. 3
      libs/modules/statistics.bundle.js
  3. 2
      modules/RTC/RTCUtils.js

@ -321,6 +321,17 @@ module.exports = LocalStream;
* @constructor
*/
function MediaStream(data, sid, ssrc, eventEmmiter, browser) {
// XXX(gp) to minimize headaches in the future, we should build our
// abstractions around tracks and not streams. ORTC is track based API.
// Mozilla expects m-lines to represent media tracks.
//
// Practically, what I'm saying is that we should have a MediaTrack class
// and not a MediaStream class.
//
// Also, we should be able to associate multiple SSRCs with a MediaTrack as
// a track might have an associated RTX and FEC sources.
this.sid = sid;
this.stream = data.stream;
this.peerjid = data.peerjid;
@ -727,7 +738,7 @@ RTCUtils.prototype.getUserMediaWithConstraints = function(
});
} else {
RTCUtils.getUserMedia(constraints,
this.getUserMedia(constraints,
function (stream) {
console.log('onUserMediaSuccess');
success_callback(stream);

File diff suppressed because one or more lines are too long

@ -245,7 +245,7 @@ RTCUtils.prototype.getUserMediaWithConstraints = function(
});
} else {
RTCUtils.getUserMedia(constraints,
this.getUserMedia(constraints,
function (stream) {
console.log('onUserMediaSuccess');
success_callback(stream);

Loading…
Cancel
Save