Speed up MSE tests with appendWindow

NEW
Unassigned

Status

()

Core
Audio/Video: Playback
3 years ago
2 years ago

People

(Reporter: bholley, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
This isn't urgent, but we should do it down the line.

Jya and I are adding a proper MP4 test video for MSE in bug 1120266. This video is really great for testing, but it's 10 seconds. This might be useful sometimes, but I'm concerned that a lot of the time our tests will just do the following:

(1) Load all the data
(2) Do some interesting stuff near the beginning
(3) Play the video until it ends

If we make a lot of tests that use bipbop, this could waste a fair amount of time on test runs. The easy way to shorten the video is to use appendWindow, but we don't implement that yet (see bug 1122149). When we do implement it, we should check to see if there are MSE tests that could be made faster by doing that.
Could simply change the duration attribute of the video element no ?
Also when 1118126 lands, can also modify the MediaSource.duration attribute.
Component: Audio/Video → Audio/Video: Playback
Looks like 1118126 has landed.
You need to log in before you can comment on or make changes to this bug.