Closed Bug 1610610 Opened 5 years ago Closed 5 years ago

Remove remaining NS_ERROR_DOM_TYPE_ERR usage in mediasource

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(3 files)

A few got missed in bug 1609861 because the tests were not as simple.

There are no values of aError that are not handled by the switch.

I tried to write a test for this, but it looks like
mCurrentAttributes.mGenerateTimestamps is only true when the type is "audio/aac"
or "audio/mpeg", and we don't support either of those in MediaSource. So this
code can't actually be reached, as far as I can tell.

Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/786fbd2c6687 part 1. Throw the right exception from MediaSource::SetDuration. r=jya https://hg.mozilla.org/integration/autoland/rev/cb2ed5d9a5b1 part 2. Remove unreachable code from MediaSource::EndOfStream. r=jya https://hg.mozilla.org/integration/autoland/rev/64dc8647fc6c part 3. Fix the exception thrown when a SourceBuffer's mode is set to "segments". r=jya
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21331 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: