Commit Graph

14280 Commits

Author SHA1 Message Date
Andreas Pehrson
f0bf48464f Bug 1509548 - Make MediaStreamGraph pull data per track instead of per stream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13086

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:42 +00:00
Andreas Pehrson
4954a5b020 Bug 1509548 - Remove early PullNewData return. r=padenot
Without knownTracksTime, StreamTracks::GetFirstTrackEnd() returns
STREAM_TIME_MAX for an empty StreamTracks, so PullNewData() thinks no new data
is needed.

This circumvents that by always checking whether tracks need data.

Differential Revision: https://phabricator.services.mozilla.com/D12928

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:35 +00:00
Andreas Pehrson
3410ec9f28 Bug 1509548 - Clean up what appears to be wip-leftover gunk in DecodedStream. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12926

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:21 +00:00
Andreas Pehrson
7348d2a804 Bug 1509548 - Rename track-end-time methods in StreamTracks. r=padenot
They deserve descriptive names.

Differential Revision: https://phabricator.services.mozilla.com/D12925

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:17 +00:00
Andreas Pehrson
a02fa011f0 Bug 1509548 - Remove the concept of a known tracks time from MediaStreamGraph. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12923

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:06 +00:00
Nico Grunbaum
41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

Differential Revision: https://phabricator.services.mozilla.com/D12953

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Gabriele Svelto
19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Dan Minor
440fc58998 Bug 1509994 - Move video_engine from webrtc to systemservices; r=pehrsons
Historically this code was part of webrtc.org but has since been removed
from upstream. Rather than maintaining it as a local diff against upstream,
we should just move it to where it is used.

Differential Revision: https://phabricator.services.mozilla.com/D13092

--HG--
rename : media/webrtc/trunk/webrtc/video_engine/browser_capture_impl.h => dom/media/systemservices/video_engine/browser_capture_impl.h
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.cc => dom/media/systemservices/video_engine/desktop_capture_impl.cc
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.h => dom/media/systemservices/video_engine/desktop_capture_impl.h
extra : moz-landing-system : lando
2018-11-28 20:16:42 +00:00
Coroiu Cristina
47323ec73b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-11-28 23:56:03 +02:00
Coroiu Cristina
378481915d Merge autoland to mozilla-central a=merge 2018-11-28 23:47:17 +02:00
Brindusan Cristian
eb07b312bf Backed out 3 changesets (bug 1486659) as requested by jhlin on irc for breaking video playback on Android and causing regression Bug 1510464. a=backout
Backed out changeset 9c2834ca8823 (bug 1486659)
Backed out changeset 5d897c0c7a25 (bug 1486659)
Backed out changeset b0fdcebfd20d (bug 1486659)
2018-11-28 19:09:13 +02:00
Paul Adenot
cb75fadba6 Bug 1274392 - When echo cancellation is disabled, disable automatic gain control and noise suppression as well. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D12902

--HG--
extra : moz-landing-system : lando
2018-11-28 13:41:02 +00:00
Alex Chronopoulos
a008331435 Bug 1509462 - Make DecoderDoctorLifeLogger constructor/destructor protected. r=gerald
DecoderDoctorLifeLogger is used as a base class in many classes but it does need to have a virtual destructor to avoid adding a vtable in the class. Thus the constructor and destructor become protected to avoid being used as base pointer to delete the real object.

Differential Revision: https://phabricator.services.mozilla.com/D13074

--HG--
extra : moz-landing-system : lando
2018-11-27 20:46:19 +00:00
Cosmin Sabou
e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Ehsan Akhgari
2febd96e7e Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-28 00:54:56 +00:00
Cosmin Sabou
0afa5aa670 Backed out 2 changesets (bug 1508472) for causing build bustages on JobScheduler_posix.cpp. CLOSED TREE
Backed out changeset af951294cf96 (bug 1508472)
Backed out changeset 2320933cb7bc (bug 1508472)
2018-11-28 00:08:11 +02:00
Ehsan Akhgari
7c937c2747 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-27 21:36:18 +00:00
John Lin
739da292b4 Bug 1510363 - backout accidentally checked in file. r=jya
And add patterns to .gitignore to prevent future occurence.

Differential Revision: https://phabricator.services.mozilla.com/D13108

