Browse Source

Firefox 44 has fixed gUM permission indicator, so limiting workaround to 43 and lower.

pull/265/head
Simon Eisenmann 10 years ago
parent
commit
814615ad35
  1. 4
      static/js/mediastream/usermedia.js

4
static/js/mediastream/usermedia.js

@ -35,8 +35,8 @@ define(['jquery', 'underscore', 'audiocontext', 'mediastream/dummystream', 'webr @@ -35,8 +35,8 @@ define(['jquery', 'underscore', 'audiocontext', 'mediastream/dummystream', 'webr
_.each(tracks, function(t) {
t.stop();
});
if (window.webrtcDetectedBrowser === "firefox") {
// Always call stop for Firefox as long as it is available.
if (window.webrtcDetectedBrowser === "firefox" && window.webrtcDetectedVersion < 44) {
// Always call stop for older Firefox < 44 to make sure gUM is correctly cleaned up.
// https://bugzilla.mozilla.org/show_bug.cgi?id=1192170
if (stream.stop) {
stream.stop();

Loading…
Cancel
Save