Skip to content
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 KeyStatusChanged and UpdateState events #5695

Merged
merged 2 commits into from Oct 2, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Sep 29, 2023

Closes #1365

@avelad avelad added type: enhancement New feature or request priority: P3 Useful but not urgent labels Sep 29, 2023
@avelad avelad added this to the v4.5 milestone Sep 29, 2023
@shaka-bot
Copy link
Collaborator

Incremental code coverage: No instrumented code was changed.

@avelad
Copy link
Collaborator Author

avelad commented Sep 29, 2023

Some tests fail but I think it is not because of this PR. @joeyparrish can you review it? (see: https://github.com/shaka-project/shaka-player/actions/runs/6350193501/attempts/6)

lib/player.js Outdated
* @event shaka.Player.UpdateState
* @description Fired when player state is updated.
* @property {string} type
* 'updatestate'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more conventional to call a change event something like "statechanged", as you did for "keystatuschanged".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@joeyparrish
Copy link
Member

It is suspicious that Chrome & Edge both failed to start on every platform. It's certainly not caused by your changes. Probably something happened on GitHub's VM images or in Chrome's releases to trigger this.

@avelad avelad dismissed joeyparrish’s stale review October 2, 2023 08:16

Reviewed by Theodore

@avelad avelad merged commit 2f97fa7 into shaka-project:main Oct 2, 2023
10 of 17 checks passed
@avelad avelad deleted the player-events branch October 2, 2023 08:20
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Nov 30, 2023
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 1, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

updateState and keystatuseschanged events from shaka.Player
4 participants