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

7174 Коммитов

Автор SHA1 Сообщение Дата
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
Jan-Ivar Bruaroey 0216e7c8a0 Bug 1213517 - add webidl for track.getConstraints() and track.getSettings(). r=smaug
MozReview-Commit-ID: D15Lo3e1giL

--HG--
extra : rebase_source : 9a9ce6900dae6dc1e9a80e0c67577da4aab44437
2015-11-13 23:27:39 -05:00
Matt Woodrow c1e385739e Bug 1283144 - Make sure we shut down the ReaderQueue before AbstractThread::MainThread is destroyed since some implementations rely on it. r=jya 2016-07-18 15:24:43 +12:00
Jean-Yves Avenard 94a6256296 Bug 1287244: [MSE] Remove check for not 'updating' in {set,clear}LiveSeekableRange(). r=gerald
See https://github.com/w3c/media-source/issues/118

MozReview-Commit-ID: FtIc1cVfn8R

--HG--
extra : rebase_source : d4cb85d8fa42f67e6710a64cb73f4dfda6088992
2016-07-16 14:35:02 +10:00
JW Wang 18318f389f Bug 1286793 - register visibility changes only when needed. r=kamidphish
MozReview-Commit-ID: JTlDPh3ql7A

--HG--
extra : rebase_source : 05c3fd9c6fc60b6fb6e1ec12644c3f37d95543e6
2016-07-14 17:52:41 +08:00
JW Wang b263fc85e1 Bug 1284399. Part 6 - store a copy of SeekTarget instead of its reference in SeekTask so it's life cycle can be independent from the client. r=kaku
MozReview-Commit-ID: BWrutqvsj29

--HG--
extra : rebase_source : 2eb997b9a13a7b9a3390700aceef9fbfb77268a2
extra : source : 8d7d3b19db1cfbc8df2e91bd78f6fbb9c7688ac0
2016-07-05 14:12:42 +08:00
JW Wang bd14b5e581 Bug 1284399. Part 5 - remove SeekTask::mSeekJob. r=kaku
Drop{Audio,Video}UpToSeekTarget() is always called before Discard() so
mSeekJob.Exists() is guaranteed to be true.

MozReview-Commit-ID: Cezbqs0JKm2

--HG--
extra : rebase_source : 7bec5865ef850beaaed12e7f55c4dd0888939675
extra : source : 8d3ef72f7eb123c24b5b7649dc7809acd7039e7a
2016-07-05 13:58:51 +08:00
JW Wang b59f4f8bc4 Bug 1284399. Part 4 - move |mSeekJob.RejectIfExists(__func__)| out of SeekTask::Discard(). r=kaku
MozReview-Commit-ID: C0kmdNkCpk3

--HG--
extra : rebase_source : 0ed92f1b6fd88f94fac1049fa403f926ded3c0ce
extra : source : 2108ea7e3c390d0afcae3234204cf7cb83ff7b54
2016-07-05 13:55:32 +08:00
JW Wang 266c744fba Bug 1284399. Part 3 - remove SeekTask::Exists(). r=kaku
MozReview-Commit-ID: EECDBv1DR88

--HG--
extra : rebase_source : bd705aabccf60f9d0afcebdf31080e947d854d71
extra : source : 4e4cfc9534cb0930e198935d30135239d1a5cbb1
2016-07-05 13:50:37 +08:00
JW Wang f6ec26e728 Bug 1284399. Part 2 - add MDSM::mCurrentSeek to replace SeekTask::mSeekJob. r=kaku
MozReview-Commit-ID: 84KJcdoXakS

--HG--
extra : rebase_source : 2f5ea74f31e95cca4e5e7371f05154e6245b612a
extra : source : 2b942182822fec8376c7f042d7c6f4071ebe49fe
2016-07-05 13:43:46 +08:00
JW Wang 715617f21b Bug 1284399. Part 1 - add GetSeekTarget() to remove direct access to mSeekJob. r=kaku
MozReview-Commit-ID: 60wIW9gHYKt

--HG--
extra : rebase_source : af1a96c78fbdab64f24ed4f39ac0becdc74aba0f
extra : source : cdf3a98800de9676871743751f57854645192c5d
2016-06-30 13:37:20 +08:00
Jean-Yves Avenard 35a36f0344 Bug 1286722: [MSE] P2. Add mochitests for event handler attributes. r=gerald
MozReview-Commit-ID: HTJgziOHcbW

--HG--
extra : rebase_source : 9a001429cd3b1875ca1d88417c7b08f643582f63
2016-07-14 18:27:18 +10:00
Jean-Yves Avenard 01308240dd Bug 1286722: [MSE] P1. Add mediasource event handler attributes. r=bz
See https://github.com/w3c/media-source/issues/66

MozReview-Commit-ID: 9fANabkz5ud

--HG--
extra : rebase_source : 37ef4885191942c56cc2ff0e198c5cbc7cab0c4a
2016-07-14 18:28:19 +10:00
Jean-Yves Avenard d6c9036cce Bug 1286723: [MSE] P2. Add live seekable mochitest. r=gerald
MozReview-Commit-ID: 4NIGn8HGz93

--HG--
extra : rebase_source : 844e8733d9cc3b5f9b0fdc587c3a3067f8733859
2016-07-14 15:56:05 +10:00
Jean-Yves Avenard 8b5b0ae730 Bug 1286723: [MSE] P1. Add support for live seekable attribute. r=bz,gerald
See https://github.com/w3c/media-source/issues/5

MozReview-Commit-ID: EP37gRmUAXF

--HG--
extra : rebase_source : cd134517a3f1d50bce2f17a82acabe0f2bb042cb
2016-07-14 14:34:45 +10:00
Jean-Yves Avenard aee6e800d6 Bug 1286796: [MSE] P1. Replace InvalidAccessError usage with TypeError. r=gerald
See https://github.com/w3c/media-source/issues/34

MozReview-Commit-ID: 6RDjhxnaOGM

--HG--
extra : rebase_source : f7686b58bfde94865cccb123578675d11ce9a37e
2016-07-14 20:47:02 +10:00
Carsten "Tomcat" Book ea82d775d8 merge mozilla-inbound to mozilla-central on a CLOSED TREE a=merge 2016-07-15 16:15:33 +02:00
Gerald Squelart 46dec3c3f7 Bug 1286444 - Store uint32_t's in VideoPlaybackQuality - r=kinetik
Because VideoPlaybackQuality attributes are exposed as 'unsigned long' (aka
uint32_t) in the webidl interface, it would be dangerous to accept and store
them as uint64_t in the class.

MozReview-Commit-ID: EhX4lhTbA3c

--HG--
extra : rebase_source : ed1e745c7d69babe6875677e3c8a16a9d6f3172c
2016-07-14 14:31:12 +10:00
Carsten "Tomcat" Book 7400f56915 Merge mozilla-central to autoland 2016-07-14 13:49:32 +02:00
Carsten "Tomcat" Book bfcc10319e merge mozilla-inbound to mozilla-central a=merge 2016-07-14 11:45:54 +02:00
JW Wang 922e0eae89 Bug 1286760 - use macro to simplify the code. r=gerald
MozReview-Commit-ID: HsAOgQoGuQ5

--HG--
extra : rebase_source : b8e577ec6224bea0fc74bf5b1b782d30d7541a0c
2016-07-14 15:09:06 +08:00
JW Wang 91a7995095 Bug 1286755 - remove duplicate check. r=bechen.
MozReview-Commit-ID: FhTfHMERpLC

--HG--
extra : rebase_source : ce509936f2cb501d9c5df8ae03a8780960cd6bd0
2016-07-14 14:21:43 +08:00
Nils Ohlmeier [:drno] 2f8d5ee202 Bug 1273652: mochi test to verify rendering happens after double negotiation. r=jesup
MozReview-Commit-ID: 9g8oa306DCE

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_promiseSendOnly.html => dom/media/tests/mochitest/test_peerConnection_renderAfterRenegotiation.html
extra : rebase_source : 4092535f255858736f95b065bae1390cb557a4be
2016-07-12 16:36:59 -07:00
James Cheng 96e45dba10 Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. r=jwwang
MozReview-Commit-ID: Ceq6vpGPNdA

--HG--
rename : dom/media/eme/CDMCallbackProxy.cpp => dom/media/gmp/GMPCDMCallbackProxy.cpp
rename : dom/media/eme/CDMCallbackProxy.h => dom/media/gmp/GMPCDMCallbackProxy.h
extra : transplant_source : %E1g%E9yJ%A8%7B%FFYw%FF%D3%B3%A4%D3%8F%93%DE%1B%7C
2016-07-11 12:52:07 +08:00
Jean-Yves Avenard 5b39e168bb Bug 1285987: Narrow the workaround added in bug 1276184 to only be effective with webm. r=gerald
Some invalid streams incorrectly tag all frames as keyframes, which cause the frames to be inserted in the wrong order in the trackbuffer.

MozReview-Commit-ID: EZurdiMxmle

