HTML5 Audio/Video Keyboard Shortcuts With OSD

Adds keyboard shortcuts for controlling HTML5 media player (audio/video) with OSD support. Seek media to 0%, 5%, 10%, ..., or 95%. Rewind and fast fordward media by 30 seconds, 1 minute, and 5 minutes. Change media speed even beyond YouTube's speed limit. Change audio volume to 20%, 40%, 60%, 80%, or 100%. Change video aspect ratio for TV and letterbox content (for widescreen monitors).

< Feedback on HTML5 Audio/Video Keyboard Shortcuts With OSD

Review: قالتىس - قوليازما ئىشلەيدۇ

§
يوللانغان ۋاقتى: 2024-02-20

could add keyboard shortcuts for screenshot?
about [shift+S]..

or maybe in this JS ?
https://greasyfork.org/zh-TW/scripts/39813-html5-video-frame-screenshot
my favorite always hide....

§
يوللانغان ۋاقتى: 2024-02-20

//截圖screenshot
{
key: "S", modifiers: "S", videoOnly: true,
func: (ele, key) => screenshot()
},

帶點好運的成功了...
複製了程式碼過來後,增加了上面寫的快速鍵
雖然不知道有沒有BUG,再次感謝作者辛苦寫的腳本
I succeeded with some good luck...
After copying the code, I added the shortcut keys written above
Although I don’t know if there are any bugs...
I would like to thank the author again for his hard work in writing the script.

jcunewsئاپتور
§
يوللانغان ۋاقتى: 2024-02-20

OK. The script has been updated to add the feature.

But the keyboard shortcut for it is Alt+S. It can not be Shift+S since it conflicts with "More YouTube Hotkeys" script's hotkey.

§
يوللانغان ۋاقتى: 2024-02-21

非常感謝您!
另外請教,能否加入[記憶播放進度功能]呢?
例如YT or 影音網站總是要重新播放

Thank you very much!
In addition,could add [Memory Play Progress]?
For example, YT or OR video website is always replayed 0:00

§
يوللانغان ۋاقتى: 2024-03-19

不好意思,回報YT又改版
速度調到0.2x後,要再次往上會在0.4X卡住。
但可以直接按回復原速1x

Sorry, I have to report that YT has revised the version again.
After the speed is adjusted to 0.2x, it will get stuck at 0.4X if you want to go up again.
But you can directly press to restore the original speed 1x

jcunewsئاپتور
§
يوللانغان ۋاقتى: 2024-03-20

I can't reproduce that exact problem (i.e. stuck at 0.4X), but I do notice it can get stuck at different speed.

Either way, the possible code which seems applies to YouTube has been removed in the script update.

§
يوللانغان ۋاقتى: 2024-03-21

感謝~目前正常使用了!
Thank you ~ Now it is GODD use!

§
يوللانغان ۋاقتى: 2024-04-28

https://anime1.me/22594
請問截圖能夠支援這個網站嗎?
Could screenshots support this website?

jcunewsئاپتور
§
يوللانغان ۋاقتى: 2024-04-28

The functionality is blocked by CORS policy because the video server doesn't support CORS. It can not be worked around from UserScript.

It has to be worked around using a HTTP response header editor browser extension to add the Access-Control-Allow-Origin HTTP response header for the video resource

https://stackoverflow.com/questions/34743987/canvas-image-crossplatform-insecure-error/34755162#34755162

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin

§
يوللانغان ۋاقتى: 2024-04-29

好的,不好意思麻煩妳了,感謝^^
Okay, sorry to bother you, thank you^^

§
يوللانغان ۋاقتى: 2024-05-26

請問我能夠設定大小寫通用嗎?
目前我是分開設定,能否這樣設定?
Can I set it to be case-insensitive?
Currently I set it up separately, can I set it up like this?
key: "a,A", modifiers: "",

Currently set
{
key: "a", modifiers: "",
func: (ele, key) => ele.currentTime -= 1
},
{
key: "A", modifiers: "",
func: (ele, key) => ele.currentTime -= 1
},

jcunewsئاپتور
§
يوللانغان ۋاقتى: 2024-05-26
تەھرىرلەنگەن ۋاقتى: 2024-05-26

Can I set it to be case-insensitive?

The in-code description has errors about case-sensitivity of key name, sorry. The key name is not case-sensitive.

The script has been updated to fix the in-code description, and add support for case-sensitive key name.

With previous and the updated script versions, key: "a" will match both a and A, and key: "A" will match both a and A.

Case-sensitive keyboard shortcut e.g.

{
  key: "a", modifiers: "", caseSensitive: true,
  func: () => { /* code... */ }
},

Currently I set it up separately, can I set it up like this? key: "a,A", modifiers: "",

No. Multiple key names must be separated in an array. e.g.: key: ["A", "Z"], or with the new update: key: ["b", "N"], caseSensitive: true.

§
يوللانغان ۋاقتى: 2024-05-27

非常感謝,設定成功了!!

Thank you very much, the settings are successful !!

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.