Report phone playback metadata once per browser session

This commit is contained in:
Jonathan Sykes
2026-10-03 17:56:01 +08:00
parent 856ddda6a6
commit 8ea92c1aac
6 changed files with 73 additions and 0 deletions

View File

@@ -2952,6 +2952,7 @@ function wirePlayerEvents() {
});
el.addEventListener('playing', () => {
if (!masterIs(el)) return;
if (WEB && current?.meta) window.ServerBackfill?.report(current.meta);
if (performance.getEntriesByName('ytp:tap').length) {
perfMeasure('ytp:tap-to-play', 'ytp:tap');
try { performance.clearMarks('ytp:tap'); } catch { /* ignore */ }