--HG--
extra : moz-landing-system : lando
2018-11-28 17:50:32 +00:00
alwu
682f483866 Bug 1509956 - Remove incorrect rebasing result in MSDM::loopingDecoding r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12965

--HG--
extra : moz-landing-system : lando
2018-11-27 16:00:22 +00:00
Jeff Walden
af9a670e28 Bug 1510007 - Move JSFreeOp's definition to js/public/MemoryFunctions.h, and make jsapi.h not #include that header. r=sfink
--HG--
extra : rebase_source : 4d6debefd66b89647df53c104b8560ba2de68abd
2018-11-21 18:11:15 -08:00
Andreea Pavel
945463d394 Backed out changeset 11d6688b953f (bug 1508472) for build bustages on a CLOSED TREE 2018-11-27 18:28:30 +02:00
Ehsan Akhgari
d0a3a76106 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-27 15:18:32 +00:00
Gabriele Svelto
566f669d07 Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D12728

--HG--
extra : moz-landing-system : lando
2018-11-26 14:49:44 +00:00
Alex Chronopoulos
6a1e10853e Bug 1493400 - Test av1 video using dav1d has the correct number of frames. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12637

--HG--
extra : moz-landing-system : lando
2018-11-27 14:19:02 +00:00
Alex Chronopoulos
5dab77d453 Bug 1493400 - Implement platform decoder for dav1d. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12164

--HG--
extra : moz-landing-system : lando
2018-11-27 14:18:58 +00:00
John Lin
e43dca7804 Bug 1486659 - p3: copy texture contents for remote allocated Surface. r=snorp
Child processes cannot access textures allocated in the parent process,
which is needed by the compositor to render video elements efficiently.
Unfortunately, Android doesn't expose Sufrace buffers (sharable across
processes) in the SDK/NDK as other platforms, so we need to generate
extra texture/surface in the child process and update texture images
through the surface, which is passed to the parent process for the remote
texture to copy its contents into.

Differential Revision: https://phabricator.services.mozilla.com/D11939

--HG--
rename : mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/ISurfaceAllocator.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/SyncConfig.aidl
extra : moz-landing-system : lando
2018-11-26 19:41:31 +00:00
John Lin
199755a93d Bug 1425277 - p8: add gtest cases for media encoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7564

--HG--
extra : moz-landing-system : lando
2018-11-26 18:29:26 +00:00
John Lin
bfb5ef4f39 Bug 1425277 - p7: add apple encoder module and factory. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7563

--HG--
extra : moz-landing-system : lando
2018-11-26 18:29:08 +00:00
John Lin
c81fdae426 Bug 1425277 - p6: implement media encoder using Apple VideoToolbox API. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7562

--HG--
extra : moz-landing-system : lando
2018-11-26 18:30:08 +00:00
John Lin
80a3c5aa13 Bug 1425277 - p5: add Append() to MediaRawDataWriter. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7561

--HG--
extra : moz-landing-system : lando
2018-11-26 18:28:31 +00:00
John Lin
b7271f6956 Bug 1425277 - p4: RAII for CVBuffer. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7560

--HG--
extra : moz-landing-system : lando
2018-11-26 18:28:13 +00:00
John Lin
b3b4fa64cc Bug 1425277 - p3: fix misplaced dependent header. r=jya To address compile error when AppleVTDeocder.cpp is moved to another unified source file or in non-unified builds.
Differential Revision: https://phabricator.services.mozilla.com/D7559

--HG--
extra : moz-landing-system : lando
2018-11-26 18:27:49 +00:00
John Lin
0ea8bb4a7a Bug 1425277 - p2: remove dynamic apple framework linkers. r=jya No need for own linkers anymore for CoreMedia and VideoToolbox are both available on our minimal supported version (10.9).
Differential Revision: https://phabricator.services.mozilla.com/D7558

--HG--
extra : moz-landing-system : lando
2018-11-26 18:27:32 +00:00
John Lin
25c2e37423 Bug 1425277 - p1: introduce media encoder interfaces. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D7557

--HG--
extra : moz-landing-system : lando
2018-11-26 18:27:14 +00:00
Andreas Pehrson
0b4013a03e Bug 1306999 - Change from "playing" to "loadeddata" before assuming there's a video frame. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D12929

