一名用户借助ChatGPT和浏览器开发工具的帮助,成功追踪到YouTube存在的一个播放时间戳bug的真正原因。1这个问题表现为关闭并重新打开YouTube标签页时,视频会自动回退20秒。1
通过逆向工程分析,该用户发现问题根源在于两个机制的冲突。1服务器返回的检查点时间戳存在20秒偏差,每次页面重载时该时间戳都会减少20秒。1当页面进行软重载时,URL参数中的时间戳会优先覆盖服务器返回的检查点数据,导致用户被强制回退20秒。1这一问题最常见于用户从YouTube历史记录打开视频后再进行软重载的场景中。1
YouTube的Android应用程序表现正常,这暗示移动端可能已对此bug进行了修复或采用了不同的时间戳数据源。1
A user investigating a playback anomaly on YouTube discovered that closing and reopening a video tab results in the video rewinding 20 seconds, then used ChatGPT and browser developer tools to trace the issue to its source.1
Through reverse engineering, the researcher identified the root cause: the server returns checkpoint timestamps that decrease by 20 seconds with each page reload, and during soft page reloads, the time parameter in the URL (such as &t=123s) takes precedence over the server's checkpoint mechanism, forcing users back to an earlier position.1 The problem most frequently occurs when opening a video from YouTube's history and subsequently performing a soft reload.1
Notably, the YouTube mobile app on Android does not exhibit this bug, suggesting that the mobile version may have implemented a fix or relies on a different timestamp source.1
评论
还没有评论,欢迎留下第一条。