-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add listenable events for playback stall detection and gap jumping #4249
feat: add listenable events for playback stall detection and gap jumping #4249
Conversation
018cd97
to
70ef1c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any breaking changes. I think you can drop the !
from the PR title, which indicates a breaking change and would push us to v5.0 on merge. It should just be feat:
for a backward compatible feature.
Looks pretty good otherwise!
A good idea would be to compute in stats the number of times each of these events is launched |
I think this is a great idea, I've updated the Stats object to incorporate the occurrences of these events! |
a35f1d8
to
f201cd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. One small nit. Nice work!
Additionally: - Occurrences of these new events will be propagated to the Stats object - The player event names enum is moved to util/fake_event.js so classes outside of Player can require them.
f201cd0
to
5675305
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time, please push additional commits instead of amending. It makes PR review easier when you make updates. (It's the opposite of Gerrit.)
Noted, thanks for the heads up! |
…ing (shaka-project#4249) An event `stalldetected` can be dispatched when Shaka Player detects a stall based on the value of stallThreshold through [StreamingConfiguration](https://shaka-player-demo.appspot.com/docs/api/externs_shaka_player.js.html#line920). A second event `gapjumped` could also be dispatched when Shaka performs a jump in a media gap. Related to issue shaka-project#4227
An event
stalldetected
can be dispatched when Shaka Player detects a stall based on the value of stallThreshold through StreamingConfiguration.A second event
gapjumped
could also be dispatched when Shaka performs a jump in a media gap.Related to issue #4227.