Playback telemetry
This commit is contained in:
1 parent
6e964fa2e5
commit
332e1e7ef6
11 files changed
+1526
-195
No files matched your search
@@ -108,23 +108,6 @@ namespace Tests
|
||||
m.assertEqual(snap.transportMode, TransportController.Mode.Idle, "the transport resolved instead of fighting")
|
||||
m.assertEqual(snap.control, VideoControl.Resume, "resumed forward, not re-paused")
|
||||
m.assertEqual(Int(m.top.seek * 1000), 28860000, "the resume parks a full margin above the trigger (28800s + 60s)")
|
||||
' the resolution telemeters at info level (never as a heal) with its per-content ordinal.
|
||||
sent = m.global.telemetry.LogEvent
|
||||
m.assertEqual(sent.level, "info")
|
||||
m.assertTrue(sent.message.InStr("INV-D1 tail-resolve") = 0, "got: " + sent.message)
|
||||
m.assertTrue(sent.message.InStr("resolve=1") > 0)
|
||||
end function
|
||||
|
||||
@it("heal telemetry stops at the cap while the occurrences keep counting")
|
||||
function _()
|
||||
' a frozen VOD scrub the device keeps flipping to playing: 5 heals, but only 3 events may leave.
|
||||
m.top.callFunc("TestKey", RemoteKeys.Left, true)
|
||||
m.top.callFunc("TestKey", RemoteKeys.Left, false)
|
||||
for i = 1 to 5
|
||||
m.top.callFunc("TestSetState", VideoState.Playing)
|
||||
end for
|
||||
sent = m.global.telemetry.LogEvent
|
||||
m.assertTrue(sent.message.InStr("heal=3") > 0, "telemetry must stop at the 3rd heal; last sent: " + sent.message)
|
||||
end function
|
||||
|
||||
@it("a sentinel-valued duration report cannot anchor the live-edge fallback clock")
|
||||
@@ -743,7 +726,7 @@ namespace Tests
|
||||
classified[name] = "dep"
|
||||
end for
|
||||
' controllers (plain .bs class instances).
|
||||
for each name in ["transport", "sponsorblock"]
|
||||
for each name in ["transport", "sponsorblock", "playbackTelemetry"]
|
||||
classified[name] = "controller"
|
||||
end for
|
||||
' cached child nodes / timers / animations / reusable helpers (structure, not state).
|
||||
@@ -759,7 +742,7 @@ namespace Tests
|
||||
classified[name] = "axis"
|
||||
end for
|
||||
' flags / scratch — one-shot latches and counters with a single consuming path.
|
||||
for each name in ["onCloseCalled", "ignoreNextFinished", "videoPlayedSuccessfully", "firstFrameSeen", "showFullScreenHint", "repauseAfterSeek", "seekToPercent", "watchTimeMarker", "reportWatchTime", "errorDialogNode", "lastCommitSeq", "lastFinishSeq", "liveAstSeconds", "liveFallbackEdgeMs", "liveFallbackAtSeconds", "liveBadgeHoldActive", "healCount", "tailResolveCount"]
|
||||
for each name in ["onCloseCalled", "ignoreNextFinished", "videoPlayedSuccessfully", "firstFrameSeen", "showFullScreenHint", "repauseAfterSeek", "seekToPercent", "watchTimeMarker", "reportWatchTime", "errorDialogNode", "lastCommitSeq", "lastFinishSeq", "liveAstSeconds", "liveFallbackEdgeMs", "liveFallbackAtSeconds", "liveBadgeHoldActive"]
|
||||
classified[name] = "flag"
|
||||
end for
|
||||
' NOT coordinator state — node-scope + test-environment entries, pinned EXPLICITLY (no hidden
|
||||
@@ -819,7 +802,7 @@ namespace Tests
|
||||
container.fullscreen = true
|
||||
' close the player (what the queue does when replacing the video), then throw every signal a dead
|
||||
' player might still receive at it: fullscreen flips (the * key), device edges from the async stop,
|
||||
' a stray control/seek write, late thumbnails, a second close. OnClose unobserves them all.
|
||||
' a stray control/seek write, late thumbnails and buffering/start info, a second close. OnClose unobserves them all.
|
||||
m.top.close = true
|
||||
container.fullscreen = false
|
||||
container.fullscreen = true
|
||||
@@ -831,6 +814,8 @@ namespace Tests
|
||||
m.top.duration = 99.0
|
||||
m.top.seek = 5.0
|
||||
m.top.thumbnailTiles = { x: [{ htiles: 1 }] }
|
||||
m.top.bufferingStatus = { isUnderrun: true, percentage: 0, prebufferDone: false, actualStart: 0 }
|
||||
m.top.playStartInfo = { start_type: "cseek", total_dur: 0.1 }
|
||||
m.top.close = true
|
||||
m.assertTrue(true, "no crash: the closed player ignored all post-close traffic")
|
||||
end function
|
||||
@@ -865,21 +850,6 @@ namespace Tests
|
||||
m.assertTrue(m.Snap().onCloseCalled, "the finish closed the player from within the position tick")
|
||||
end function
|
||||
|
||||
' Also at the end (closes the player): a heal loop that ran past the telemetry cap reports its
|
||||
' true size in one tally event when the content ends.
|
||||
@it("the close summary carries a capped heal loop's true size")
|
||||
function _()
|
||||
m.top.callFunc("TestKey", RemoteKeys.Left, true)
|
||||
m.top.callFunc("TestKey", RemoteKeys.Left, false)
|
||||
for i = 1 to 5
|
||||
m.top.callFunc("TestSetState", VideoState.Playing)
|
||||
end for
|
||||
m.top.close = true
|
||||
summary = m.global.telemetry.LogEvent
|
||||
m.assertTrue(summary.message.InStr("5 heals") > 0, "got: " + summary.message)
|
||||
m.assertTrue(summary.message.InStr("2 past the telemetry cap") > 0, "got: " + summary.message)
|
||||
end function
|
||||
|
||||
end class
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user