--HG--
extra : moz-landing-system : lando
2018-11-26 16:54:13 +00:00
Paul Adenot
7ba0490aba Bug 1509842 - Follow up, only run the test on Linux.
Differential Revision: https://phabricator.services.mozilla.com/D12914

--HG--
extra : moz-landing-system : lando
2018-11-26 15:01:38 +00:00
Paul Adenot
4bd715f176 Bug 1509842 - Re-enable AGC by default. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D12898

--HG--
extra : moz-landing-system : lando
2018-11-26 13:51:27 +00:00
Paul Adenot
f53529234b Bug 1509548 - Temporarily disable an assertion following 1423241.
Differential Revision: https://phabricator.services.mozilla.com/D12781

--HG--
extra : moz-landing-system : lando
2018-11-23 18:30:19 +00:00
Andreas Pehrson
3771a0be22 Bug 1423241 - Handle DOMMediaStream destroying its input stream before we can end its track. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12746

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:39 +00:00
Andreas Pehrson
b24e382a4c Bug 1423241 - Clean up iframes in between subtests in test_gUM_audioConstraints_concurrentIframes. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12675

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:33 +00:00
Andreas Pehrson
d665f43071 Bug 1423241 - Ignore ended tracks when checking for audio tracks in an MSG. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12569

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:27 +00:00
Andreas Pehrson
58233bef5c Bug 1423241 - Add logging for a captured MediaDecoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12286

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:21 +00:00
Andreas Pehrson
60f5d461f2 Bug 1423241 - Remove MediaStreamListener \o/. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12284

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:00 +00:00
Andreas Pehrson
f859bd9fb7 Bug 1423241 - Async/await-ify test_gUM_bug1223696.html. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D12283

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:54 +00:00
Andreas Pehrson
153eff0b64 Bug 1423241 - Remove DOMMediaStream::PlaybackStreamListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12282

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:48 +00:00
Andreas Pehrson
28dcbfa728 Bug 1423241 - Ignore runnables for main thread after next stream state update, after entering shutdown. r=padenot
They may hang on to references causing leaks.

Differential Revision: https://phabricator.services.mozilla.com/D12281

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:42 +00:00
Andreas Pehrson
dff48ba75c Bug 1423241 - Remove OnTracksAvailableCallback from MediaRecorder. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12280

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:35 +00:00
Andreas Pehrson
04400261ad Bug 1423241 - Remove OnTracksAvailableCallback from MediaManager. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12279

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:29 +00:00
Andreas Pehrson
e0f46f7739 Bug 1423241 - Remove DOMMediaStream::OwnedStreamListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12276

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:16 +00:00
Andreas Pehrson
afa103537f Bug 1423241 - Move track-ended notifications from DOMMediaStream to MediaStreamTrack. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12275

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:10 +00:00
Andreas Pehrson
44c5fa2785 Bug 1423241 - Remove a rawptr in MediaStreamTrack. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12274

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:04 +00:00
Andreas Pehrson
4213b7db86 Bug 1423241 - Refactor DecodedStream. r=jya
This removes DecodedStream's use of MediaStreamListener in favor of
MediaStreamTrackListener. This change has however rippled through to a lot
more cleanup, per below.

This moves the MediaStreamTrack lifetime ownership for captured
HTMLMediaElements from the media element to DecodedStream, where the
MediaStreamGraph-side tracks are already created and ended today.

This makes MediaStreamTrack creation explicit across the entire codebase and
lets us remove the MediaStreamTrackSourceGetter class and the infrastructure
of adding MediaStreamTracks after they've already been created in the graph
from DOMMediaStream.

With track ownership, and thus TrackID allocation ownership, happening
exclusively in DecodedStream for its output tracks, we also stop throwing
away and recreating the SourceMediaStream to which we feed data on seek.
This is one step closer to fixing bug 1172394 and spec compliance of
HTMLMediaElement.captureStream().

Differential Revision: https://phabricator.services.mozilla.com/D12273

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:03 +00:00
Andreas Pehrson
e80887ac8d Bug 1423241 - Return appended StreamTime samples appended through AppendToTrack. r=padenot
This allows DecodedStream to accurately track how many samples have been
appended to a track, even with resampling enabled.

