Commit graph

321 commits

Author SHA1 Message Date
Roy Tam
8f3a931753 Merge remote-tracking branch 'origin/master' into custom 2019-07-12 17:03:30 +08:00
Jeroen Vreeken
68c810a1ac Make matroska mime type checking more consistent. 2019-07-12 16:56:04 +08:00
Jeroen Vreeken
a960d679d5 Allow matroska mime types for video element and MSE
Allow avc (h.264) content in matroska/webm containers
2019-07-12 16:56:02 +08:00
Roy Tam
bc81a6d5f5 ported upstream mozilla esr60 changes: bug1515052, bug1539219, bug1547757, bug1555523 2019-06-22 09:48:24 +08:00
Roy Tam
6431b85501 Merge remote-tracking branch 'origin/master' into custom 2019-05-31 07:28:33 +08:00
wolfbeast
450910d668 [media] Rewrite AudioConverter::DownmixAudio
- Structure the code better
- Directly downmix to mono from multichannel
2019-05-31 07:18:47 +08:00
Roy Tam
583edc6020 Merge remote-tracking branch 'origin/master' into custom 2019-03-29 22:29:22 +08:00
sotaro
9f852ea56e Check if CopyData succeeded. 2019-03-29 22:22:00 +08:00
wolfbeast
db3e9bd7ba Disallow getUserMedia on null principals. 2019-03-29 22:21:55 +08:00
Roy Tam
650b24e108 Merge remote-tracking branch 'origin/master' into custom 2019-03-23 06:59:25 +08:00
wolfbeast
afd64584b1 Fix build bustage. 2019-03-23 06:58:47 +08:00
trav90
cdc953632f [EME] Remove WidevineDecryptor::OnLegacySessionError
Not needed for more recent CDM versions.
2019-03-23 06:58:45 +08:00
trav90
d906bfd12d Build bustage fixes 2019-03-23 06:58:43 +08:00
trav90
7b93eff482 Style fixes 2019-03-23 06:58:42 +08:00
trav90
3c387b898a [EME] Cherry-pick fix for content_decryption_module.h
Fixes build bustage with GCC/clang.
2019-03-23 06:58:40 +08:00
trav90
e337ec5632 [EME] Add content_decryption_module_ext.h 2019-03-23 06:58:38 +08:00
trav90
58116c6950 [EME] Update content_decryption_module.h to more recent revision
Adds support for cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions, HDCP definitions, and 10 and 12 bit image format definitions.
2019-03-23 06:58:37 +08:00
trav90
a8d231e0a9 [EME} Hackily implement cdm::Host_9::RequestStorageId
TODO: Implement this properly in the future.
2019-03-23 06:58:35 +08:00
trav90
eb2e8d7f92 [EME] Make WidevineAdapter compatible with CDM version 9
NOTE: this breaks compatibility with CDM version 8.
2019-03-23 06:58:34 +08:00
Roy Tam
0d6f4484c4 miscellaneous Windows XP fixes 2019-02-22 22:04:03 +08:00
wolfbeast
39d5eb7759 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-02-16 00:27:49 +08:00
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
a0d362b6e3 Remove proprietary constructor on AudioContext.
This is a B2G leftover, was proprietary, and is causing issues
because `AudioContext` can now have a parameter that is a property bag,
per spec (we do not do anything with the property bag now; the audio
back-end will use automatic values for everything).

This resolves #924.
2019-02-16 00:23:54 +08:00
trav90
e831ce0f5b Avoid redefined macro warning in MediaFormatReader 2019-02-16 00:23:14 +08:00
trav90
74ccd45360 [FFmpeg] Don't define AV_CODEC_ID_VPx with libavcodec 58 2019-02-16 00:23:11 +08:00
trav90
5949fc61dc [FFmpeg] Use new decode API with recent FFmpeg version.
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.
2019-02-16 00:23:10 +08:00
trav90
129388e5e0 Remove AndroidMediaDecoder and friends
They are no longer supported and don't work with newer Android versions anyway.
2019-02-16 00:22:37 +08:00
trav90
9ddf94a187 Add missing #include 2019-02-16 00:21:17 +08:00
trav90
f7a2e36cbc Move the MP3 code to it's own directory 2019-02-16 00:21:16 +08:00
trav90
8cfddb6559 Remove separate MP3 name space
It is no longer needed.
2019-02-16 00:21:14 +08:00
trav90
eae0de2b3f Remove the old MP3FrameParser
All former users of the old MP3 parsing code are gone, so we can now just remove the parser itself as well.
2019-02-16 00:21:11 +08:00
trav90
0f8e1d95d0 Remove files and comments related to MP4Reader
The MP4Reader no longer exists in the tree.
2019-02-16 00:21:10 +08:00
trav90
ef2f6d6f28 Remove Rust files from media gtests 2019-02-16 00:21:08 +08:00
trav90
8290899faf Remove MediaTelemetryConstants 2019-02-16 00:21:01 +08:00
trav90
fa8d24c264 Remove DirectShowReader Part 4: Tests 2019-02-16 00:20:59 +08:00
trav90
f9d8a59a89 Remove DirectShowReader Part 3: Directories 2019-02-16 00:20:58 +08:00
trav90
f457d25da7 Remove DirectShowReader Part 2: Build system 2019-02-16 00:20:56 +08:00
trav90
93510088fb Remove DirectShowReader Part 1: Conditional code 2019-02-16 00:20:54 +08:00
trav90
f75592fd13 Remove OMX_PLATFORM_GONK 2019-02-16 00:20:25 +08:00
trav90
e99eefeb84 Remove remaining MOZ_GONK_MEDIACODEC code 2019-02-16 00:20:24 +08:00
trav90
33038b14f2 Add AV1 support to MP4Decoder. 2019-02-16 00:19:39 +08:00
trav90
ae5c83e90d Cleanup some comments in our media code. 2019-02-16 00:19:34 +08:00
trav90
1269f82d33 Revert "Add support for AV1 in MP4"
This commit was incomplete. Will re-land AV1 in MP4 support properly at a future date.

This reverts commit 29f718ef78f1a25ca904c6438b59ffc8e365a750.
2019-02-16 00:17:57 +08:00
trav90
de6b3a930f Ensure we correctly parse the finalized codec string for av1 2019-02-16 00:17:56 +08:00
trav90
1b0277eca5 Add support for AV1 in MP4 2019-02-16 00:17:54 +08:00
trav90
8dd06e64c3 Use larger stack for media decoder threads
This increases the thread size for the platform decoder threads (to prevent stack overflows, particularly when decoding av1), while leaving the others at their default values.
2019-02-16 00:17:53 +08:00
trav90
ad02b504a6 Downsample av1 images unconditionally
Adding partial support for 10/12-bit video images seems to have broken the native pixel-stride support we were using to pass 8-bit AV1 frame data formatted in 16-bit pixel values, resulting in vertical green lines.

Revert to the earlier behavior of always downsampling to 8 bit data. This is slower, but at least displays correctly.
2019-02-16 00:17:51 +08:00
trav90
cbacc81f82 Fix canPlayType/isTypeSupported for AV1 content 2019-02-16 00:17:50 +08:00
trav90
6676331d30 Put AV1 codec behind a pref
Disabled by default.
2019-02-16 00:17:48 +08:00
trav90
b66027c8c0 Updates to AOMDecoder for aom v1.0.0
This reflects the API changes to the aom_codec_decode function and the removal of I440. It also sets allow_lowbitdepth to give proper support for 8 bit video, and removes the git version from the mime type.
2019-02-16 00:17:35 +08:00