Commit Graph

80 Commits

Author SHA1 Message Date
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
Jean-Yves Avenard
f27ae02841 Bug 1195723: [ogg] P2. Refactor mimetype parsing for ogg. r=kamidphish
Make it just like MP4, WebM and all the others new demuxers.
Additionally, make the ogg related preferences part of MediaPrefs.

MozReview-Commit-ID: DTedHyIMv9I

--HG--
extra : rebase_source : 8bfdf971993281454776a7c4fa644c9fc7c5ee8c
2016-08-04 17:14:28 +10:00
Wes Kocher
24cb21d4f6 Backed out 15 changesets (bug 1195723) for various media test failures/unexpected-passes a=backout
Backed out changeset 2a3b10281c9c (bug 1195723)
Backed out changeset c3775a6225d8 (bug 1195723)
Backed out changeset ba0aeb71c672 (bug 1195723)
Backed out changeset 894061e6037e (bug 1195723)
Backed out changeset 4637f8be98bb (bug 1195723)
Backed out changeset c2664064fa55 (bug 1195723)
Backed out changeset 39908ea4c390 (bug 1195723)
Backed out changeset 3fcb5682049a (bug 1195723)
Backed out changeset 867d6507a381 (bug 1195723)
Backed out changeset c938ad9dd11c (bug 1195723)
Backed out changeset 7bdb9540b60f (bug 1195723)
Backed out changeset a4f7a73c04fa (bug 1195723)
Backed out changeset 7f86beff4263 (bug 1195723)
Backed out changeset efb6bcf743e7 (bug 1195723)
Backed out changeset 04eceefa54c7 (bug 1195723)
2016-08-22 10:07:25 -07:00
Jean-Yves Avenard
0b8aa201dd Bug 1195723: [flac] P9. Hook up flac decoder and demuxer. r=kamidphish
MozReview-Commit-ID: 5Md6mcZkME

--HG--
extra : rebase_source : 0b8015d1da20e113aef4fd41847d4257f763b3b7
2016-08-17 15:45:06 +10:00
Jean-Yves Avenard
5dd2775ab5 Bug 1195723: [ogg] P2. Refactor mimetype parsing for ogg. r=kamidphish
Make it just like MP4, WebM and all the others new demuxers.
Additionally, make the ogg related preferences part of MediaPrefs.

MozReview-Commit-ID: DTedHyIMv9I

--HG--
extra : rebase_source : 5ab806335b4ad17b04a20e37caf87eeb37f68bed
2016-08-04 17:14:28 +10:00
bechen
931402dd2f Bug 1291629 - Remove RTSP code. r=jwwang
MozReview-Commit-ID: AxaLwO4rTuY

--HG--
extra : rebase_source : f8a5de1be1471238d62b6bbc419b3a45f2590da6
2016-08-10 10:32:25 +08:00
Brion Vibber
847a1df7ea Bug 1168674: [ogg] P2. Hook up new OggDemuxer. r=me
Not on by default yet. use media.format-reader.ogg preference

MozReview-Commit-ID: 7pH67XERTbW

--HG--
extra : rebase_source : 9868f07f622782b4859b95f237f7ee516345c2b2
2016-07-21 11:34:42 +10:00
Ralph Giles
a8bc972afe Bug 1272142 - Consider application/x-mpegurl as HLS. r=SingingTree
streambox.fr is serving .m3u8 files which this media type.
There are probably others, so accept this as well.

MozReview-Commit-ID: 1ZUan7TsBzD

--HG--
extra : rebase_source : 50530ed00e87cfe2a76ae355f7b356c6bc8adff8
2016-05-11 14:23:11 -07:00
Ralph Giles
00e18217e5 Bug 1262659 - Report HTTP Live Streaming playback requests. r=cpearce,bsmedberg
Identify HLS media types (and related m3u playlists) and report
telemetry about how often we fail to play them. This is designed
to measure popularity to inform decisions about support for this
format.

MozReview-Commit-ID: Fp8lNMOJKyA
2016-04-21 09:53:01 -07:00
Gerald Squelart
ecfb205472 Bug 1248507 - p1. Pass DecoderDoctorDiagnostics to PDMs&more - r=jya
Pass declared-but-yet-undefined DecoderDoctorDiagnostics pointer to various
routines that contribute to deciding if a media format can be played, and
those that create decoders.

Points where a DecoderDoctorDiagnostics can be injected are currently marked
with "/* DecoderDoctorDiagnostics* */ nullptr", and some will be used in
following patches.

MozReview-Commit-ID: 7u37bvY4CpW
2016-04-19 17:36:19 +10:00
Jean-Yves Avenard
f6b7c1b48e Bug 1251184: [quicktime] P2. Use external plugin if available over native playback. r=cpearce
While almost identical to video/mp4, quicktime files often use codecs that we don't support: in particular MPEG4 part 2 and amr audio.
If a plugin exists and is enabled, prefer it to handle those files.

We only do so when opening the file directly. Media in <video> element will always play natively.

MozReview-Commit-ID: 1yPpzfDaCfT

--HG--
extra : rebase_source : 4c66eb0fd81a288f4c8eed643c79cf9851bd4273
2016-03-11 22:42:02 +11:00
Eugen Sawin
c0b51aec88 Bug 1255050 - [1.1] Restrict media plugin decoder usage to Android ICS. r=snorp 2016-03-10 23:14:13 +01:00
Louis Christie
6545052865 Bug 851530: Part 1 - Added support for decoding uLaw and aLaw enconded wave files. r=jya
--HG--
extra : rebase_source : f9179aa998afb3bf6b7c3a2ef2b841aded6c1153
2016-02-12 14:45:28 +13:00
Jean-Yves Avenard
4de572ea7a Revert "Bug 1248570: Allow WAV into media element. r=lchristie"
This reverts commit b3f7abd15a
2016-02-17 16:09:51 +11:00
Jean-Yves Avenard
9df5f82b77 Bug 1248570: Allow WAV into media element. r=lchristie
MozReview-Commit-ID: AKIQq9EyCC6
2016-02-17 15:47:43 +11:00
Louis Christie
38e2de5ca1 Bug 1231793: Part 6 - Enabled the new Wave Data Decoder in DecoderTraits. r=jya
MozReview-Commit-ID: EdW4JJM3nO6
2016-02-17 00:28:50 +11:00
Chris Peterson
702f1619f7 Bug 1235503 - Fix -Wunreachable-code warnings in dom/media/. r=jya
dom/media/DecoderTraits.cpp:314:10 [-Wunreachable-code-return] 'return' will never be executed
dom/media/DecoderTraits.cpp:324:10 [-Wunreachable-code-return] 'return' will never be executed
2015-12-28 00:11:26 -07:00
Jean-Yves Avenard
de7c0385a1 Bug 1230054: Remove unused WebMReader. r=kinetik 2015-12-23 01:15:46 +11:00
Jean-Yves Avenard
8f79430f0e Bug 1234092: P1. Remove GStreamer support. r=kentuckyfriedtakahe
It was now unused by default.
2015-12-23 01:14:22 +11:00
Chris Peterson
90c0e0da61 Bug 1232223 - Part 3: Remove MOZ_WAVE #ifdefs because Wave is always supported. r=jya 2015-12-18 00:51:16 -08:00
Chris Peterson
88051371a9 Bug 1232223 - Part 1: Remove MOZ_WEBM #ifdefs because WebM is always supported, though not necessarily enabled. r=jya r=glandium 2015-12-12 13:49:07 -05:00
Dan Glastonbury
856e41412c Bug 1169212 - Part 2: Advertise support for ADTS via DecoderTraits. r=jya
for mimetype audio/aacp
2015-12-07 15:48:59 +10:00
Phil Ringnalda
a54f2a1eda Back out ce4623289f7f (bug 1230054) for crashtest bustage in 789075-1.html/795892-1.html, Android mochitest-chrome bustage in test_texttrack_chrome.html, and probably Gij video_list_test.js
CLOSED TREE
2015-12-03 22:12:01 -08:00
Jean-Yves Avenard
b2545f9af0 Bug 1230054: Remove unused WebMReader. r=kinetik 2015-12-04 15:23:43 +11:00
Jean-Yves Avenard
d6b653ae10 Bug 1229605: [MSE] Allow webm/audio independently of video. r=kentuckyfriedtakahe
This adds a media.mediasource.webm.audio.enabled preference (true by default) to disable opus or vorbis audio in webm mediasource.
2015-12-04 14:43:47 +11:00
Jean-Yves Avenard
72d555ab40 Bug 1191833: P1. Properly check webm mimetype against codec type. r=cpearce
Also move the logic inside WebMDecoder, this continue on with the logic used by MP4Decoder
2015-12-04 14:43:46 +11:00
Benjamin Chen
9008199c76 Bug 1198576 - Remove MediaCodecReader. r=bwu 2015-11-25 16:18:01 +08:00
Jean-Yves Avenard
3fbc97331d Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
Following bug 1209410, it was no longer used.
2015-11-19 10:40:33 +11:00
Jean-Yves Avenard
d1b1c57939 Bug 1217170: P1. Rename functions to explicitly reflect what they are doing. r=kentuckyfriedtakahe 2015-10-27 23:57:13 +11:00
Jean-Yves Avenard
18ef6c89dc Bug 1214208: Do not use MP3Decoder on B2G. r=alfredo
the Gonk PDM doesn't support AudioOffloadPlayer leading to increased power consumption.
2015-10-27 23:52:27 +11:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
JW Wang
e470e1616d Bug 1214989. Part 1 - add MediaDecoderOwner to the constructors of MediaDecoder and sub-classes. r=gerald. 2015-10-15 11:36:21 +08:00
Chris Pearce
aaf1f72ba5 Bug 1211339 Part 2 - Make MP4Decoder::CanHandleMediaType() check all codecs are supported by a PDM before reporting support. r=jya 2015-10-06 16:52:58 +13:00
Carsten "Tomcat" Book
239ba800f1 Backed out 2 changesets (bug 1211339) for m3 test failures on a CLOSED TREE
Backed out changeset 91bff7bc67d7 (bug 1211339)
Backed out changeset d34f694b13cf (bug 1211339)
2015-10-05 14:34:44 +02:00
Chris Pearce
83d11d9363 Bug 1211339 Part 2 - Make MP4Decoder::CanHandleMediaType() check all codecs are supported by a PDM before reporting support. r=jya 2015-10-05 22:39:10 +13:00
Jean-Yves Avenard
04cdb572f3 Revert "Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe" r=me
This reverts commit ecbe6589d36e

May be better of waiting a little bit in case we find that the new MP3Demuxer isn't up to scratch
2015-10-02 19:24:54 +10:00
Jean-Yves Avenard
b2c18c37f4 Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
Following bug 1209410, it was no longer used.
2015-10-02 18:44:34 +10:00
Jean-Yves Avenard
fc715601b9 Bug 1209410: [mp3] P3. Implement canPlayType for new MP3Decoder. r=kentuckyfriedtakahe 2015-10-02 18:44:33 +10:00
Jean-Yves Avenard
a9855a3bd6 Bug 1209410: [webm] P2. Never use gstreamer to decode webm. r=kentuckyfriedtakahe 2015-10-02 18:44:32 +10:00
JW Wang
f56fdd4173 Bug 1209886 - Clean up InstantiateDecoder() in DecoderTraits.cpp. r=kinetik. 2015-09-30 06:55:20 +08:00