Differential Revision: https://phabricator.services.mozilla.com/D12272

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:48 +00:00
Andreas Pehrson
80cde33d12 Bug 1423241 - Always add tracks at the stream's current time. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12271

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:42 +00:00
Andreas Pehrson
43f4e58733 Bug 1423241 - Move CanvasCaptureMediaStream from stream listener to track listener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9105

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:36 +00:00
Andreas Pehrson
84905ffbe9 Bug 1423241 - Expose MSG's GraphTime through main-thread-Watchable and move media element to it. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9101

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:13 +00:00
Andreas Pehrson
6d2721e35a Bug 1423241 - Remove drawImage exception handling from captureStream_common.js. r=jib
This can conceal real bugs. Tests should be fixed so they don't risk calling
getPixel in invalid states instead.

Differential Revision: https://phabricator.services.mozilla.com/D9100

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:07 +00:00
Andreas Pehrson
4be83b9661 Bug 1423241 - Ensure audio loads after video to make drawImage happy. r=jib
https://github.com/whatwg/html/issues/4128 filed to cover this case in the spec.

Differential Revision: https://phabricator.services.mozilla.com/D12270

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:01 +00:00
Andreas Pehrson
b2d7b962cd Bug 1423241 - Implement MediaStreamTrackListener::NotifyOutput. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9094

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:31 +00:00
Andreas Pehrson
e6f44b02af Bug 1423241 - Fix MediaStreamTrackListener::NotifyEnded. r=padenot
Without this, NotifyEnded() happens before the track has been played out, at the
time it's marked ended by its producer. This change will actually make us wait
until the last chunk has been played out and then notify listeners.

Differential Revision: https://phabricator.services.mozilla.com/D12269

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:26 +00:00
Andreas Pehrson
193fd8f3eb Bug 1423241 - Move MediaManager from a stream listener to track listeners. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12268

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:20 +00:00
Andreas Pehrson
c4ef19aea8 Bug 1423241 - Implement NotifyPull for MediaStreamTrackListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12267

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:14 +00:00
Andreas Pehrson
e31bc86b17 Bug 1423241 - Move SpeechRecognition from stream listener to track listener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12266

--HG--
rename : dom/media/webspeech/recognition/SpeechStreamListener.cpp => dom/media/webspeech/recognition/SpeechTrackListener.cpp
rename : dom/media/webspeech/recognition/SpeechStreamListener.h => dom/media/webspeech/recognition/SpeechTrackListener.h
extra : moz-landing-system : lando
2018-11-23 15:00:08 +00:00
Andreas Pehrson
3461beb8a0 Bug 1423241 - Move CanvasCaptureMediaStream MSG cleanup to MediaStreamTrackListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12265

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:02 +00:00
Andreas Pehrson
aa6d9c24a0 Bug 1423241 - Move special media element captureStream handling of inactive stream out of MediaStreamGraph. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D12264

--HG--
extra : moz-landing-system : lando
2018-11-23 14:59:56 +00:00
Bryce Van Dyk
ae30c70345 Bug 1509397 - mp4: use per sample IV size from sample group metadata if present. r=jya
If sample group metadata is present, it should be used over the less specific
track metadata. This patch changes the mp4 parser to do so for per sample IV
sizes.

Differential Revision: https://phabricator.services.mozilla.com/D12718

--HG--
extra : moz-landing-system : lando
2018-11-23 08:24:53 +00:00
alwu
ff3d8a3510 Bug 1499903 - part3 : change 'mLogicallySeeking' to Watchable r=chunmin
Nobody is mirroring to 'mLogicallySeeking', so we can just use Watchable instead.

Differential Revision: https://phabricator.services.mozilla.com/D9642

--HG--
extra : moz-landing-system : lando
2018-11-23 05:07:45 +00:00
alwu
8d72084878 Bug 1499903 - part2 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D9641

--HG--
extra : moz-landing-system : lando
2018-11-23 05:06:47 +00:00
alwu
42c302ff20 Bug 1499903 - part1 : correct the events order when we're in the seamless looping. r=chunmin
When the media which has `loop` attribute is playing to the end, the spec mentions that media should do seek to the start position [1].

During seeking, the dispatched events order [2] for MediaElement should be
1. seeking
2. timeupdate
3. seeked

[1] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:attr-media-loop-2
[2] https://html.spec.whatwg.org/multipage/media.html#seeking:dom-media-seek

