Audio and Video enhancement script, supports all H5 video websites, such as: Bilibili, Douyin, Tencent Video, Youku, iQiyi, Xigua Video, YouTube, Weibo Video, Zhihu Video, Sohu Video, NetEase Open Course, Baidu network disk, Alibaba cloud disk, ted, instagram, twitter, etc. Full shortcut key control, support: double-speed playback/accelerated playback, video screenshots, picture-in-picture, full-screen web pages, adjusting brightness, saturation, contrast
The screenshot feature worked fine until recently. After recent update, taking a screenshot on Youtube by pressing "Shift+S" would cause the video to pause, and the user has to manually play the video again.
回头在优化下
回头在优化下
Btw, I look into the source code, and it seems that this bug is caused by the codes between line 4004 to line 4012:
// 截图并下载保存
if (key === 's') {
videoCapturer.capture(player, true);
/* 暂停画面 */
if (!player.paused) {
t.freezeFrame();
}
}
The codes between line 4009 and line 4011 are added in version 3.4.2, which cause the video to pause after making a screenshot. If this is actually an intended feature, maybe it'll be better to create a toggle switch and let users switch it on/off based on their preference. Anyway, I really appreciate this awesome project. Thanks for your hard work!
回头在优化下
Btw, I look into the source code, and it seems that this bug is caused by the codes between line 4004 to line 4012:
// 截图并下载保存 if (key === 's') { videoCapturer.capture(player, true); /* 暂停画面 */ if (!player.paused) { t.freezeFrame(); } }
The codes between line 4009 and line 4011 are added in version 3.4.2, which cause the video to pause after making a screenshot. If this is actually an intended feature, maybe it'll be better to create a toggle switch and let users switch it on/off based on their preference. Anyway, I really appreciate this awesome project. Thanks for your hard work!
v3.4.3版本已修复了该问题,在能正常截图的网站下不会强制暂停画面了
The screenshot feature worked fine until recently. After recent update, taking a screenshot on Youtube by pressing "Shift+S" would cause the video to pause, and the user has to manually play the video again.