[media-source] confusion on coded frame eviction algorithm / QuotaExceededError when preloading (#231)

jpiesing has just created a new issue for https://github.com/w3c/media-source:

== confusion on coded frame eviction algorithm / QuotaExceededError when preloading ==
An app wants to preload as much of a piece of media as possible before playing.

A naive reader might expect that the app can just keep calling appendBuffer() from the beginning of the piece of media working along the media timeline until a QuotaExceededError is thrown.

The description of the coded frame eviction algorithm suggests that QuotaExceededError might never be thrown and an implementation could just evict unplayed data from earlier on the media timeline. An app could just keep appending data until all the piece of media has been appended but then the app would then have the end of their piece of media in the SourceBuffer rather than the start which is not useful.

Is this interpretation of the coded frame eviction algorithm correct?

Is there any spec-based way around this or would the developer just have to test their target population of implementations (including devices) and find out how much data can be preloaded & if a QuotaExceededError is thrown?

Please view or discuss this issue at https://github.com/w3c/media-source/issues/231 using your GitHub account

Received on Monday, 8 April 2019 09:16:44 UTC