Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusion on coded frame eviction algorithm / QuotaExceededError when preloading #231

Open
jpiesing opened this issue Apr 8, 2019 · 2 comments
Milestone

Comments

@jpiesing
Copy link

jpiesing commented Apr 8, 2019

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?

@mwatson2 mwatson2 added the agenda Topic should be discussed in a group call label Sep 21, 2020
@JohnRiv
Copy link
Member

JohnRiv commented Sep 22, 2020

Noting that this is of interest to CTA WAVE

@wolenetz wolenetz added this to the V2BugFixes milestone Sep 28, 2020
@wolenetz
Copy link
Member

Information about this in the spec, at least non-normatively, would assist API users. This seems to me to be at least a spec bugfix in scope for V2. See also #232, which may include language in the spec that assists solving this issue, too.

@wolenetz wolenetz removed the agenda Topic should be discussed in a group call label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants