Граф коммитов

458 Коммитов

Автор SHA1 Сообщение Дата
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
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 58ac7b5fd2 Bug 1208371 - Make remaining DOMMediaStream principal sources use MediaStreamTrack. r=mt
MozReview-Commit-ID: 1hgHp5dlBZJ

--HG--
extra : rebase_source : 30d7d5bccc663ef00a640b4f385278a336191088
2016-02-01 22:46:34 +08:00
Andreas Pehrson 5194def8e5 Bug 1208371 - Make MediaManager pass its principal to MediaStreamTrack for gUM. r=mt
MozReview-Commit-ID: 7f5CIDgf0TI

--HG--
extra : rebase_source : 09b6fe4eb0b0c2b21a4d25ecd684540f8b361228
2016-01-05 10:16:24 +08:00
Andreas Pehrson 179a500f52 Bug 1208371 - Create MediaStreamTrackSource::Sink that forwards principal changes from the source. r=mt
MozReview-Commit-ID: 2jsQCC7MMRj

--HG--
extra : rebase_source : e58ddf2600321ec7e9e32679879d2789835f06b6
2016-01-22 12:28:57 +08:00
Andreas Pehrson 5401608e6c Bug 1208371 - Add MediaStreamTrackSourceGetter interface. r=roc
This allows DOMMediaStream to assign MediaStreamTrackSources to
dynamically created MediaStreamTracks.

MozReview-Commit-ID: 3v91zLiqfl7

--HG--
extra : rebase_source : 4fe67e92b9c833fe5ba964fc5f3b11ba21447f36
2016-01-05 10:16:21 +08:00
Andreas Pehrson 9899305f28 Bug 1208371 - Add a MediaStreamTrackSource interface. r=roc
This lets a MediaStreamTrack communicate with its source/producer on the
main thread. It's for now used for stopping a track at the source and
retrieving some metadata, but it could also be a link between actual
sinks of a track and the source, to for instance let the source optimize
by scaling down the resolution when all sinks want lowres-video.

MozReview-Commit-ID: D4SJLr0aqhJ

--HG--
extra : rebase_source : ea511b5c86ca4836bfa980825f04617fef498261
2016-04-06 14:46:56 +02:00
Andreas Pehrson 4beebb8c88 Bug 1208371 - Remove unused MediaManager::NotifyMediaStreamTrackEnded. r=jib
MozReview-Commit-ID: 3QFbTliYTPw

--HG--
extra : rebase_source : 88d39ae528ccf26a81a114e893d599b366573629
2016-01-05 10:16:21 +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
Andreas Pehrson 37365c3483 Bug 1208371 - Pass parent window to DOMMediaStream through constructor. r=roc
MozReview-Commit-ID: AvBYQNADpyV

--HG--
extra : rebase_source : 8972b162fbcb017034f3c975ff9b725e52bcaf17
2016-01-05 10:16:20 +08:00
Wes Kocher 0fbf6c1476 merge inbound to m-c a=merge
MozReview-Commit-ID: BHxDQF6gIe3
2016-03-08 16:00:45 -08:00
Mark Banner d81b31cff7 Bug 1249365 - Fix regression in e10s mode to re-allow the camera by default in Loop's conversation window. r=gcp
--HG--
extra : commitid : 83CnO0jToMb
2016-03-07 14:11:54 +00:00
Randell Jesup 260da5482b Bug 1253333: Don't cause a second MediaManager to be created if there's a race with NotifyFinished r=jib
MozReview-Commit-ID: J4GArKKncYx
2016-03-07 16:44:25 -05:00
sakshi 1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Nathan Froyd 9fb640a914 Bug 1251715 - use UniquePtr instead of ScopedDeletePtr in dom/media/; r=gerald
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.
2016-02-26 14:21:05 -05:00
Wes Kocher 6866309c97 Backed out 2 changesets (bug 1251714, bug 1251715) for gtest failures in media code
Backed out changeset 1bbd0cd10f76 (bug 1251714)
Backed out changeset 80b197c5608f (bug 1251715)

MozReview-Commit-ID: EHOtiKLS4Xr
2016-03-01 11:36:35 -08:00
Nathan Froyd 710083b54a Bug 1251715 - use UniquePtr instead of ScopedDeletePtr in dom/media/; r=gerald
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.
2016-02-26 14:21:05 -05:00
Jan-Ivar Bruaroey 1895ec8892 Bug 1251357 - fix regression where last MediaStreamTrack.stop did not turn off the camera light. r=jesup
MozReview-Commit-ID: DvDBKscIjnp

--HG--
extra : rebase_source : 9527e372e48442257f0237d38b38f430c3faed14
2016-02-26 12:26:47 -05:00
Jan-Ivar Bruaroey 45390b2d1d Bug 1250540 - have media.navigator.permission.disabled no longer bypass media.getusermedia.screensharing.allowed_domains. r=jesup
MozReview-Commit-ID: JTxeco3WGVr

--HG--
extra : rebase_source : 8a71af6471363f21210af6be8ed606c519985f8e
2016-02-23 15:54:00 -05:00
Jan-Ivar Bruaroey f784fde760 Bug 1250540 - fix string-parsing regression that made screen share whitelisting stop working. r=jesup
MozReview-Commit-ID: AKux0nBVBEF

