Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

getUserMedia constraints change in FireFox Nightly

  • 1 отговор
  • 5 имат този проблем
  • 4 изгледи
  • Последен отговор от dominik_j_steiner

more options

In FF 24 it was possible to use navigator.mozGetUserMedia() with media constraints like this

{ audio: true, video: { mandatory: { maxWidth: 320, maxHeight: 240 }}}

In FF Nightly this produces now the error

navigator.getUserMedia error: NOT_SUPPORTED_ERR: maxWidth

Investigating into the src code the reason seems to be in the changes to MediaStreamTrack.webidl

https://github.com/mozilla/mozilla-central/blob/FIREFOX_24_0_RELEASE/dom/webidl/MediaStreamTrack.webidl

https://github.com/mozilla/mozilla-central/blob/master/dom/webidl/MediaStreamTrack.webidl

Is there any plans to add validation of minWidth/maxWidth/minHeight/maxHeight to the media constraints? Or is there any reason for having removed the possibility to set those in moxGetUserMedia?

Thanks

In FF 24 it was possible to use navigator.mozGetUserMedia() with media constraints like this { audio: true, video: { mandatory: { maxWidth: 320, maxHeight: 240 }}} In FF Nightly this produces now the error navigator.getUserMedia error: NOT_SUPPORTED_ERR: maxWidth Investigating into the src code the reason seems to be in the changes to MediaStreamTrack.webidl https://github.com/mozilla/mozilla-central/blob/FIREFOX_24_0_RELEASE/dom/webidl/MediaStreamTrack.webidl https://github.com/mozilla/mozilla-central/blob/master/dom/webidl/MediaStreamTrack.webidl Is there any plans to add validation of minWidth/maxWidth/minHeight/maxHeight to the media constraints? Or is there any reason for having removed the possibility to set those in moxGetUserMedia? Thanks

Всички отговори (1)

more options