Browse Source

Bumped constraints support for HD to FF 40 to make sure MJPEG works fine.

pull/188/head
Simon Eisenmann 10 years ago
parent
commit
5bea610568
  1. 6
      static/js/services/constraints.js

6
static/js/services/constraints.js

@ -194,10 +194,10 @@ @@ -194,10 +194,10 @@
var version = $window.webrtcDetectedVersion;
// Constraints support table.
return {
// Chrome supports it. See https://wiki.mozilla.org/Media/getUserMedia for FF details.
// Chrome supports it. FF supports new spec starting 38. See https://wiki.mozilla.org/Media/getUserMedia for FF details.
audioVideo: isChrome || (isFirefox && version >= 38),
// HD constraints in Chrome no issue. In FF we just assume MJPEG is fixed with FF 38 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1151628).
hdVideo: isChrome || (isFirefox && version >= 38),
// HD constraints in Chrome no issue. In FF we MJPEG is fixed with 40 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1151628).
hdVideo: isChrome || (isFirefox && version >= 40),
// Chrome supports this on Windows only.
renderToAssociatedSink: isChrome && $window.navigator.platform.indexOf("Win") === 0,
chrome: isChrome,

Loading…
Cancel
Save