Hacker News new | ask | show | jobs
by Andrews54757 945 days ago
Seems like it is a Youtube.js problem. will investigate, doesn't happen on Chrome.

EDIT: It seems like Firefox has some special unsafe eval rule breaking dash.js

EDIT2: Problem was actually FF's sendMessage not toString()'ing URL objects. I've fixed it in V1.2.1 for FF (approval by mozilla pending)

EDIT3: V1.2.1 (Firefox hotfix) is available now

https://addons.mozilla.org/en-US/firefox/addon/faststream/

1 comments

Kind of unrelated, but how difficult do you think it would be to hack support for glsl shaders in a browser? I tried to look into it once, but got a bit lost in the media source side of things. My idea was to try to add glsl shaders as post processing to video streams like in mpv but without having to jump through all the hurdles of passing data to mpv.

Example of a shader I was playing with https://github.com/TianZerL/ACNetGLSL

Isn't GLSL already supported by WebGL?
Yeah all the pieces are already there, but I was trying to make something like a player replacer that would let the user load arbitrary glsl shaders to use. The idea being to provide usable upscaling or filters for weak connections or old videos, correct shaky videos, etc. in real time.

I just found this for fsr [0] which might work for the upscaling use case.

[0] https://github.com/Hajime-san/web-fsr/tree/main/browser-exte...