Add listenable events for playback stall detection / gap jumping #4227
Labels
priority: P2
Smaller impact or easy workaround
status: archived
Archived and locked; will not be updated
type: enhancement
New feature or request
Milestone
Have you read the FAQ and checked for duplicate open issues?
Yes. This is strictly for information dispatching of stalling, which to my knowledge isn't included in the completed pull request refactoring the stall detection / gap jumping logic in #4125.
Is your feature request related to a problem? Please describe.
Provides means for improved playback analytics in the Cast Receiver SDK with use of Shaka Player.
Describe the solution you'd like
An event
stalldetected
can be dispatched when Shaka Player detects a stall based on the value ofstallThreshold
throughStreamingConfiguration
.A second event
gapjumped
could also be dispatched when Shaka performs a jump in a media gap, with the media time Shaka Player jumped to.Describe alternatives you've considered
I spent some time looking into a way to detect playback stalls solely through the
mediaElement
to prevent the need to create a change to Shaka Player directly. However, the heuristics for gap jumping / stall detection are too complex to replicate in the receiver SDK. A simple event dispatch without any logical changes to the detection / jump logic would be both safer for the receiver SDK and non-risky for Shaka Player.Additional context
https://github.com/shaka-project/shaka-player/blob/main/lib/media/gap_jumping_controller.js
https://github.com/shaka-project/shaka-player/blob/main/lib/media/stall_detector.js
The text was updated successfully, but these errors were encountered: