HTML5 Video Player Enhance

To enhance the functionality of HTML5 Video Player (h5player) supporting all websites using shortcut keys similar to PotPlayer.

目前為 2019-10-05 提交的版本,檢視 最新版本

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
評價
0 0 0
版本
2.8.0b6
建立日期
2019-09-15
更新日期
2019-10-05
尺寸
137.6 KB
授權條款
未知
腳本執行於
所有網站

fork from https://gf.qytechs.cn/scripts/381682-html5播放器增强插件-修订版/code (v2.5.1 2019-09-11)
and few code from https://gf.qytechs.cn/scripts/4870-maximize-video (v11.5 2019-04-25)

-----------------------------------------------------------------------------------------------------------------------

The main difference from the original chinese version is to making this h5Player more general for every website.
Features are not as many as the original one, but more efficient and effective.

The enhancement won't bring significant performance impact to the usage.
Same as original, the functions are used by shortcut keys.
For the performance, it is still a long way to go.


The following features are unlikely to develop in the near future:
"Fullpage"
"Screen Capture"


To use this script, your browser shall be a "modern" browser - supporting ES6, CSS3, and etc.


------------------------------------------------------------
Once this script is enabled, there are major impacts to your video viewing:

1) Default 5x5 unsharpen filter is enabled.
2) requestAnimationFrame replaced event timeupdate (called "timeupdatef"), "Bullet Curtain"(彈幕) shall be smoother.
3) original addEventListener & removeEventListener are replaced.
4) localStorage are being saved and read at the interval of 2 seconds.

-------------------------------------------------------------------------------------------------------------------------

Shortcut Keys for video control:

亮度(brightness)[Key: E/W]
飽和度(saturate)[Key: U/Y]
對比度(contrast)[Key: T/R]
速度(playback speed)[Key: Z/X/C]
frame [Key: F/D]
hue [Key: O/I]
blur [Key: K/J];
RESET [Key:Q]
ROTATION [Key:S]
Zoom [Key: Shift-Z/Shift-X/Shift-C]

fullscreen [Key:Double click, Shift-Enter]
miniscreen [Key:N, Shift-P]

Restore your playback progress [key: shift-R]

Mute [Key: m]


======================== changelogs ================================

2.5.3 - first version

2.5.5 - update code for the original fullscreen

2.5.6 & 2.5.7 - added code for the miniscreen

2.5.8 - fixed bugs and added unsharpen filter by default

2.5.9 & 2.5.10 - improvement(minor)

2.6 & 2.7 Coding Enhancement and Function rewrites. More stable and less resource to be occupied

2.7.1 performance improvement and tipsDOM appearance changed

2.7.2 key "z" can switch from 1x and custom speed, same as potPlayer

2.7.4 TCC tally with scripts/381682 v3.0.2

=== 2.8.0b1 ~ 2.8.0b4 ===
Major upgrade from 2.7.4

- Activation of the advanced control:
no longer global mode. depends on which one you are controlling.

- Key "enter" re-assign to other features
normal mode: enter to enable/disable pointer lock
fullscreen mode: enter to leave the fullscreen


- Pointer Lock Control:
If you press "enter" in the web page, you will enter to the pointer lock mode of the last controlled

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址