question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Audio Track Question

See original GitHub issue

Hey,

I’m actually implementing the possibility of switching audio tracks on my player. I’ve some questions about this :

  • How I can be sure that selectAudioLanguage() executed well or failed? It seems to return nothing but I can see that a AdaptionEvent is triggered when I switch audio tracks, but in the data event It doesn’t tell me that it was triggered by an audio track switch action.

  • Also, In my DASH manifest, I can see that I have an Accessibility track, but when I call getAudioLanguagesAndRoles, it doesn’t tell me if there is an accessibility track. Is there a way to recognise if my track is an accessibility track ?

  • I would like to know If there also a way to get the current Audio track playing by the player? I know by default shaka player will play the main track, but sometimes I have multiple tracks who got main role and by that I dont know which track is playing. Is there an easy way to get the current track ?

Thank you 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
vaagecommented, Apr 2, 2019

@fadomire what I would suggest you do is summary the requirements and your proposed solution as a feature request. That request will be reviewed by those on the team who are best equipped to discuss the details. Once the details have been worked-out, the work will be allocated resources as per its priority.

1reaction
TheModMakercommented, Mar 29, 2019

We should extend the kind attribute to also apply to audio tracks based on the Role. So in your case it would be alternate. See section 5.8.5.5 of the DASH spec for these values and their interpretations. We should be careful about duplicate Role elements, since there can be main and another.

As for the Accessibility element, the DASH IOP specifies some values for this. With a @schemeIdUri of urn:mpeg:dash:role:2011: on video the value can be sign, subtitle, or caption; with audio it can be description and enhanced-audio-intelligibility; with text it can be description or caption.

Your @schemeIdUri isn’t specified, but thats allowed. Since we focus on DASH and the DASH IOP, I’d be hesitant to add other specs in. How about adding the properties I described above according to the IOP guidelines?

We could then expose those as kind if Accessibility is present, falling back to Role if there isn’t one. You can get the roles property to get the raw roles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add a Video & Audio Track to Quiz Questions
To add an audio or video track to your quiz: Step 1: Click '+ Add Question' among the question types, and then select...
Read more >
Audio Track Question · Issue #1851 · shaka-project/shaka-player
It seems to return nothing but I can see that a AdaptionEvent is triggered when I switch audio tracks, but in the data...
Read more >
Mv8800 audio tracks question - Gearspace.com
I was looking at an MV8800 by Roland as a hardware option for when I got someone recording and wanted to make beats...
Read more >
Audio and video in surveys - PsyToolkit
You can have one or more sounds (i.e, audio tracks) above each question. For this we use the a: option in the question...
Read more >
Question / Help - Audio tracks | OBS Forums
How did you check the number of tracks and their content in the recordings? Media players never mix tracks for listening. They always...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found