Commit Graph
82 Commits
Author SHA1 Message Date
Jean-Yves Avenard 45410b9a4e Bug 1397307 - P6. Calculate average video frame rate as video is playing. r=gerald
We unfortunately can't store this information in the VideoInfo as typically the framerate isn't found in the container's metadata. Additionally, the VideoInfo object is readable-only as it is shared across threads.

As such, we can only estimate it as we demux samples.

MozReview-Commit-ID: 5HB33ubfGAs
2017-09-12 21:20:09 +02:00
Jean-Yves Avenard f7f105d1e3 Bug 1397307 - P2. Wrap boolean in structure to prevent unwanted conversion. r=gerald
Automatic conversion (say from int to bool) makes DecoderParam difficult to extend.

MozReview-Commit-ID: G0T7jPogskN
2017-09-08 15:45:38 +02:00
Jean-Yves Avenard b111004277 Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v
2017-09-01 14:25:28 +02:00
Sebastian Hengst 4da5ab4851 Backed out changeset 409dbe62d0ea (bug 1394591) for asserting GLBlitHelper requires vertex_array_object in dom/media/mediasource/test/test_FrameSelection.html on Android 4.3. r=backout 2017-09-04 00:08:33 +02:00
Jean-Yves Avenard 225ffcb469 Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v
2017-09-01 14:25:28 +02:00
JW Wang f1ae66b766 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e
2017-07-20 09:56:08 +08:00
John Lin b99d806195 Bug 1344649 - part 5: deprecate ConfigurationChanged() once again. r=jya
MozReview-Commit-ID: D9b8rljlNzP
2017-03-14 12:58:27 +08:00
Kaku Kuo 5a5c6483b4 Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R
2017-03-09 17:12:02 +08:00
Iris Hsiao 03d30d3cc2 Backed out 6 changesets (bug 1346120) for autophone Mdm tests failure in test_background_video_drawimage_with_suspended_video.html
Backed out changeset a30c73fc8d69 (bug 1346120)
Backed out changeset f16556658fd9 (bug 1346120)
Backed out changeset 98d212462786 (bug 1346120)
Backed out changeset ba579adbed21 (bug 1346120)
Backed out changeset c0758b9bf7b5 (bug 1346120)
Backed out changeset 94a483ef784e (bug 1346120)
2017-03-13 16:53:14 +08:00
Kaku Kuo 258218c07c Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R
2017-03-09 17:12:02 +08:00
Jean-Yves Avenard 02f1e7c156 Bug 1322739: P2. Add Low Latency option to CreateDecoderParams. r=gerald
MozReview-Commit-ID: KcTGGUK7aq5
2017-02-22 13:02:58 +01:00
Jean-Yves Avenard a01f942ecf Bug 1322739: P1. Fix style and headers. r=gerald
MozReview-Commit-ID: L24Q7fX06Z0
2017-02-22 13:02:58 +01:00
Jean-Yves Avenard 3366dcbc57 Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd
2017-02-17 22:19:55 +01:00
Sebastian Hengst 71be4ca6aa Backed out changeset f508a675e8dc (bug 1339748) 2017-02-18 17:36:21 +01:00
Jean-Yves Avenard ebfd56f8ba Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd
2017-02-17 22:19:55 +01:00
Jean-Yves Avenard 3131921bf7 Bug 1336431: P5. Re-add ConfigurationChanged API. r=JamesCheng
We need to inform the MediaDataDecoder that a new sample configuration has been detected.
To do so, and to ensure that samples are easily matched to a given configuration, we first drain the decoder prior feeding a new frame.

MozReview-Commit-ID: Hye251CF21i
2017-02-13 11:15:54 +01:00
Jean-Yves Avenard a87ce58d5f Bug 1336431: P1. Fix coding style. r=gerald
MozReview-Commit-ID: GIwj8WxE9BA
2017-02-12 22:14:00 +01:00
Jean-Yves Avenard 875fa3f56f Bug 1336947: P1. Drain decoder until no more data is returned. r=gerald
It may not be possible for a decoder to return all drained samples in one go. This is particularly a problem on android where there's a limited amount of memory buffers available.

So we no longer expect the operation to complete in one go, we call Drain until there are no more samples returned.

MozReview-Commit-ID: GbfntKNBDaW
2017-02-07 15:36:20 +01:00
Jean-Yves Avenard add393f8ce Bug 1319987: P7. Re-implement handling for WaitingForKey in MFR. r=cpearce,gerald
MozReview-Commit-ID: FCiAO54oiH3
2017-01-27 11:48:00 +01:00
Jean-Yves Avenard d6b004c4a8 Bug 1319987: P5. Promisify MediaDataDecoder. r=cpearce,gerald,mattwoodrow,snorp
This is a big change, and unfortunately impossible to break down with independently functional commits.

There are four main changes being applied here:

* Code cleanup, including making all MediaDataDecoder related code mozilla coding style compliant
* Make MediaDataDecoder use MozPromise
* Making Flush and Shutdown processes fully asynchronous
* Fixing few data races encountered across the code, in particular in the Android PDM

MozReview-Commit-ID: DpiZucGofJT
2017-01-26 13:56:46 +01:00
Jean-Yves Avenard 6b32f5aa09 Bug 1319987: P1. Remove handling for WaitingForKey in MFR. r=cpearce
This is not compatible with promise based decoders. We'll re-implement it in a different fashion later on.

MozReview-Commit-ID: HYBNKVxEUmB
2016-12-20 18:53:39 +11:00
Chris Pearce 67c2499bd9 Bug 1335295 - [EME] Add pref to override EME decrypt/decode with blank decoder. r=jya
This means we can isolate whether a playback failure is in
the audio or video stream.

MozReview-Commit-ID: G4broHPaAkX
2017-01-31 15:42:45 +13:00
Matt Woodrow daac64e12c Bug 1329386 - Fix bustage 2017-01-19 12:52:49 +13:00
James Cheng 147365fa79 Bug 1299105 - Part 1: Check if the decoder support recycling to prevent from recreating decoder. r=jya
MozReview-Commit-ID: 7Xj6tSnGM81
2016-11-25 14:22:40 +08:00
Chris Pearce ce891f3e10 Bug 1317822 - Move GMPCrashHelper into its own file. r=gerald
MozReview-Commit-ID: 7CinZ2Y2Fmz
2016-11-16 11:35:36 +13:00
Gerald Squelart b3d603dbb4 Bug 1176218 - p11. PDM's Supports(TrackInfo) - r=jya
Add a new method alongside SupportsMimeType, which takes a TrackInfo that may
contain more information that just the MIME type.

Eventually the old SupportsMimeType should be removed, but we keep it for now,
as it is used quite extensively and it would be out of scope of this bug to
totally replace it now.

MozReview-Commit-ID: LJQBvSUB6J2
2016-10-07 15:30:30 +11:00
Ryan VanderMeulen 0cd9c69a12 Merge m-c to autoland. a=merge 2016-10-07 23:22:46 -04:00
Matt Woodrow 82dd7ee7e4 Bug 1300682 - Part 5: Use KnowsCompositor to initialize decoders and create one for VideoDecoderParent to use. r=nical,jya 2016-10-07 21:13:33 +13:00
James Cheng 11e2896150 Bug 1297003 - Part1-Store the error information in MediaResult while creating a/v decoders r=gerald
MozReview-Commit-ID: I6R4bX778n7
2016-10-06 11:19:56 +08:00
Jean-Yves Avenard a5bd1b8737 Bug 1297311: P1. Always recreate a decoder when SPS changes. r=cpearce
This allow consistency between platforms. A decoder will now always be shutdown and another one created if the video configuration changes.

MozReview-Commit-ID: 1SPzhVuBrip
2016-09-26 12:28:07 +10:00
Jean-Yves Avenard a18c867daa Bug 1299072: P18. Use MediaResult with InitPromise. r=gerald
MozReview-Commit-ID: JiLgiyxvfNC
2016-09-13 13:06:18 +10:00
Jean-Yves Avenard 0bc50b1ec6 Bug 1299072: P4. Return extended failure details to reader. r=gerald
We provide even further details for the GMP decoder. Other decoders to follow.

MozReview-Commit-ID: 7NxJPec8xWv
2016-09-10 09:56:53 +10:00
Matt Woodrow f8cc289363 Bug 1301294 - Remove unnecessary nsresult return value from MediaDataDecoder interface. r=jya 2016-09-09 15:50:37 +12:00
Jean-Yves Avenard 88afaa1cb6 Bug 1297265: P2. Amend MediaDataDecoder documentation to emphasize the new expected behavior. r=kamidphish
MozReview-Commit-ID: EHFnCnc58qh
2016-09-01 19:28:24 +10:00
Phil Ringnalda fc6fc4652f Backed out 11 changesets (bug 1297265) for gtest timeouts during MediaDataDecoder.H264
Backed out changeset 04d9b7160ac9 (bug 1297265)
Backed out changeset c7bffd1ba7fd (bug 1297265)
Backed out changeset ad1915ff688b (bug 1297265)
Backed out changeset 67a97304d44d (bug 1297265)
Backed out changeset e6b9e6184457 (bug 1297265)
Backed out changeset 30636ac0790f (bug 1297265)
Backed out changeset cc70d3a139bc (bug 1297265)
Backed out changeset 345a577c92a1 (bug 1297265)
Backed out changeset ec1f3ac8751c (bug 1297265)
Backed out changeset da9117375d2e (bug 1297265)
Backed out changeset dd4c7aafcc3d (bug 1297265)
2016-08-31 19:49:28 -07:00
Jean-Yves Avenard 7ed9e6aa8f Bug 1297265: P2. Amend MediaDataDecoder documentation to emphasize the new expected behavior. r=kamidphish
MozReview-Commit-ID: EHFnCnc58qh
2016-08-30 15:17:47 +10:00
Bryce Van Dyk 8c84be1a8f Bug 1145011 - Implement waitingforkey event. r=jya
Bubble information from SamplesWaitingForKey to an HTMLMediaElement so that we
can emit a waitingForKey event. If we are unable to decode more samples due to
needing a key the event will be signalled. See
http://w3c.github.io/encrypted-media/#dom-evt-waitingforkey for more information
on this event.

The code in place before this patch handles updating readyState when we are
waiting for a key, this patch adds the event which should be emitted in such a
case. The spec defines certain preconditions should be the case before running
the algo to emit this event. For example, the element should potentially be
playing, and it should have at least HAVE_FUTURE_DATA ready state. This is not
strictly true for when the new code is run, due how existing code handles ready
state. We are honoring the spirit of the spec, though the letter of the spec is
lightly gone against in the handling of the preconditions.

MozReview-Commit-ID: LKlDd4wkRSE
2016-08-22 08:51:01 +12:00
James Cheng e976e06310 Bug 1295920 - Replace enum with enum class in PlatformDecoderModule.h. r=jya
MozReview-Commit-ID: lDjsTI82pV
2016-08-17 17:24:13 +08:00
Kaku Kuo ecf28b320b Bug 1274626 part 4 - provide APIs to create blank decoders; r=jya
MozReview-Commit-ID: LiXOAzvVb1K
2016-07-28 23:11:57 +08:00
Carsten "Tomcat" Book 4a1d16e2d9 Backed out changeset 222b4883bf79 (bug 1274626) 2016-08-02 17:47:27 +02:00
Kaku Kuo e11cf4b1cb Bug 1274626 - Part 4 - provide APIs to create blank decoders; r=jya
MozReview-Commit-ID: LiXOAzvVb1K
2016-07-28 23:11:57 +08:00
James Cheng 032910244f Bug 1290036 - Make CreateDecoderParams get rid of unnecessary copy/move. r=gerald
MozReview-Commit-ID: HYUHoV4Vmkd
2016-07-28 17:52:49 +08:00
Chris Pearce 4d492d6997 Bug 1267918 - Add GMPCrashHelper for HTMLMediaElement. r=gerald
This ensures that unencrypted GMP decoding crash reporting works.

MozReview-Commit-ID: 84TAV5F9Ie0
2016-06-29 11:42:07 +12:00
Dan Glastonbury e63172cab6 Bug 1281632 - P1: Extract creation parameters and pass via struct. r=gerald
Extract all the parameters passed to CreateAudioDecoder/CreateVideoDecoder and
place them into a structure that is passed down to the creation of the actual
decoder, where the relevant parameters can be extracted.

This makes it easier to add more arguments to the Create*Decoder calls in future.

MozReview-Commit-ID: 9LZlcfRVz6A
2016-06-28 17:56:55 +12:00
Alfredo Yang d2457e4f60 Bug 1257107 - discard decoded data if its pts is smaller than seek time. r=jya
MozReview-Commit-ID: 70rbBsor8lp
2016-06-08 10:59:57 +08:00
Alfredo Yang e890782c53 Bug 1068151 - keep decoding a corrupted video. r=jya 2016-05-30 18:24:00 +02:00
Eric Rahm b9bbeb035b Bug 1274913 - Move PDM log definition to header. r=njn 2016-05-24 14:55:53 -07:00
JW Wang cbe7f99505 Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
MozReview-Commit-ID: E3DG84yKRmw
2016-05-19 17:50:31 +08:00
Ryan VanderMeulen a668852c77 Backed out changeset 0e4c5be816f3 (bug 1257107) for webm reftest failures.
CLOSED TREE
2016-05-19 10:39:07 -04:00
Alfredo Yang 2616966638 Bug 1257107 - Discard decoded data if its pts is smaller than seek time. r=jya 2016-05-17 21:46:00 -04:00