Commit Graph

500 Commits

Author SHA1 Message Date
Jan-Ivar Bruaroey
bd5e812679 Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey
5d2ce17581 Bug 1213517 - Consider competing required constraints with OverconstrainedError. r=padenot
MozReview-Commit-ID: EHIY1hpaEQn

--HG--
extra : rebase_source : 0dc2ff54f4e1fb907074d4e71c96f25d50fad81a
2016-06-14 14:42:46 -04:00
Jan-Ivar Bruaroey
3c55d4bc05 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey
03873bf4ff Bug 1213517 - Introduce AllocationHandle to MediaEngine::Allocate(). r=jesup
MozReview-Commit-ID: FKgK8OTwqbL

--HG--
extra : rebase_source : b9532bc739e0f7ec78e2b964f7cf074981354332
2016-06-30 15:43:24 -04:00
Jan-Ivar Bruaroey
594073da3e Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Jan-Ivar Bruaroey
9e1ebfb7eb Bug 1213517 - make track.applyConstraints() store constraints on success. r=jesup
MozReview-Commit-ID: CqTgWuBXSyD

--HG--
extra : rebase_source : c65cf51dfd3279820e2cb6262a369ce12490c946
2015-11-18 22:17:09 -05:00
Jan-Ivar Bruaroey
6c6a61c82b Bug 1213517 - split off MediaTaskUtils.h from MediaUtils.h to shed dependencies. r=jesup
MozReview-Commit-ID: DQz12SN0SU1

--HG--
rename : dom/media/systemservices/MediaUtils.h => dom/media/systemservices/MediaTaskUtils.h
extra : rebase_source : bd2b2a22b0bc5f92e071534bf13ef3a6880edbd9
2015-11-18 22:40:41 -05:00
Iris Hsiao
0d054175d7 Backed out changeset 3764e2fac765 (bug 1213517) 2016-07-18 15:42:06 +08:00
Iris Hsiao
3366ed3525 Backed out changeset 015cb0829df5 (bug 1213517) 2016-07-18 15:41:47 +08:00
Iris Hsiao
725d265c2c Backed out changeset 0fc93ec9ccd7 (bug 1213517) 2016-07-18 15:41:37 +08:00
Iris Hsiao
49a7efff23 Backed out changeset 6ed917c7d94d (bug 1213517) 2016-07-18 15:41:28 +08:00
Iris Hsiao
e028907323 Backed out changeset 05b370d75989 (bug 1213517) 2016-07-18 15:40:56 +08:00
Iris Hsiao
19bd7b2143 Backed out changeset c0c0d3eb6dc9 (bug 1213517) 2016-07-18 15:40:34 +08:00
Iris Hsiao
463c07d354 Backed out changeset e4829b553f9e (bug 1213517) 2016-07-18 15:40:20 +08:00
Iris Hsiao
7a103775dc Backed out changeset 85832c026282 (bug 1213517) 2016-07-18 15:40:03 +08:00
Iris Hsiao
d6cc817c38 Backed out changeset eca5b39db393 (bug 1213517) 2016-07-18 15:39:22 +08:00
Iris Hsiao
95230874f7 Backed out changeset 97d42349adb9 (bug 1213517) 2016-07-18 15:39:16 +08:00
Jan-Ivar Bruaroey
5466655711 Bug 1213517 - Make applyConstraints() and getSettings() do nothing after stop and shutdown. r=jesup
MozReview-Commit-ID: Ez2Wmsoy617

--HG--
extra : rebase_source : b4efaab09652ce3cc5a421c47574c42c6c22f073
2016-07-06 16:55:58 -04:00
Jan-Ivar Bruaroey
018c5b2f42 Bug 1213517 - Wire up getSettings(). r=padenot
MozReview-Commit-ID: EX5FIo3rCoi

--HG--
extra : rebase_source : c9a814eb3fbc0a7455ec7c290c3c074cf1b45e7e
2016-06-20 00:38:25 -04:00
Jan-Ivar Bruaroey
e99934e5ab Bug 1213517 - Normalize even more of the constraints code. r=padenot
MozReview-Commit-ID: 1XjdHXKYOmP

--HG--
extra : rebase_source : 6e6c05b9ffe6722decb6918667b83a3f9d6bfd8b
2016-06-17 15:20:10 -04:00
Jan-Ivar Bruaroey
357d904c2e Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey
a524803ec5 Bug 1213517 - Consider competing required constraints with OverconstrainedError. r=padenot
MozReview-Commit-ID: EHIY1hpaEQn

--HG--
extra : rebase_source : 0dc2ff54f4e1fb907074d4e71c96f25d50fad81a
2016-06-14 14:42:46 -04:00
Jan-Ivar Bruaroey
0cf2bc99b9 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey
6fa827422b Bug 1213517 - Introduce AllocationHandle to MediaEngine::Allocate(). r=jesup
MozReview-Commit-ID: FKgK8OTwqbL

--HG--
extra : rebase_source : b9532bc739e0f7ec78e2b964f7cf074981354332
2016-06-30 15:43:24 -04:00
Jan-Ivar Bruaroey
e7503fa4a5 Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Jan-Ivar Bruaroey
9f04ae2af4 Bug 1213517 - make track.applyConstraints() store constraints on success. r=jesup
MozReview-Commit-ID: CqTgWuBXSyD

--HG--
extra : rebase_source : c65cf51dfd3279820e2cb6262a369ce12490c946
2015-11-18 22:17:09 -05:00
Jan-Ivar Bruaroey
0f80ae56ec Bug 1213517 - split off MediaTaskUtils.h from MediaUtils.h to shed dependencies. r=jesup
MozReview-Commit-ID: DQz12SN0SU1

--HG--
rename : dom/media/systemservices/MediaUtils.h => dom/media/systemservices/MediaTaskUtils.h
extra : rebase_source : bd2b2a22b0bc5f92e071534bf13ef3a6880edbd9
2015-11-18 22:40:41 -05:00
stefanh@inbox.com
51626f0a16 Bug 1284007 - Remove obsolete OS X version checks in dom/media. r=cpearce, jesup. 2016-07-07 18:22:41 +02:00
ctai
fd36b32d94 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW

--HG--
extra : transplant_source : %D2%18%E3%3B%0C%D8%F04%F3%EB%EB%A0%A7%8B%B1%A9%AB%97rY
2016-06-30 15:07:48 +08:00
Andreas Pehrson
e028368c0f Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa

--HG--
extra : rebase_source : b1c2073c638bb65c19a0f40e8d17e9a5bae15c98
extra : source : c6d854b3209e7de7d97153c0bfc492c1d5f1e6b5
2016-06-29 12:27:13 +02:00
Jan-Ivar Bruaroey
331e5e1013 Bug 1281866 - Rename gUM's SourceUnavailableError to NotReadableError. r=padenot
MozReview-Commit-ID: 53703E0DLHf

--HG--
extra : rebase_source : 3437b796d90627d4858637e4a26fe3626d07cd3a
2016-06-23 14:08:52 -04:00
Andrew McCreight
9b9bcbfa17 Bug 1276383 - Add nsIAsyncShutdown.xpcomWillShutdown and use it in WebRTC. r=Yoric,jib 2016-06-01 15:05:53 -07:00
Jan-Ivar Bruaroey
0645564b21 Bug 1257950 - getUserMedia switched from SecurityError to NotAllowedError. r=jesup
MozReview-Commit-ID: Di8fDDFkpwX

--HG--
extra : rebase_source : d6f69321bc1a469ad29ec541aaf25ca2a62661cf
2016-05-08 22:29:46 -04:00
Jan-Ivar Bruaroey
5f0b39e57e Bug 802326 - make getUserMedia fail audio+video request unless user shares both. r=jesup
MozReview-Commit-ID: GG9ZkEe5Eao

--HG--
extra : rebase_source : a0e21953c882faebbc8a2953fffd03a951c2abbd
2016-05-05 21:54:04 -04:00
Jan-Ivar Bruaroey
6cd0bf07c3 Bug 802326 - make getUserMedia fail audio+video request unless user has both. r=jesup
MozReview-Commit-ID: 8o7p3B6fD5r

--HG--
extra : rebase_source : efe99cfeb7c99c53d3840292a61acc484414d116
2016-05-05 17:11:53 -04:00
Jan-Ivar Bruaroey
f8910bc751 Bug 802326 - make getUserMedia fail if required video constraints aren't met, regardless of audio. r=jesup
MozReview-Commit-ID: BVT7vyNbatH

--HG--
extra : rebase_source : 81c90431da89f6e78bbb7db9e3120e34ab197323
2016-05-05 15:46:04 -04:00
Jean-Yves Avenard
d31cb0499b Bug 1206637: P2. Replace all cached preferences with MediaPrefs ones. r=cpearce
Additionally, clean up stray and unused Preferences.h header.

MozReview-Commit-ID: IcPrD2inkDE

--HG--
extra : rebase_source : c3c6e37767627db3601090c2855a3dfa98cb4368
2016-05-10 11:02:28 +10:00
Kyle Huey
7579799b01 Bug 1266595: Replace Chromium Task with Runnable. r=froydnj 2016-04-27 17:06:05 -07:00
Yoshi Huang
ba1bb72568 Bug 1263496 - Part 3: fix for nsNullPrincipal::Create
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=nsNullPrincipal::Create(&redirect=true
that needs to inherit origin attributes.
2016-04-27 18:38:07 +08:00
Jonathan Watt
2bb448cbb2 Bug 1267509 - Make nsContentSecurityManager::IsURIPotentiallyTrustworthy act on an nsIPrincipal. r=bz
MozReview-Commit-ID: Zu1zU4Brkx

--HG--
rename : dom/security/test/unit/test_isURIPotentiallyTrustworthy.js => dom/security/test/unit/test_isOriginPotentiallyTrustworthy.js
2016-04-26 11:30:43 +01:00
ctai
4e89100cf8 Bug 1266644 - Rename DOMMediaStream:: CreateXXXStream to DOMMediaStream:: CreateXXXStreamAsInput. r=jesup r=pehrsons
MozReview-Commit-ID: 4X0Q1XuENa4
2016-04-25 11:43:27 +08:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Randell Jesup
90f6a18287 Bug 1265641: Move AEC tail length and delay-agnostic settings to getUserMedia r=padenot
MozReview-Commit-ID: 6vHQlmt9lxR
2016-04-19 20:20:45 -04:00
Andreas Pehrson
ee5913bb8b Bug 1208371 - Move MediaStreamTrack's label to MediaStreamTrackSource. r=jib
MozReview-Commit-ID: Aj7Cht4zxc6

--HG--
extra : rebase_source : c454a9f2b81a6a1eb574c1abee0fab64abbe5b72
2016-01-22 16:27:37 +08:00
Andreas Pehrson
be74876e25 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU

--HG--
extra : rebase_source : 296e269bb46fc5a85a9c3f90dfc0dc40e53572bc
2016-04-06 14:56:44 +02:00
Andreas Pehrson
ef44cb89cc Bug 1208371 - Add a track getter to gUM for fake tracks. r=jib
MozReview-Commit-ID: 8kc4ehGFBX7

--HG--
extra : rebase_source : 3903fcc108a9f76e26013a6e2888591ccdd66488
2016-04-06 14:47:43 +02:00
Andreas Pehrson
f46a162bda Bug 1208371 - Add PeerIdentity to LocalTrackSource for gUM tracks. r=mt
MozReview-Commit-ID: FhEyMxreaIx

--HG--
extra : rebase_source : dd3b5970099f29c5f956e20f302a091b38eb95fd
2016-01-05 10:16:29 +08:00
Andreas Pehrson
eb7cd31741 Bug 1208371 - Make PeerIdentity RefCounted. r=mt
This so it can be shared between multiple tracks.

MozReview-Commit-ID: 3mjQImVY0f8

--HG--
extra : rebase_source : 9c8d11bb38e06a2cf5f7bf1c24ca657e28387682
2016-01-05 10:16:28 +08:00
Andreas Pehrson
a47ce20618 Bug 1208371 - Rename CreateOwnDOMTrack/CreateClonedDOMTrack to CreateDOMTrack/CloneDOMTrack. r=jib
MozReview-Commit-ID: DOGiwcYycJY

--HG--
extra : rebase_source : 197fc7a7c5d36200f987c38f26ab77ec8ea2d290
2016-01-05 10:16:26 +08:00
Andreas Pehrson
50e2cdae29 Bug 1208371 - Kill nsDOMUserMediaStream with fire. r=jib
MozReview-Commit-ID: 4KWvwqRj6Qc

--HG--
extra : rebase_source : 2d305763710b6f7750a9b6300513493fa96e48b6
2016-01-24 16:05:16 +08:00