w3c / media-source

Media Source Extensions
https://w3c.github.io/media-source/
Other
267 stars 57 forks source link

Clarify that endOfStream() before HAVE_METADATA should trigger HTMLMediaElement dedicated media source failure steps #240

Open wolenetz opened 4 years ago

wolenetz commented 4 years ago

If HTMLMediaElement.readyState is still HAVE_NOTHING when its attached MediaSource has endOfStream() executed with no error parameter, the MSE spec is unclear other than it should run the duration change algorithm (implicitly with duration 0) and "Notify the media element that it now has all of the media data."

In Chrome, interpretation of this state in HTMLMediaElement is that this corresponds to a resource load failure, and MEDIA_ERR_SRC_NOT_SUPPORTED paths follow from the "dedicated media source failure steps", since MSE duration alone is deemed insufficient to reach HAVE_METADATA.

wolenetz commented 3 years ago

Looks to me like a spec bugfix in scope for V2.