4 ms·
You shouldnt need to proxy anything, there are in browser js muxers that can splice separate video/audio streams into one, or find jsvideo player capable of pla
by rasz 7y ago
You shouldnt need to proxy anything, there are in browser js muxers that can splice separate video/audio streams into one, or find jsvideo player capable of playing it directly.
- omarroth 7y agoI would recommend reading the issue I linked for why it's necessary. JS needs special access to resources that can't be provided without proxying. You can see this yourself in a DASH player[0] and testing with e.g. https://invidio.us/api/manifest/dash/id/CvFH_6DNRCY https://invidio.us/api/manifest/dash/id/CvFH_6DNRCY. It will fail with > Access to XMLHttpRequest at 'https://r5---sn-ab5l6nzy.googlevideo.com/videoplayback' https://r5---sn-ab5l6nzy.googlevideo.com/videoplayback' from origin 'http://reference.dashif.org' http://reference.dashif.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. 0. http://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html http://reference.dashif.org/dash.js/nightly/samples/dash-if-...
- rasz 7y agoThe most likely reason for the error is badly decoded signature. YT uses &sig as a "crypto" access token (lasting couple of hours last time I checked). I have zero trouble playing dash videos in standalone mplayer (after manually extracting two video audio sources and decoding proper signatures).
- omarroth 7y agoOnly browsers have this restriction. The issue I linked above doesn't appear to explain this. I would instead recommend reading this[0] comment. 0. https://github.com/omarroth/invidious/issues/177#issuecomment-423843512 https://github.com/omarroth/invidious/issues/177#issuecommen...
- rasz 7y agoOk, so CORS prevents from manual muxing/proper DASH player playback. How about two separate video audio tags with javascript synchronized playback/seeking?