Skip to content

Add a resource fetch algorithm return value #11308

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

Open
chrisn opened this issue May 15, 2025 · 2 comments
Open

Add a resource fetch algorithm return value #11308

chrisn opened this issue May 15, 2025 · 2 comments
Labels
integration Better coordination across standards needed topic: media

Comments

@chrisn
Copy link
Member

chrisn commented May 15, 2025

What is the issue with the HTML Standard?

For context, see w3c/media-source#365.

The resource fetch algorithm is exported from HTML and called from Media Source Extensions. The algorithm includes steps such as

which means it's not returning to the right place when called from MSE's end of stream algorithm.

I suggest changing the resource fetch algorithm to return a flag which can be checked by the calling algorithm to decide whether to abort.

Note that MSE defines extensions to the resource fetch algorithm which also need addressing (issue w3c/media-source#324), but I'd like to treat that as separate for now, and make changes incrementally.

@whatwg/media

@zcorpan zcorpan added topic: media integration Better coordination across standards needed labels May 15, 2025
@annevk
Copy link
Member

annevk commented May 16, 2025

Adding a return value sounds reasonable. Are you willing to propose a change?

(It would also be nice to refactor the algorithm so the arguments are explicit variables.)

@chrisn
Copy link
Member Author

chrisn commented May 16, 2025

Thanks, yes I'm happy to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Better coordination across standards needed topic: media
Development

No branches or pull requests

3 participants