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

Add an event when a track change has rendered. #2440

Conversation

nweber
Copy link
Contributor

@nweber nweber commented Feb 26, 2018

This follows the already established method for identifying when a quality change has been rendered to allow us to dispatch an event when a track change has been rendered. This is helpful when switching audio or video tracks for UI feedback.

@@ -140,6 +140,12 @@ class MediaPlayerEvents extends EventsBase {
*/
this.QUALITY_CHANGE_RENDERED = 'qualityChangeRendered';

/**
* Triggered when the new track is being rendered on-screen.
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a small correction. Given there are also audio track changes I would remove the "on-screen" part of the event description

index.d.ts Outdated
@@ -256,6 +256,7 @@ declare namespace dashjs {
PLAYBACK_TIME_UPDATED: 'playbackTimeUpdated';
PROTECTION_CREATED: 'public_protectioncreated';
PROTECTION_DESTROYED: 'public_protectiondestroyed';
TRACK_CHANGE_RENDERED: 'trackChangeRequested';
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be 'trackChangeRendered'?

@epiclabsDASH epiclabsDASH added this to the v2.6.7 milestone Feb 27, 2018
@epiclabsDASH
Copy link
Contributor

@nweber, sorry, there are some conflicts to be resolved. Thanks

@epiclabsDASH epiclabsDASH merged commit 1c424a8 into Dash-Industry-Forum:development Mar 1, 2018
@nweber nweber deleted the track_switch_rendered_event branch March 1, 2018 14:50
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.

None yet

3 participants