feat(player): filter hls ads by pts continuity and align timestamps #3471
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.31) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 107 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.280
Real PR Conversation Timeline
1 comments
"Review active on #3471"
general
weight: 0.35
Him188
概述
在线源的插播广告改为按时间戳连续性识别并移除,默认开启;桌面端播放含广告的 HLS 流时,进度条不再跳变。
根因
采集站用
#EXT-X-DISCONTINUITY把独立转码的广告拼进播放列表。广告的 PTS 从 1.47 秒附近重新起算,正片各段则首尾相接。改动
enableHlsAdFiltering,iOS 也显示开关。验证
独立标注的 48 个播放列表、3038 个组上,原实现误删正片 6 处、漏删 4 处;本实现均为 0。
在真实样本上重放过滤,删除结果经人工核对:
| 样本 | 播放列表 | 删除 | 误删 |
|---|---|---|---|
| 采集站,4 条资源站线路 | 113 | 168 组 | 0 |
| 官方数据源,12 个站点 | 39 | 31 组 | 0 |
正片相对链的偏差最大 5 毫秒,广告最小 284 秒。287 组的播放列表在每请求新建连接时探测耗时 7.7 秒(32 路),应用内复用连接的耗时尚未实测。
HLS 相关测试本地通过。当前 main 的
SubjectCollectionRepositoryInvalidateTest因 446e34ed5 新增参数而编译失败,本地验证时临时补上,未包含在本 PR 中。