WofWca / jumpcutter

⏩ Fast-forwards long pauses between sentences — watch lectures ~1.5x faster (browser extension)
https://chrome.google.com/webstore/detail/jump-cutter/lmppdpldfpfdlipofacekcfleacbbncp
GNU Affero General Public License v3.0
356 stars 13 forks source link

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

Open WofWca opened 2 years ago

WofWca commented 2 years ago

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

(a part of) the responsible code:

https://github.com/WofWca/jumpcutter/blob/ce1976dd1313332ba519e362d5414e2b9a1a94f5/src/entry-points/content/AllMediaElementsController.ts#L433-L435

Related: #47

WofWca commented 1 year ago

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 https://github.com/WebAudio/web-audio-api/issues/2453 can help when it's implemented.