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

Properly support passing an array of events for a listener #463

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

tvanlaerhoven
Copy link
Member

Allow passing an array of events to a listener:

const TIME_CHANGE_EVENTS = [PlayerEventType.TIME_UPDATE, PlayerEventType.SEEKING, PlayerEventType.SEEKED];
player?.addEventListener(TIME_CHANGE_EVENTS, callback);

@wvanhaevre
Copy link
Collaborator

wvanhaevre commented Dec 17, 2024 via email

@tvanlaerhoven tvanlaerhoven merged commit f49d999 into develop Dec 23, 2024
5 checks passed
@tvanlaerhoven tvanlaerhoven deleted the feature/eventlistener_array branch December 23, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants