Mochitest for HE-AAC decoding

NEW
Assigned to

Status

()

Core
Audio/Video: Playback
P2
normal
Rank:
15
4 years ago
a month ago

People

(Reporter: rillian, Assigned: jya)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

We should add a regression test for HE-AAC decoding.

Add a small example mp4 file with redistributable licensing to content/media/test/
Add corresponding a corresponding .mp4^headers^ per bug 977314.
Write a test_he-aac.html mochitest to verify the file
 (a) plays,
 (b) decodes at the expected sample rate.
(Reporter)

Comment 1

4 years ago
Can you take a look at this, Jean-Yves?

We've disabled mozSampleRate, but it should be possible to get the decoder's sample rate out of the WebAudio or MediaStream APIs.

There's documentation on the mochitest javascript framework at https://developer.mozilla.org/en-US/docs/Mochitest#Writing_tests but you can also copy from existing tests in content/media/test. test_playback.html and test_texttrack.html are simpler examples.

You'll want to use SpecialPowers.pushPrefEnv() to set media.fragmented-mp4.exposed to true while running the test.

This could more simply be a C++ gtest, but until filesystem access is enabled in that test harness, it's more expedient to write an html test.
Assignee: nobody → jyavenard
Depends on: 1047180
Component: Audio/Video → Audio/Video: Playback

Updated

a month ago
Rank: 15
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.