Differential Revision: https://phabricator.services.mozilla.com/D9324

--HG--
extra : moz-landing-system : lando
2018-11-23 05:23:48 +00:00
alwu
cf4634f07a Bug 1505972 - request audio data when entering 'loopingDecoding' state if decoding has ended r=jya
When entering 'loopingDecoding' state, we should ensure we would continue to decoding even if
the audio decoding has finished before.

Differential Revision: https://phabricator.services.mozilla.com/D12589

--HG--
extra : moz-landing-system : lando
2018-11-22 13:27:21 +00:00
Jean-Yves Avenard
6293fae500 Bug 1505284 - P5. Don't use real H264 decoder with fake GMP encoder. r=dminor
The fake H.264 GMP encoder creates dummy frames that can't be decoded by anything but the fake GMP decoder.

Differential Revision: https://phabricator.services.mozilla.com/D12537

--HG--
extra : moz-landing-system : lando
2018-11-22 16:31:33 +00:00
Jean-Yves Avenard
b07c3f66ba Bug 1505284 - P3. Ensure gfxVars and gfxPrefs are always initialized when using PDMFactory. r=gerald
While typically those will always be, when using through gtest it won't.

Differential Revision: https://phabricator.services.mozilla.com/D12519

--HG--
extra : moz-landing-system : lando
2018-11-22 16:31:03 +00:00
Jean-Yves Avenard
deafacba67 Bug 1505284 - P1. Use ffmpeg decoder for h264 in low latency mode. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12431

--HG--
extra : moz-landing-system : lando
2018-11-22 16:30:06 +00:00
Nico Grunbaum
0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

Differential Revision: https://phabricator.services.mozilla.com/D5560

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Karl Tomlinson
cbf2ec1e66 Bug 1508909 revert reformat of third-party ffmpeg headers r=jya
Changes to these files from 0ceae9db9ec0 are reverted.

# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12510

--HG--
extra : moz-landing-system : lando
2018-11-21 08:25:05 +00:00
Coroiu Cristina
b27585482c Merge inbound to mozilla-central a=merge 2018-11-21 23:43:13 +02:00
Kartikaya Gupta
fbf7f83817 Bug 1509064 - Disable test failing with new windows AMIs. r=jmaher 2018-11-21 11:19:35 -05:00
alwu
f67a71e31f Bug 1491475 - part1 : postpone starting AudioContext until calling AudioContext.resume() or AudioScheduledSourceNode.start(). r=padenot
If AudioContext is not allowed to start, we would postpone its state transition from `suspended` to `running`
until site explicitly calls AudioContext.resume() or AudioScheduledSourceNode.start().

Differential Revision: https://phabricator.services.mozilla.com/D12082

--HG--
extra : moz-landing-system : lando
2018-11-20 22:58:22 +00:00
Michael Froman
be9430ed4b Bug 1498624 - pt1 - Implement OSX sandbox for RDD process. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D12376

--HG--
extra : moz-landing-system : lando
2018-11-21 00:11:20 +00:00
alwu
ce1f4614d0 Bug 1508484 - close audio queue if we already got the last audio frame when leaving 'loopingDecoding' state r=jya
When we're going to leave looping state and have got EOS before, we should mark audio queue
as ended because we have got all data we need.

Differential Revision: https://phabricator.services.mozilla.com/D12373

--HG--
extra : moz-landing-system : lando
2018-11-20 22:42:24 +00:00
shindli
e75ab0ac9a Merge inbound to mozilla-central. a=merge 2018-11-20 23:44:09 +02:00
Sylvestre Ledru
b98f46b03f Bug 1508298 - Disable the reformatting of the comment r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12415

--HG--
extra : moz-landing-system : lando
2018-11-20 14:21:48 +00:00
Nathan Froyd
b0bda317b7 Bug 1507922 - make ownership of MetadataTags more clear in the ogg code; r=gerald,jya
Use UniquePtr for return types, so it's obvious who has ownership.
2018-11-20 10:10:31 -05:00
Razvan Maries
208d16134b Merge mozilla-inbound to mozilla-central a=merge 2018-11-20 07:03:17 +02:00
Boris Zbarsky
64ae41821b Bug 1507540 part 6. Make nsIVariant's "type" a notxpcom attribute. r=froydnj 2018-11-19 20:20:05 -05:00
Boris Zbarsky
71db58cf83 Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug 2018-11-19 20:17:53 -05:00
Tarek Ziadé
63637ef222 Bug 1497124 - Added some memory info in the performance counters - r=jya,jonco
Add some memory usage information to the Performance counters and make everything asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D7984

