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

119 Коммитов

Автор SHA1 Сообщение Дата
JW Wang 35f6829a03 Bug 1378295. P1 - remove unused MFR::mDecoder. r=jya
MozReview-Commit-ID: BuvxlYs0LqD

--HG--
extra : rebase_source : 8595e8c5e08e9cd6575b3e3bf37e59e25c79045c
extra : intermediate-source : 589082a3f0571cea45e6942a1e6b82adda7efdcb
extra : source : 47cdc0a2b7acec44d102b165e1867b4f689e488c
2017-07-13 15:13:12 +08:00
JW Wang ef025c6fcf Bug 1316211. P15 - remove MDR from the base class of MFR. r=gerald
MozReview-Commit-ID: Jf5pCxkhexg

--HG--
extra : rebase_source : 3ec9423d4d0f3b60ee9e5f6f19af18188530e1d9
extra : source : 4fbc225bfc79abacaf47ffd4405ef2d6711dea32
2017-07-19 22:18:37 +08:00
JW Wang 5370eb3105 Bug 1316211. P13 - replace use of MediaDecoderReader with MediaFormatReader. r=gerald
We will remove MediaDecoderReader in the future.

MozReview-Commit-ID: BaCRXleKK5a

--HG--
extra : rebase_source : dc14a593d6291136f02b1deb910cd6dcd01c0355
extra : source : 8f71b7dae0a541562c7c3829b5a873e9f9fd2674
2017-07-19 17:01:32 +08:00
Jean-Yves Avenard f50943d4cc Bug 1379190: P1. Remove AndroidMediaDecoder and relatives. r=cpearce
They are no longer supported and can't work with API >= 16

MozReview-Commit-ID: JkftKxW5OtY

--HG--
extra : rebase_source : 6ed4032141add293d21354640c96fc75adc565d9
2017-07-13 12:54:03 +02:00
JW Wang 4ca981216d Bug 1380234. P1 - pass KnowsCompositor to MFR through MediaDecoderReaderInit. r=jya
MozReview-Commit-ID: 3krK3meG5jV

--HG--
extra : rebase_source : f0a628ab28a527fa7f79ec61672e988cf1def8e7
extra : source : c8c2a6f2506338a8208f3bcf56160c47e6a29000
2017-07-12 15:37:02 +08:00
JW Wang aeaad5857f Bug 1378689 - add a structure to pack the data sent to the MediaDecoderReader constructor. r=jya
It would be handy we want to pass more data to the constructor.

MozReview-Commit-ID: 3AUUsTbv534

--HG--
extra : rebase_source : 8d230c85addf1ba296e6a0512f0d18ebd41c0d17
extra : source : e6568e9fa24f52c59baecaa16aa044b492f407fb
2017-07-06 16:59:22 +08:00
JW Wang f913f097ee Bug 1378304. P3 - store MediaResource in MediaDecoderReader and replace the use of GetResource() with mResource. r=jya
Note MediaDecoderReader::GetBuffered() accesses mResource which is null
when it is actually a MediaFormatReader. However, it is OK for MediaFormatReader
will override UpdateBuffered() and will never call GetBuffered().

MozReview-Commit-ID: 5qcH4PHDzin

--HG--
extra : rebase_source : acb3ef2d981509a397045110cbb7cbecba8d5bee
extra : source : 5f66ecf33bfaecceaab8d9020175e26c5ca5cd1b
2017-07-05 14:53:31 +08:00
JW Wang d0a1126090 Bug 1378304. P1 - pass a MediaResource* to DecoderTraits::CreateReader() to reduce the use of AbstractMediaDecoder::GetResource(). r=jya
MozReview-Commit-ID: CKFiqaBznVe

--HG--
extra : rebase_source : 2c78850a82ee610e794488bc90e895b8986737da
extra : source : a0a827722cc16c7a5070e37497cba6e4d414aba2
2017-07-05 14:07:54 +08:00
JW Wang 1e2be3e873 Bug 1376363. P1 - store container type in MediaDecoder. r=gerald
So we can remove MediaResource::GetContentType() in the future.

MozReview-Commit-ID: zWUNF2uGpf

--HG--
extra : rebase_source : 04f50c4db9dac8503f878a8a1986e627f9a074a3
extra : source : 10737393beaabed640aa3ff67fac2a07567400b4
2017-06-26 17:10:47 +08:00
JW Wang 5c00111ef1 Bug 1374930. P1 - add ChannelMediaDecoder to be the base class which uses channel-based MediaResource. r=cpearce
MozReview-Commit-ID: 6L4me2BQkgi

--HG--
extra : rebase_source : d78de302d0551b9754569885d79ed3aba6571f61
extra : intermediate-source : d32948c3c5110b663d4ac61a1f483c8f8db00707
extra : source : cfd7941b933671dcb83c1131463b39f58fec627d
2017-06-19 15:50:09 +08:00
James Cheng 3c169ca5aa Bug 1374953 - Allow audio/mpegurl as HLS media type. r=jya
MozReview-Commit-ID: 6J4A4G21D0N

--HG--
extra : rebase_source : 9c8c7ad68fe4ee12b546e7707310f991572e9650
2017-06-21 16:10:11 +08:00
Jan Henning 0b677ecf4b Bug 1168435 - Part 3 - Remove separate MP3 name space. r=jya
MozReview-Commit-ID: D876PpLd93C

--HG--
extra : rebase_source : cd65b9ed78674e601493f7d0145bf038e0e48d0b
2017-06-15 15:32:20 +02:00
James Cheng 317419922a Bug 1372501 - Add checking whether HLS mimetype is supported in DecoderTraits::IsSupportedInVideoDocument. r=jya
MozReview-Commit-ID: I3THa5v1DAf

--HG--
extra : rebase_source : f3bc582b2aee21db832ecb0482bdaa7b7a684b5e
2017-06-13 15:56:32 +08:00
James Cheng 95c4d8f668 Bug 1350246 - [Part6] Use DecoderTraits::IsHttpLiveStreamingType to implement HLSDecoder::IsSupportedType and use HLSDecoder::IsSupportedType to implement the following APIs for mimetype of HLS. r=jya
(1) Check if we should instantiate HLSDecoder in DecoderTraits::InstantiateDecoder.
(2) Reply CANPLAY_MAYBE in CanHandleMediaType on Fennec.

MozReview-Commit-ID: 4Y6Ju5yk6ha

--HG--
extra : rebase_source : 0755d580ac3e415849afc9f7f5f6ffd2d0dfc870
2017-05-31 18:37:23 +08:00
James Cheng d994078234 Bug 1350246 - [Part5] Move IsHttpLiveStreamingType from DecoderTraits.cpp to its .h. and modify the callers related to this change. r=jya
MozReview-Commit-ID: 8lT9rUDmLvD

--HG--
extra : rebase_source : af3138c9aff2419424c6288cfdc13e40121756a1
2017-05-18 14:47:55 +08:00
JW Wang 4031d18757 Bug 1371200. P1 - add MediaDecoderInit and fix MediaDecoder constructor and its friends. r=cpearce
We will add more fields to MediaDecoderInit and be able to remove some setters.

MozReview-Commit-ID: BVx935IHQHf

--HG--
extra : rebase_source : 6d167265e478ce39881ceada1303e9ca18189bbf
extra : source : 0c26f909568f673591ad6720458dfc912c01daad
2017-06-07 12:14:11 +08:00
Jean-Yves Avenard 7310f412e5 Bug 1370192: P1. Remove usage of DirectShowDecoder. r=cpearce
MozReview-Commit-ID: A3IOOIKR187

--HG--
extra : rebase_source : cf5723bebc1a11fe665b54ce7ee02b4e02ecd3c4
2017-06-05 12:59:46 +02:00
Sylvestre Ledru c19020ed69 Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/media r=jya
MozReview-Commit-ID: IA3oVcvzTQw

--HG--
extra : rebase_source : 808f76256387d3f259a0ce42fc3cfe6416b6d8a8
2017-02-09 10:32:18 +01:00
Gerald Squelart 5745998021 Bug 1331770 - Rename 'MediaContentType' to 'MediaContainerType' - r=jya
MozReview-Commit-ID: F0BWai8vPyo

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaContainerType.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaContainerType.h
extra : rebase_source : 640ada96750b4496055087e80ae3f600c9df31c9
2017-01-18 11:59:03 +11:00
Gerald Squelart 2b616e929b Bug 1330284 - Use MediaContentType in DecoderTraits:IsHttpLiveStreamingType - r=jya
MozReview-Commit-ID: I0C3ulkYiGX