--HG--
extra : rebase_source : d739eecb9e5b06aaeefcf044b5735949db86522d
2016-07-13 21:20:50 +10:00
Carsten "Tomcat" Book 010d84a620 merge mozilla-inbound to mozilla-central a=merge 2016-07-12 16:30:18 +02:00
JW Wang 2b74567dc5 Bug 1283785. Part 4 - remove unused macros and fix some styles. r=kaku
MozReview-Commit-ID: 4xz8rlymOsS

--HG--
extra : rebase_source : fc516865f9434192970ac89674b4731788226b86
2016-07-01 18:10:57 +08:00
JW Wang 764f9db0aa Bug 1283785. Part 3 - merge and remove unused functions. r=kaku
MozReview-Commit-ID: IC5bTvawVGm

--HG--
extra : rebase_source : 1194596e5516a4241f0c03f228c3496667421e61
2016-07-01 17:55:41 +08:00
JW Wang 871505d9fa Bug 1283785. Part 2 - remove the IsVideoDecoding() check from EnsureVideoDecodeTaskQueued(). r=kaku
EnsureVideoDecodeTaskQueued() is always called when NeedMoreVideo() is true which
guarantees mIsVideoQueueFinished is false and IsVideoDecoding() is true.

MozReview-Commit-ID: BURhDl6vNXi

--HG--
extra : rebase_source : 620175f87586075625ae3f57911f8f291a5320aa
2016-07-01 17:53:03 +08:00
JW Wang 1bac9b5fbe Bug 1283785. Part 1 - remove the IsVideoRequestPending() check from EnsureVideoDecodeTaskQueued() r=kaku
1. EnsureVideoDecodeTaskQueued() is called from video callbaks where IsVideoRequestPending() is false.
2. EnsureVideoDecodeTaskQueued() is called from Seek() which checks IsVideoRequestPending() is false.

MozReview-Commit-ID: 59qu0Gh6nK7

--HG--
extra : rebase_source : 29941e0e2a450db572f84d22de9707eeb250d6e9
2016-07-01 17:49:25 +08:00
JW Wang dcbbe2b3bf Bug 1283783 - cancel callbacks before rejecting the promise. r=kaku
MozReview-Commit-ID: 820xSLlaKa3

--HG--
extra : rebase_source : f6a7ac45914958f4e8e7495f4f2c5342cca172c7
2016-07-01 16:09:32 +08:00
Alastor Wu b7270d91cb Bug 1278748 - part7 : vertical tab isn't a space characters. r=rillian
Definition of the space character : https://html.spec.whatwg.org/multipage/infrastructure.html#space-character
MozReview-Commit-ID: FEbIhWsGjPi

--HG--
extra : rebase_source : 759ddd031e694e06ad5a19ea6a3f053cf2e7b2f0
2016-07-12 11:02:29 +08:00
Alastor Wu ad9db94bfd Bug 1278748 - part6 : modify timestamp parsing rule. r=rillian
MozReview-Commit-ID: 2KfEeTww1eX

--HG--
extra : rebase_source : e0d278b8dcb9b5a3d4911be1ad72c32c7b6e7de8
2016-07-12 11:02:22 +08:00
Alastor Wu db86aafa55 Bug 1278748 - part5 : the value of position and line are double. r=rillian
Spec parsing rule : https://w3c.github.io/webvtt/#cue-timings-and-settings-parsing
Spec issue : https://github.com/w3c/webvtt/issues/307#issuecomment-229886334, https://github.com/w3c/web-platform-tests/issues/3222

MozReview-Commit-ID: 9ONE7r1fvlD

--HG--
extra : rebase_source : 7d80d231e916b2f439801b4868d929cb2d455971
2016-07-12 10:57:21 +08:00
Alastor Wu e0bfa5640a Bug 1278748 - part4 : should not throw error if the correct signature doesn't follow with new line. r=rillian
MozReview-Commit-ID: 5cM7RyZfSY1

--HG--
extra : rebase_source : 49c0be536417f317b4d4cc0510c08bcffb8a626c
2016-07-12 10:57:18 +08:00
Alastor Wu 358097b137 Bug 1278748 - part1 : cue's attribute can be set multiple times. r=rillian
MozReview-Commit-ID: 8jWQmRojviV

--HG--
extra : rebase_source : 9a385cc52116f7bdb2c8fe103f4cf6f14959a784
2016-07-12 10:57:07 +08:00
JW Wang 9d86d0a443 Bug 1283769 - don't discard audio samples until seek is completed. r=kaku
MozReview-Commit-ID: AirmL0fETNL

--HG--
extra : rebase_source : 194659f4eadb21604ce5dc8ee3aa151b16b3d154
2016-07-01 15:59:56 +08:00
Chris Pearce 48d570573b Bug 1282577 - Guard against multiple intr messages causes us to multi-delete GMP actors. r=jesup.
This is a regression from bug 1162358.

We must be hitting the #ifndef SHMEM_ALLOC_IN_CHILD block in
GMPVideoDecoderChild::Alloc() with multiple allocs doing intr calls at once.
If this happens when a DecodingComplete() comes in, we'll end up sending one
task to re-call RecvDecodingComplete for every Alloc() blocked on an intr
response.  This would result in us ending up trying to Send__delete__() in
RecvDecodingComplete() twice.  Which causes the runtime abort we're seeing
here.

I think that could happen in the WidevineVideoDecoder if a Decode message comes
in, and goes into a ReturnOutput(), tries to alloc a frame and has to spin on
an intr message response, and another Decode message comes in and does the
same, so GMPVideoDecoderChild::mNeedShmemIntrCount will be 2, and then a
DecodingComplete comes in, and when two tasks on the stack in
GMPVideoDecoderChild::Alloc() finish they both end up dispatching a task to
re-call GMPVideoDecoderChild::RecvDecodingComplete(). So we end up trying to
Send__delete__() in RecvDecodingComplete() twice.

I expect the same problem exists in the GMPVideoEncoder too.

intr, or spinning event loops in general for that matter, is evil.


MozReview-Commit-ID: AKsvP62G3Cx

--HG--
extra : rebase_source : 53ca12dbbbf3ab071788e2322b7c926ec7c0325f
2016-07-11 21:52:31 +12:00
Wes Kocher 79c14ffdc6 Merge inbound to central, a=merge 2016-07-11 13:56:12 -07:00
Carsten "Tomcat" Book 6139c05b2d Merge mozilla-central to mozilla-inbound 2016-07-11 16:24:23 +02:00
Carsten "Tomcat" Book bd92616152 merge mozilla-inbound to mozilla-central a=merge 2016-07-11 16:21:15 +02:00
Carsten "Tomcat" Book 40069289c1 Merge mozilla-central to autoland 2016-07-11 16:25:51 +02:00
JW Wang 2dc3a59bbe Bug 1285887 - MediaDecoder::PlayStateStr() should call ToPlayStateStr() to eliminate redundant code. r=bechen
MozReview-Commit-ID: pwhafUHxOL

--HG--
extra : rebase_source : c43ecb4bf00fb31ccb07f4efac5a16e51cfe91f4
2016-07-11 17:42:34 +08:00
Thomas Zimmermann a610242b37 Bug 1280600: Merge Android and b2g branches in build scripts where possible, r=glandium
B2g now has 'OS_TARGET' set to 'Android'. This patch merges Android
and Gonk branches in the build scripts where possible.

MozReview-Commit-ID: 9hKA0Gc62Xc
2016-07-11 15:16:56 +02:00
JW Wang fed5a4ba6d Bug 1283718. Part 6 - always check NeedMoreVideo() before requesting new video. r=kaku
We still have a chance to finish seeking even when video promises are rejected
provided we already have video samples in the queue.

MozReview-Commit-ID: 5cIbryiLMYt

--HG--
extra : rebase_source : bebed5ab2639686f75eb8aa122fe4e3aac3a98ca
2016-07-07 12:03:48 +08:00
JW Wang 5f103ef1ca Bug 1283718. Part 5 - move the call to EnsureVideoDecodeTaskQueued() out of MaybeFinishSeek() so we only request video in video callbacks. r=kaku
MozReview-Commit-ID: 3Hdwx26I9Mi

--HG--
extra : rebase_source : 9e9aa7e5acd2517904bb282746bba48cc43ce94c
2016-07-07 11:45:57 +08:00
JW Wang 44e9fa5a27 Bug 1283718. Part 4 - rename some function. r=kaku
MozReview-Commit-ID: CGOiy8SBjMR

--HG--
extra : rebase_source : 404b594b91473fecf2d445e402685ce080ae55aa
2016-07-07 11:39:56 +08:00
JW Wang f0ef2f4515 Bug 1283718. Part 3 - replace some code with new helpers. r=kaku
MozReview-Commit-ID: 3fHSEoxdh9u

--HG--
extra : rebase_source : 0532da9c0b61f4c36acb52f397683e4560dc9a6a
2016-07-07 11:32:27 +08:00
JW Wang d87290b303 Bug 1283718. Part 2 - fix the logic of IsVideoSeekComplete(). r=kaku
MozReview-Commit-ID: L1u5P5hWMAA

--HG--
extra : rebase_source : 670e70671e5e2449371b270303d933b6c044d091
2016-07-07 11:23:11 +08:00