--HG--
extra : moz-landing-system : lando
2018-11-19 22:51:12 +00:00
Sylvestre Ledru
804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
alwu
dab4434860 Bug 1493766 - part2 : save the status of temporary autoplay permission in outer window. r=johannh,smaug
In order to know whether we have temporary autoplay permission without creating a request, we need to
cache its state in the outer window so that we can get the correct returned value for AutoplayPolicy::IsAllowedToPlay().

Differential Revision: https://phabricator.services.mozilla.com/D7013

--HG--
extra : moz-landing-system : lando
2018-11-16 18:27:00 +00:00
Bogdan Tara
647b9eb109 Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02:00
alwu
495a70cf3a Bug 1506286 - part2 : finish queue after discarding data. r=jya
After discarding looping data, all data playback needed are in the queue. There is no need to
request more data, so we can finish the queue and disconnect the request.

Differential Revision: https://phabricator.services.mozilla.com/D11535

--HG--
extra : moz-landing-system : lando
2018-11-15 12:57:35 +00:00
alwu
31f9ef35fe Bug 1506286 - part1 : use clock time to decide whether need to discard data. r=jya
Should use both adjusted time to do time comparison.

Differential Revision: https://phabricator.services.mozilla.com/D11534

--HG--
extra : moz-landing-system : lando
2018-11-15 21:53:50 +00:00
Jean-Yves Avenard
d05f000f1b Bug 1507093 - P4. Don't lazily allocate mVideoTrackList and mAudioTrackList. r=pehrsons
Should the media element be cycle collected and a decoder still be active, a change of state could have caused the track list to be re-created causing a cycle between the HTMLMediaElement and the track list.

We also check when potentially updating the ready state if the self reference is still needed.

Place various assertions.

Differential Revision: https://phabricator.services.mozilla.com/D11860

--HG--
extra : moz-landing-system : lando
2018-11-15 12:48:34 +00:00
Jean-Yves Avenard
5f69f9479d Bug 1507093 - P2. Ensure that when returning from NotifyXPCOMShutdown we don't UAF. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D11858

--HG--
extra : moz-landing-system : lando
2018-11-15 12:48:02 +00:00
Jean-Yves Avenard
4e317b7bb3 Bug 1474443 - Remove cycle between MP4Demuxer and MP4TrackDemuxer. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12004

--HG--
extra : moz-landing-system : lando
2018-11-15 12:44:56 +00:00
Timothy Guan-tin Chien
7201df71b0 Bug 1505957 - Follow-up, add testcase as crashtest, r=me 2018-11-15 10:56:27 -08:00
Michael Froman
2e78f7f1a1 Bug 1471535 - pt12 - Hook up RDD process and Remote decoding. r=jya,spohl
Depends on D8493

Differential Revision: https://phabricator.services.mozilla.com/D8494

--HG--
extra : moz-landing-system : lando
2018-11-14 18:07:28 +00:00
Michael Froman
284be56116 Bug 1471535 - pt8 - Add RDD process code. r=jld
Depends on D8489

Differential Revision: https://phabricator.services.mozilla.com/D8490

--HG--
extra : moz-landing-system : lando
2018-11-14 18:06:24 +00:00
Michael Froman
4e520483b8 Bug 1471535 - pt7 - Add remote decoding in dom/media/ipc alongside gpu decoding. r=jya,mattwoodrow,jld
Depends on D8488

Differential Revision: https://phabricator.services.mozilla.com/D8489

--HG--
extra : moz-landing-system : lando
2018-11-14 18:06:11 +00:00
Michael Froman
37c38cc384 Bug 1471535 - pt3 - Breakout MediaDataIPDL and MediaRawDataIPDL structs for reuse in RDD remote decoders. r=jya
Depends on D8483

Differential Revision: https://phabricator.services.mozilla.com/D8484

--HG--
extra : moz-landing-system : lando
2018-11-14 18:05:15 +00:00