--HG--
extra : rebase_source : ea6991e50c9af54f4163ac19f9e3915bbc1dfe20
2016-12-28 09:26:42 +11:00
Gerald Squelart 977b4ccf03 Bug 1330284 - Use MediaCodecs in DirectShowDecoder and AndroidMediaPluginHost - r=jya
MozReview-Commit-ID: UJUk1OAAqG

--HG--
extra : rebase_source : ced7a67163aa924c9d43a4723da75be35d6a9518
2016-12-23 08:43:49 +11:00
Gerald Squelart 882af395f0 Bug 1330284 - Use MediaContentType in CreateReader and MediaBufferDecoder - r=jya
MozReview-Commit-ID: E9yVaxNdLad

--HG--
extra : rebase_source : 35828ab34adcc2fca6d607459d3dbb3c3c16d5cd
2016-12-22 11:57:48 +11:00
Gerald Squelart 236d4453f8 Bug 1330284 - Use MediaCodecs::Range() in DecoderTraits:CanHandleCodecsType() - r=jya
MozReview-Commit-ID: EFiDpSKw2JN

--HG--
extra : rebase_source : 15523c3af7fcc296d5d4459c19020e08e82f5b39
2016-12-22 10:12:42 +11:00
Gerald Squelart cc7fa47ec9 Bug 1330284 - Use MediaContentType in DecoderTraits:IsAndroidMediaType() - r=jya
MozReview-Commit-ID: 6gK5FqMDypq

--HG--
extra : rebase_source : 3c4e99990b1262e931987c9bbbf56c8fa5d512b9
2016-12-22 12:43:19 +11:00
Gerald Squelart 7481f42a33 Bug 1330284 - Use MediaContentType in AndroidMediaPluginHost::CreateDecoder, AndroidMediaDecoder, AndroidMediaReader - r=jya
MozReview-Commit-ID: JvdBe8I9A2K

--HG--
extra : rebase_source : 0721b3566da690914279f0f149fc566679fc5e01
2016-12-28 15:07:45 +11:00
Gerald Squelart a57c3db672 Bug 1330284 - Use MediaContentType in AndroidMediaPluginHost::FindDecoder - r=jya
MozReview-Commit-ID: 8IwazcFA5Jr

--HG--
extra : rebase_source : a622aeb5aba83dd382a8d9f450f709d21965882f
2016-12-28 09:51:48 +11:00
Gerald Squelart cb9b24b872 Bug 1330284 - Use MediaContentType in DirectShowDecoder - r=jya
MozReview-Commit-ID: JKBAUVH49If

--HG--
extra : rebase_source : 91ebe7726dd45d285e713619ebd843887c52810e
2016-12-23 15:53:16 +11:00
Gerald Squelart 588d91b674 Bug 1330284 - Use MediaContentType in FlacDecoder - r=jya
MozReview-Commit-ID: IwD2aXAmuQ4

--HG--
extra : rebase_source : 193701b54c86655568eefe01a6df10ba869494f6
2016-12-20 19:24:17 +11:00
Gerald Squelart 02d0ccb22f Bug 1330284 - Use MediaContentType in WaveDecoder - r=jya
MozReview-Commit-ID: DD8upS1VpAq

--HG--
extra : rebase_source : b51925f30a87807583d55cbe44e8eb4ff1c8fb52
2016-12-20 19:09:41 +11:00
Gerald Squelart bbc6861d9d Bug 1330284 - Use MediaContentType in ADTSDecoder - r=jya
MozReview-Commit-ID: A7HO1IzA1Dx

--HG--
extra : rebase_source : 71b575ec81e479b90da4a4ca993e7844712b84d8
2016-12-20 18:57:26 +11:00
Gerald Squelart f1181d5b1b Bug 1330284 - Use MediaContentType in MP3Decoder - r=jya
MozReview-Commit-ID: eahpZyDfgH

--HG--
extra : rebase_source : 55d188aadcf0cd25b8dc512cf9eaefc996a82940
2017-01-01 12:34:12 +11:00
Gerald Squelart f3a92fa0a6 Bug 1330284 - Use MediaContentType in MP4Decoder - r=jya
MozReview-Commit-ID: 9Npl40Iicjc

--HG--
extra : rebase_source : 27df1df1cdf8eb8b608e155c0146c8b09d655de4
2017-01-01 12:27:45 +11:00
Gerald Squelart 843031e2a5 Bug 1330284 - Use MediaContentType in WebMDecoder - r=jya
MozReview-Commit-ID: 5tcc9of73WR

--HG--
extra : rebase_source : 38ef74afdf27fec45f84f33f539717b3595358f2
2017-01-01 12:16:38 +11:00
Gerald Squelart f3436a269b Bug 1330284 - Use MediaContentType in OggDecoder - r=jya
MozReview-Commit-ID: 5sjoy8Gwm4K

--HG--
extra : rebase_source : 0ce9eda7933c1ed01646bff2f676a60647228406
2017-01-01 12:08:36 +11:00
Gerald Squelart 778e0a6594 Bug 1330284 - Use MediaContentType in DecoderTraits/InstantiateDecoder - r=jya
MozReview-Commit-ID: ArFTeoGvWOl

--HG--
extra : rebase_source : 31c155fdeb4f7d777fc77f03424a86e388cddea7
2017-01-01 12:01:32 +11:00
Gerald Squelart 5587e692df Bug 1329568 - Remove MediaContentType crutches - r=jya
Now that we have move all data-handling functions to MediaMIMEType and friends,
we can remove direct accesses to data from MediaContentType, to better separate
the context that MediaContentType represents, from the data it includes.

Dependent code needs to be mechanically updated to now use the proper APIs.

Note that in most places, we just extract MIME strings. Further work will take
place in later bugs, to completely replace these strings with MediaContentType
or more appropriate types...

MozReview-Commit-ID: LoX8dhX7OlB

--HG--
extra : rebase_source : cf221ac3c104f99b36cfa055afcf67d3bca26d0e
2017-01-01 09:24:24 +11:00
Wes Kocher 48f75e3c03 Backed out 13 changesets (bug 1329568) for wpt-11 failures in mediasource-addsourcebuffer.html a=backout CLOSED TREE
Backed out changeset 8f37ee96bd78 (bug 1329568)
Backed out changeset 706da9f85272 (bug 1329568)
Backed out changeset c316c8d24d32 (bug 1329568)
Backed out changeset 90a091e65db3 (bug 1329568)
Backed out changeset da855d6a78bb (bug 1329568)
Backed out changeset 3a49367220e3 (bug 1329568)
Backed out changeset 453851b40e3e (bug 1329568)
Backed out changeset 662529436cc4 (bug 1329568)
Backed out changeset 7c62078beb88 (bug 1329568)
Backed out changeset 99758b5f7918 (bug 1329568)
Backed out changeset 2ce9dcf0c274 (bug 1329568)
Backed out changeset 644f206d06d6 (bug 1329568)
Backed out changeset e1ed12f057c8 (bug 1329568)

MozReview-Commit-ID: FhJlySehxHi
2017-01-12 15:10:52 -08:00
Gerald Squelart 3a78522186 Bug 1329568 - Remove MediaContentType crutches - r=jya
Now that we have move all data-handling functions to MediaMIMEType and friends,
we can remove direct accesses to data from MediaContentType, to better separate
the context that MediaContentType represents, from the data it includes.

Dependent code needs to be mechanically updated to now use the proper APIs.

Note that in most places, we just extract MIME strings. Further work will take
place in later bugs, to completely replace these strings with MediaContentType
or more appropriate types...

MozReview-Commit-ID: LoX8dhX7OlB

--HG--
extra : rebase_source : 63eba419e5cb8a69500008145769c8e4ef99f33f
2017-01-01 09:24:24 +11:00
Gerald Squelart cd181bc396 Bug 1329561 - MediaContentType is always valid - r=jya
MediaContentType can only be created through MakeMediaContentType(), which
returns a Maybe<MediaContentType>.
If the return value is Nothing, parsing failed.
Otherwise the contained MediaContentType object is guaranteed to be valid;
E.g., GetMIMEType() will always return a non-empty string.

Note that this interface will change a lot in the following bugs&patches, so
please don't worry about the 'Get' in the never-failing GetMIMEType(), it will
be gone soon!

MozReview-Commit-ID: IjGKkQ6RVd4

--HG--
extra : rebase_source : 5254af80dec0beb05da49f68c12fecc28edd725e
2016-12-01 12:56:11 +11:00
Jean-Yves Avenard 510964c575 Bug 1316205: P2. Remove wave duplicated code. r=kaku
MozReview-Commit-ID: 5s7eeMa9DU9

--HG--
extra : rebase_source : c8180552158face5950fa4ad6825f13d9d5f4366
2016-11-09 13:08:56 +11:00
Jean-Yves Avenard f170567837 Bug 1316205: P1. Remove unused WaveReader. r=kaku
MozReview-Commit-ID: 6pMFt9jrFED

--HG--
extra : rebase_source : a1ef4df68fc76086b00c9b60c1b1aac745d2d5c1
2016-11-09 12:52:53 +11:00
Jean-Yves Avenard d3a0f99985 Bug 1313632: P1. Remove unused OggReader. r=kaku
Also remove related preference.

MozReview-Commit-ID: D5pkyPXAoG9

--HG--
extra : rebase_source : 845d14a7059ae54d939300bb0f7f51664da05ff4
2016-11-09 11:54:41 +11:00
Ehsan Akhgari d5d66e16c9 Bug 1311214 - Remove b2g OMX encoder/decoder; r=cpearce 2016-10-19 17:44:31 -04:00
Gerald Squelart 700d804c16 Bug 1176218 - p9. Pass MediaContentType to MP4Decoder::CanHandleMediaType - r=jya
Just passing the new MediaContentType struct, with no processing changes (yet).

MozReview-Commit-ID: KZ4xkCihPb1

--HG--
extra : rebase_source : e40eb72cc63e0a814306c25ea9b609178517729e
2016-10-01 18:10:18 +10:00
Gerald Squelart 9aaeb961ad Bug 1176218 - p8. Use MediaContentType in DecoderTraits - r=jya
MozReview-Commit-ID: G0Blu5qOpwD

--HG--
extra : rebase_source : dc9a771d1e7b84828903d7d3e72732d8c66752ca
2016-10-01 18:09:50 +10:00
Gerald Squelart 1176084978 Bug 1176218 - p7. Hide CanHandle{Media|Codecs}Type - r=jya
These methods don't need to be exposed anymore.
They are still used in the cpp, so we keep them there as static functions.

MozReview-Commit-ID: F1BxEFzj7Re

--HG--
extra : rebase_source : 458b92a2b8987007ed68f32bbf26eaf4cf46742f
2016-09-26 16:01:59 +10:00
Gerald Squelart 2ac92a119f Bug 1176218 - p6. Move ShouldHandleMediaType down the cpp - r=jya
Just moving a function, it will help review upcoming changes in the next patch.

MozReview-Commit-ID: Ilbhinse9C6

--HG--
extra : rebase_source : 1a62ac51fbb33c5cc19f58b34ede28e91fa96d0a
2016-09-26 16:02:59 +10:00
Gerald Squelart cc9b7da0e1 Bug 1176218 - p3. Add DecoderTraits::CanHandleContentType - r=jya
Instead of taking MIME&codecs strings, CanHandleContentType takes an
MediaContentType, which can be used to access these and other parameters.

MozReview-Commit-ID: 14Cg6JoQS0g

--HG--
extra : rebase_source : 85b8e852f004b2728b06831c43b33ee4e7aebe52
2016-09-26 16:43:16 +10:00
JW Wang 6862b9379e Bug 1297301. Part 1 - Remove #ifdef MOZ_RAW. r=kentuckyfriedtakahe
MozReview-Commit-ID: LF4if8bZZGY

--HG--
rename : dom/media/raw/RawStructs.h => netwerk/protocol/device/RawStructs.h
extra : rebase_source : 96191a564754311200d6df36b1643990efa87e51
2016-08-24 11:02:37 +12:00
Jean-Yves Avenard 72e257f20f Bug 1195723: [flac] P9. Hook up flac decoder and demuxer. r=kamidphish
MozReview-Commit-ID: 5Md6mcZkME

--HG--
extra : rebase_source : 8cee6fbc41f7de347702af4d03372a058a86d655
2016-08-17 15:45:06 +10:00