gecko-dev/dom/media/webrtc
Andreas Pehrson f5d34fea0d Bug 1430856 - Default to two default capabilities when a camera can handle anything. r=jib
If a camera returns no capabilities we interpret it as it being able to handle
any capability we throw at it. However, we also end up trying to start it with
the default capability of 0x0@0. This often works, but we can crash when
rescaling it to the chosen target capability 0x0@0.

With this patch we inject up to two default capabilities, one at 640x480@30 and
one at 1280x720@30. With constraints present we'll try to adjust these defaults
so they fit within the constraints while at the same time preserve the
aspect ratio given by prefs.

MozReview-Commit-ID: 3mr7Li5TTbV

--HG--
extra : rebase_source : c525c2fd8d60f5dece548216caefc4976e9afb0b
2018-02-13 20:22:18 +01:00
..
AllocationHandle.h Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib 2018-01-24 16:49:13 +01:00
MediaEngine.h Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons 2018-01-31 19:02:00 +01:00
MediaEngineDefault.cpp Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons 2018-01-31 19:02:00 +01:00
MediaEngineDefault.h Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons 2018-01-31 19:02:00 +01:00
MediaEnginePrefs.h Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib 2018-01-24 16:49:13 +01:00
MediaEngineRemoteVideoSource.cpp Bug 1430856 - Default to two default capabilities when a camera can handle anything. r=jib 2018-02-13 20:22:18 +01:00
MediaEngineRemoteVideoSource.h Bug 1430856 - Default to two default capabilities when a camera can handle anything. r=jib 2018-02-13 20:22:18 +01:00
MediaEngineSource.cpp Bug 1434628 - Unbust --disable-webrtc builds. r=padenot, a=me 2018-01-31 16:59:53 +01:00
MediaEngineSource.h Bug 1299516 - Allow MediaEngines to Start() and Stop() without affecting tracks. r=jib, r=padenot 2017-12-18 16:19:33 +01:00
MediaEngineTabVideoSource.cpp Bug 1435673 - Fix calling Deallocate() without SetTrack(). r=padenot 2018-02-05 10:48:23 +01:00
MediaEngineTabVideoSource.h Bug 1299516 - Allow MediaEngines to Start() and Stop() without affecting tracks. r=jib, r=padenot 2017-12-18 16:19:33 +01:00
MediaEngineWebRTC.cpp Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons 2018-01-31 19:02:00 +01:00
MediaEngineWebRTC.h Bug 1434600 - Add a method to clean up by window ID, on a MediaEngine. r=pehrsons 2018-01-31 19:02:00 +01:00
MediaEngineWebRTCAudio.cpp Bug 1435673 - Strengthen some MediaEngineWebRTCMicrophoneSource asserts. r=padenot 2018-02-05 10:58:21 +01:00
MediaTrackConstraints.cpp Bug 1434628 - Unbust --disable-webrtc builds. r=padenot, a=me 2018-01-31 16:59:53 +01:00
MediaTrackConstraints.h Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib 2018-01-24 16:49:13 +01:00
moz.build Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib 2018-01-24 16:49:13 +01:00
nsITabSource.idl
PeerIdentity.cpp
PeerIdentity.h Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium 2017-02-27 11:41:52 -05:00
PWebrtcGlobal.ipdl
RTCCertificate.cpp bug 1421084 - part 4/4 - remove nsNSSShutDown.h and (hopefully) all references to it r=mt,ttaubert 2018-01-24 14:44:01 -08:00
RTCCertificate.h bug 1421084 - part 4/4 - remove nsNSSShutDown.h and (hopefully) all references to it r=mt,ttaubert 2018-01-24 14:44:01 -08:00
RTCIdentityProviderRegistrar.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
RTCIdentityProviderRegistrar.h
SineWaveGenerator.h Bug 1296531 - Break out SineWaveGenerator from MediaEngineDefault. r=jesup 2017-02-17 11:48:33 +01:00
WebrtcGlobal.h Bug 1414171 - pt 2 - Sort ICE stats by componentId on about:webrtc. r=drno 2018-01-30 22:23:54 -06:00