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

fix: "media likely unsupported" is not detected on some sites (like invidious) #106

Open
WofWca opened this issue Aug 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@WofWca
Copy link
Owner

WofWca commented Aug 5, 2022

Like here https://yewtu.be/ (or see https://docs.invidious.io/instances/).

(a part of) the responsible code:

const elCrossOrigin = this.activeMediaElementSourceIsCrossOrigin = isSourceCrossOrigin(el);
const onMaybeSourceChange = () => {
this.activeMediaElementSourceIsCrossOrigin = isSourceCrossOrigin(el);

Related: #47

@WofWca WofWca added the bug Something isn't working label Jan 2, 2023
@WofWca
Copy link
Owner Author

WofWca commented Mar 26, 2023

This is weird. el.currentSrc's origin is equal to location.origin. But the video is actually loaded from Google's servers. I'm not sure how to detect that. Perhaps WebAudio/web-audio-api#2453 can help when it's implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant