Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0版本在播放番剧时,调整时间时,弹幕时间轴与视频时间轴不同步 #2544

Open
abcofabc opened this issue Nov 20, 2021 · 2 comments
Labels
bug bug help wanted 目前无解决方案

Comments

@abcofabc
Copy link

关于哪一项功能

视频/弹幕

问题描述

在播放番剧和影视剧(例如纪录片)时,使用键盘上的左右键(←→键)调整视频时间时,会出现视频调整了时间,但是弹幕无法跟随视频时间变动的问题

具体表现是视频调整时间后,弹幕不会在对应的时间点重新加载,而是继续滚动

其他视频(除了“追番”“追剧”)都没有这种情况的发生

已通过关闭其他脚本和扩展的方式,排除了其他脚本和扩展导致bug的可能性

脚本版本

v2.0.1-preview-3-g97b51e17e

浏览器版本

96.0.4664.45(Google Chrome)

播放器版本

3.2.5-032679a8

是否开启 HEVC

优先 HEVC

错误信息

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure element '<URL>'. This request was automatically upgraded to HTTPS, For more information see <URL>
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/b00b27d08f934220443994f6ec2c8276a6267113.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/e044c1ae305ea2cd4475f9ddca4b11547467f973.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/48b333af2a2ad9b02a74c832c2662c8df07058eb.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/9067d13a9042270070a0bb77bd2c0569494d3c33.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/c882d9b57191f0280c4c06816942eec5f210505a.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/da754b15b1f373471525779e8c16628297c62113.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/afbaacc0c2991358e9f1a6b6aeb240aa4ea36a43.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/761e5da159f420adb853b29f6540219912f40046.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/06a903346de72cd944270ccc5995544a69160891.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/13bd7dc5267024e9c4ef81f199f8631e6fddc964.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i0.hdslb.com/bfs/face/93fa8c2bd581488e9b628329622a8b51d85f13c5.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/666216ff434bb73f46d6b1fe24111c98194e7a62.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/35119b483c6e430f70018eb9e1c96a6364e07ba0.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/de93f4761dbde08fe71ccaffa122f0aa4ea741d4.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/3aeaf5070075756eb1529c8fdbb316942fc4bf3f.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/f7a73ea89090e2ec6bfa808060b48a1e319f21f9.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i1.hdslb.com/bfs/face/c7de0be451b236e0cd52fe3847a0158b514630ae.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i0.hdslb.com/bfs/face/44a51e324c680506823bfd47af42ea6f4ae5e84e.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/bb151817b4ab69fe018ba0b454b9035cc4a44df1.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/c905afc4186a85287c8c0a554f4a5a22b42b4758.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i2.hdslb.com/bfs/face/9978d8cf4a21b1ce6d3ec05fafb19e54334fc4a0.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
ep247662:1 Mixed Content: The page at 'https://www.bilibili.com/bangumi/play/ep247662' was loaded over HTTPS, but requested an insecure element 'http://i0.hdslb.com/bfs/face/9c9118e6cb5333155f174ea6e7c8901ff8b96220.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
video.js:746 Object
npd.default-helper.c6cfa939.js:79 [Websocket]: On Open.
1.video-nano.9e2d3e97de814bafb4dd319be3d380b6fb63be99.js:47 undefined undefined
VM942:28 Array(7)
VM942:28 reply 0 0
VM942:28 at 0 0
VM942:28 like 0 146
VM942:28 sys_msg 0 0
VM942:28 user_msg 0 0
DevTools failed to load source map: Could not load content for https://s1.hdslb.com/bfs/seed/jinkela/header-v2/international-header-c34aba2ea4464ef868817893eb3b45b138ba9b08-header.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
utils.bundle.js:1 Not find container #bilibiliPlayer
utils.bundle.js:1 Not find container #bilibiliPlayer .bilibili-player-video-quality-menu
utils.bundle.js:1 Not find container #bilibiliPlayer .bilibili-player-video-btn-speed-menu

附加截图

No response

@the1812 the1812 added maybe-bug 可能是 bug, 待测试 bug bug and removed maybe-bug 可能是 bug, 待测试 labels Nov 25, 2021
@the1812
Copy link
Owner

the1812 commented Nov 29, 2021

目前番剧区是直接修改 video.currentTime 的, 所以导致了这个问题, 不知道还有没有更好的方法来调整时间

changeTime(change: number) {
const video = this.query.video.element.sync() as HTMLVideoElement
if (!video) {
return null
}
video.currentTime = lodash.clamp(video.currentTime + change, 0, video.duration)
return video.currentTime
}

@timongh
Copy link
Contributor

timongh commented Jul 24, 2023

使用内置 player API 可解决该问题 (discussion #4341)

注:以前番剧页面没这个 API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug help wanted 目前无解决方案
Projects
None yet
Development

No branches or pull requests

3 participants