--HG--
extra : rebase_source : 2c5a889c71cd6b69be525fffb1faf23b10ebaa30
2016-02-23 11:30:49 -05:00
Gian-Carlo Pascutto 3688a8295e Bug 1249365 - Store Loops permission to use the camera so we can check later. r=jesup 2016-02-23 12:09:44 +01:00
Gian-Carlo Pascutto 546b46fa4c Bug 1177242 - Verify whether sandboxed Content process has permissions to access the camera/mic. r=jesup 2016-02-17 18:57:26 +01:00
Gerald Squelart cb8bb9067d Bug 1248308 - Fix dom/media non-unified build errors - r=jya 2016-02-17 08:55:33 +11:00
Andreas Pehrson 68c86a9506 Bug 957691: Ensure that MediaManager ends all tracks before finishing its source stream r=jib,jesup,pehrsons
This puts all the logic in GetUserMediaCallbackMediaStreamListener and none in
MediaOperationTask to make it simpler to reason about what's happening.

When we want to stop a track, the gUMCallbackListener will send a
MEDIA_STOP_TRACK if other tracks will still be live.
If it was the last live track, the gUMCallbackListener will send a MEDIA_STOP
instead. The MEDIA_STOP makes sure the passed in devices (we pass in all) are
stopped before finishing the stream.

MozReview-Commit-ID: E43Iqw491tB
2016-02-05 13:20:20 +01:00
Paul Kerr [:pkerr] d7144f8634 Bug 1219339 - Part2: Ensure close of webrtc trace file during shutdown. r=rjesup 2016-02-10 13:10:46 -08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Randell Jesup f138ca68d1 Bug 987186 - remove AudioConfig, send agc/aec/noise from prefs r=jib,smaug
(Reland squashed)
Respect echoCancellation constraint in GetUserMedia
Support echoCancellation constraint, pass test

--HG--
extra : commitid : 7Bq2u1yamMf
2016-01-22 16:46:38 -05:00
Kyle Huey 0fbc58d746 Backed out 3 changesets (bug 987186) for build bustage. CLOSED TREE
Backed out changeset 00cb175253b9 (bug 987186)
Backed out changeset deaf45c9ad2a (bug 987186)
Backed out changeset bc3d6c21f5ed (bug 987186)
2016-01-22 10:35:23 -08:00
Brian Armstrong 6f7fc7357b Bug 987186 - remove AudioConfig, send agc/aec/noise from prefs r=jib
--HG--
extra : commitid : 5Yfw0K2W9nl
2016-01-19 16:33:11 -08:00
Randell Jesup cbdb5359ca Bug 1221587: add per-platform prefs to control full-duplex cubeb input r=jib
--HG--
extra : commitid : 7P9rnGXTYh1
2016-01-21 11:51:36 -05:00
Wes Kocher e8203da294 Backed out changeset 4b22bd7b7a73 (bug 1221587)
--HG--
extra : commitid : K0g4NPkKZW6
2016-01-21 17:28:18 -08:00
Randell Jesup b8df5b1837 Bug 1221587: add per-platform prefs to control full-duplex cubeb input r=jib
--HG--
extra : commitid : JswRdGqAT1s
2016-01-21 11:51:36 -05:00
Jean-Yves Avenard bc55ba93a4 Bug 1240411: P9. Clean up media headers. r=jwwang
Remove redundant virtual keyword and add missing override if any.
2016-01-19 19:47:36 +11:00
Emilio Cobos Álvarez b5364082de Bug 866513 - Non-empty MediaStreamTrack labels. r=jib 2016-01-16 13:39:00 +01:00
Chris Peterson 74f570e360 Bug 1240264 - Annotate intentional switch fallthroughs in dom/media/. r=cpearce
dom/media/MediaManager.cpp:1905:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/media/webm/WebMBufferedParser.cpp:133:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2016-01-14 01:42:18 -08:00
Jan-Ivar Bruaroey d7d3df857d Bug 1224766 - forward callID to disambiguate multiple gUM requests from same window. r=jesup,smaug
--HG--
extra : rebase_source : 038e5b2eb6d2332da05c2c7dc44dc6ed3dde3d83
2016-01-07 17:30:10 -05:00
Jim Mathies d52bf97565 Bug 1107702 - Try to avoid internal memory exhaustion problems with the Windows api GetAdaptersInfo by making a priming call to the api during startup. r=jesup 2016-01-07 13:57:42 -06:00
Jan-Ivar Bruaroey fad5e24ed1 Bug 1229413 - remove MediaManager's xpcom-will-shutdown observer. r=jesup
--HG--
extra : transplant_source : %AF%E4%80id%2B%23%CD%9D%B1%DF%1F%B4%0B%F5%7Di%DCz%15
2015-12-01 12:13:47 -05:00
Jan-Ivar Bruaroey e23061aecc Bug 1229926 - only fake cams and mics. r=jesup
--HG--
extra : transplant_source : %0F%90%21%94%14X%EC%83%03M%068p%D3%F9%0D%84%F29J
2015-12-02 22:51:03 -05:00
Jan-Ivar Bruaroey 3d86334afb Bug 1229926 - don't throw OverConstrainedError(deviceId) on fake devices. r=jesup
--HG--
extra : transplant_source : .R%BF%F3%93qV/%DB%A0%3C%F5m%10.%FB2%8F%1ES
2015-12-02 21:35:56 -05:00
David Rajchenbach-Teller 0da8936844 Bug 1216972 - MediaManager AsyncShutdown for content processes. r=jesup
--HG--
extra : transplant_source : %D9%A4%C4%95%EB%F9%0Fh%83z%21%91A5cu7%B4%DF%DE
2015-11-18 21:42:16 +01:00
Randell Jesup bc9f456480 Bug 1218799: Shutdown MediaManager engines from the MediaManager thread r=jib 2015-11-18 15:03:13 -05:00
sajitk 582e1a55fa Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00