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

Selecting of default audio track on loading for MPD manifests #6599

Closed
SergeiBel opened this issue May 13, 2024 · 3 comments
Closed

Selecting of default audio track on loading for MPD manifests #6599

SergeiBel opened this issue May 13, 2024 · 3 comments
Labels
type: question A question from the community

Comments

@SergeiBel
Copy link

Have you read the Tutorials?
Yes

Have you read the FAQ and checked for duplicate open issues?
Yes

If the question is related to FairPlay, have you read the tutorial?

What version of Shaka Player are you using?
~4.3.4

What browser and OS are you using?
Chrome, Ubuntu 20.04

Please ask your question
I have multiple audio tracks in my player already implemented, but i was faced the problem that i need to select a default audio track from the mpd manifest. I used getVariantTracks method from Shaka-player, but after investigation of our codebase i found that method which used there does not return any data from asset file, which related to the default audio track. I did not find any way how to get this data from the variant using your lib.

Maybe you can give me some advice how to get this option or how can i manage audio tracks in order to select the default one on player initialization?

@SergeiBel SergeiBel added the type: question A question from the community label May 13, 2024
@Robloche
Copy link
Contributor

Are you looking for the default audio track from the MDP manifest or are you trying to select a specific audio track at startup?

If it's the latter, you can use preferredAudioLanguage when configuring the player:

shaka.configure({preferredAudioLanguage: 'en'});

@joeyparrish
Copy link
Member

Preferred language and role should be your first try. If that isn't detailed enough, you can use the player's streaming event to make track selections between manifest parsing and ABR selections.

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label May 15, 2024
@shaka-bot
Copy link
Collaborator

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question A question from the community
Projects
None yet
Development

No branches or pull requests

5 participants