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

HTML: Add <source media> to media elements #40330

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented May 31, 2023

v.append(createSource('delayed-broken-video.py#b'));
await rAF();
await rAF();
window.beforeEnvChange = hash(v.currentSrc);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the reason currentSrc is set here is because the call to load later is the second time "resource selection algorithm" runs, right? I guess this all works then.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@zcorpan zcorpan merged commit 0f4b390 into master Jun 12, 2023
@zcorpan zcorpan deleted the zcorpan/add-video-source-media branch June 12, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants