Open mdrejhon opened 3 years ago
I propose the hashchange event:
window.addEventListener('hashchange', function, false);
That way, when my webpage changes an agreed-upon unique magic value (e.g. "#videoplayspeed=4.00") at the end of the URL, videospeed will automatically preconfigure all videos in all iframe's on the webpage to 4x playback speed (whether or not the user has yet started playing whichever video).
As if the user has manually configured a 4x playspeed, but without the user needing to click -- because some videos are uploaded to be intended to be viewed only at 240fps 240Hz.
That way, I can have easy 240fps Ultra HFR webpages -- as long as the extension is installed.
BTW, we've been using your extension for UltraHFR (see www.blurbusters.com/ultrahfr ), at 4x speed for 240fps 240Hz and at 6x speed for 360fps 360Hz gaming monitors (e.g. ASUS PG259QN).
It would be nice to have an API (such as reading the URL bar (e.g. "#iframespeed=4")
To allow any JavaScript in a webpage to automatically set the playback speed of an IFRAME (e.g. YouTube embed).
This will be useful for automatically playing videos as 240fps on modern 240Hz gaming monitors, such as this video:
https://www.youtube.com/watch?v=qH_uMmLSArg