Andreas Pehrson
1fc0f176be
Bug 1320994 - Unify MediaManager logging macros. r=jib
...
MozReview-Commit-ID: 14b6cXgOqP8
--HG--
extra : rebase_source : 0170fb2dcf5856e04cb198eaeb7cbd6b296857b4
2017-03-29 12:06:49 +02:00
Andreas Pehrson
57c8cc22d0
Bug 1320994 - Refactor MediaManager's window management. r=jib
...
This in large does the following:
* Changes the model in MediaManager to align with that of chrome code, namely:
- One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
- GetUserMediaWindowListener replaces GetUserMediaStreamListener
- So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome
MozReview-Commit-ID: 3wbPFmc9yWj
--HG--
extra : rebase_source : dff76a1fa604962b45446d632ffb4da58853cfa0
2017-04-26 11:13:40 +02:00
Sebastian Hengst
82e2afb73a
Backed out changeset b17aaf7a8689 (bug 1320994)
2017-05-03 13:14:18 +02:00
Sebastian Hengst
7211725673
Backed out changeset c60c97633ac8 (bug 1320994)
2017-05-03 13:14:09 +02:00
Andreas Pehrson
7bd84f27d8
Bug 1320994 - Unify MediaManager logging macros. r=jib
...
MozReview-Commit-ID: 14b6cXgOqP8
--HG--
extra : rebase_source : cb702280e9b3fcfcd09a11feeb9f8dfbdf115580
2017-03-29 12:06:49 +02:00
Andreas Pehrson
5db9427abb
Bug 1320994 - Refactor MediaManager's window management. r=jib
...
This in large does the following:
* Changes the model in MediaManager to align with that of chrome code, namely:
- One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
- GetUserMediaWindowListener replaces GetUserMediaStreamListener
- So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome
MozReview-Commit-ID: 3wbPFmc9yWj
--HG--
extra : rebase_source : 4ad324f6bb1be637da584f323a3e039c5b4f664d
2017-04-26 11:13:40 +02:00
Wes Kocher
2768cd5d15
Backed out 5 changesets (bug 1320994) for browser_downloads_panel_block.js permafails on Win7VM a=backout
...
Backed out changeset b744a070cafb (bug 1320994)
Backed out changeset 5766ba7143b4 (bug 1320994)
Backed out changeset 31afc3fcd61f (bug 1320994)
Backed out changeset 78e5f8775727 (bug 1320994)
Backed out changeset 6d4e1736fd69 (bug 1320994)
MozReview-Commit-ID: 9tPD6gwXttd
--HG--
extra : rebase_source : 56cb2ac6d2e057b171d74cd529b53e617c716b4c
2017-04-26 15:21:54 -07:00
Andreas Pehrson
3294058c0a
Bug 1320994 - Unify MediaManager logging macros. r=jib
...
MozReview-Commit-ID: 14b6cXgOqP8
--HG--
extra : rebase_source : cb702280e9b3fcfcd09a11feeb9f8dfbdf115580
2017-03-29 12:06:49 +02:00
Andreas Pehrson
edff555cf5
Bug 1320994 - Refactor MediaManager's window management. r=jib
...
This in large does the following:
* Changes the model in MediaManager to align with that of chrome code, namely:
- One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
- GetUserMediaWindowListener replaces GetUserMediaStreamListener
- So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome
MozReview-Commit-ID: 3wbPFmc9yWj
--HG--
extra : rebase_source : 4ad324f6bb1be637da584f323a3e039c5b4f664d
2017-04-26 11:13:40 +02:00
Boris Zbarsky
6e7bd78dc6
Bug 1335368 part 16. Remove the use of IsCallerChrome in GetUserMedia. r=jib
2017-02-01 15:43:38 -05:00
Andrea Marchesini
98f845f364
Bug 1320170 - dom/media should use nsIPrincipal (and PrincipalInfo) instead origin as string, r=rjesup, r=ehsan
2017-01-28 18:29:13 +01:00
Andrea Marchesini
f7f5990527
Bug 1317927 - Media caching needs to use origin attributes, r=cpearce, r=jesup
2016-12-07 07:07:09 -10:00
Jan-Ivar Bruaroey
2c03b58a19
Bug 1312030 - Remove MediaParent singleton to work with multi content processes. r=jesup
...
MozReview-Commit-ID: 8JONCRge6SU
--HG--
extra : rebase_source : ad30110ab35afb783291beee20cd5df2047d1149
2016-11-01 07:44:02 -04:00
Jan-Ivar Bruaroey
fb49e07898
Bug 1284910 - Add scary boolean to mediaDeviceInfo. r=jesup
...
MozReview-Commit-ID: 2A7QZgUQH8l
--HG--
extra : rebase_source : 15f534bd11d1b8bb4e85de7bc8cac45c99654ce4
2016-09-29 15:37:25 -04:00
Sebastian Hengst
3c1524e5e0
Bug 1306137 - remove b2g camera code: Remove dom/camera/ and code which depends on it. r=aosmond,bkelly
...
MozReview-Commit-ID: 7gvZrDtmcZP
--HG--
extra : rebase_source : 31f06357fdc36566465668f55bf3fcc5402fe9e0
2016-10-04 20:16:28 +02:00
Sebastian Hengst
2bd34f750f
Bug 1306137 - remove b2g camera code: Remove MOZ_B2G_CAMERA. r=aosmond
...
MozReview-Commit-ID: D207i9boeTJ
--HG--
extra : rebase_source : 390031b8a74ba145008328129079dcb0dee5a6c1
2016-09-28 21:10:32 +02:00
Mark Banner
c4565f5765
Bug 1306631 - Remove old Loop telemetry hooks from WebRTC code. r=jesup
...
MozReview-Commit-ID: 1ctKZPDVEha
--HG--
extra : rebase_source : 530df82d85d87dd605289b8af8ce372ba6cd4ed9
2016-09-23 16:55:48 +01:00
Jan-Ivar Bruaroey
ad60fcbdf9
Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
...
MozReview-Commit-ID: IB0BhGKbdam
--HG--
extra : rebase_source : 29006317f365076717f88bdafc64366eb996913c
2016-08-19 16:39:54 -04:00
Ryan VanderMeulen
4460ee8698
Backed out changeset 5f43357fe5b4 (bug 1284909) for bustage on a CLOSED TREE.
2016-08-29 11:25:00 -04:00
Jan-Ivar Bruaroey
de3b766278
Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
...
MozReview-Commit-ID: IB0BhGKbdam
--HG--
extra : rebase_source : 9ed1f4218e66bd3c96d044cacce167cbde79e775
2016-08-19 16:39:54 -04:00
Ryan VanderMeulen
520acfd195
Merge inbound to m-c. a=merge
2016-08-25 08:10:52 -04:00
Munro Mengjue Chiang
b6c7822e72
Bug 1296684 - export DeviceChangeCallback.h no matter webrtc is enabled or not; r=jib
...
MozReview-Commit-ID: 9xocLhe1QZw
--HG--
extra : rebase_source : cfa81f49e8b98b93c90a6ea436ee106db7a12f00
2016-08-22 18:16:28 +08:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jan-Ivar Bruaroey
9e4998ef79
Bug 1284683 - add unanonymized nsIMediaDevice.rawId for browser-chrome use. r=jesup
...
MozReview-Commit-ID: A4RDfdZAF21
--HG--
extra : rebase_source : 0c1ca7b5a413daad31a95dd7eb42277a4e984f2f
2016-08-18 00:01:00 -04:00
Munro Mengjue Chiang
4eb2d3e90d
Bug 1286429 - implement mediaDevices.ondevicechange for Mac OSX; r=jib,smaug
...
MozReview-Commit-ID: D1Jr6I4qPyr
--HG--
extra : rebase_source : 0f4a97da80d25923c9b6f6550b94039aefa88de5
2016-08-12 01:04:49 +08:00
Jan-Ivar Bruaroey
9f23bcc615
Bug 1286096 - Move AllocationHandle used for cameras to MediaEngineSource base class to reuse for microphones. r=padenot
...
MozReview-Commit-ID: BcmlKnHhe0o
--HG--
extra : rebase_source : 45342801548033ddbb2c0e060a6c6685bcb910b9
2016-07-12 23:25:07 -04:00
Jan-Ivar Bruaroey
2982c3ee86
Bug 1286096 - Remove fakeTracks constraint. r=drno,smaug
...
MozReview-Commit-ID: I9ZsufufRYg
--HG--
extra : rebase_source : 6d3ace3a22ce34586da4899cc0f7b2727a5fc6e0
2016-07-11 19:27:43 -04:00
Jan-Ivar Bruaroey
d67b712448
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
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
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
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
Iris Hsiao
3366ed3525
Backed out changeset 015cb0829df5 (bug 1213517)
2016-07-18 15:41:47 +08:00
Iris Hsiao
49a7efff23
Backed out changeset 6ed917c7d94d (bug 1213517)
2016-07-18 15:41:28 +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
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
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
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
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
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Randell Jesup
ab4635f5a3
Bug 1273136: Don't leak runnables needed to cleanup gUM streams r=drno
...
MozReview-Commit-ID: BqUMC2jpahM
2016-06-03 02:39:23 -04:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
7579799b01
Bug 1266595: Replace Chromium Task with Runnable. r=froydnj
2016-04-27 17:06:05 -07: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
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
0396985d77
Bug 1208371 - Route ApplyConstraints through MediaStreamTrackSource. r=jib
...
MozReview-Commit-ID: CnJnxszKU4o
--HG--
extra : rebase_source : f5ef65897108b3feadd51b8b11a47f65a7a71ff1
2016-02-01 22:43:38 +08:00
Andreas Pehrson
88628853b2
Bug 1208371 - Move OnTracksAvailableCallback out of DOMMediaStream. r=roc
...
So it can be forward declared.
MozReview-Commit-ID: 4RH7p8AzO84
--HG--
extra : rebase_source : e9c4ef72029de4ed09dca3b51ba2b46829f41d14
2016-01-05 10:16:21 +08:00