-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Audio language auto switches the text track(using selectAudioLanguage, selectTextTrack API) #1299
Comments
Not able to reproduce the assertion fail, however, both switchVariant_() and switchTextStream_() are called when switching audio language. |
I made changes in sample to reproduce it. Shaka demo application does not list all the track. It does a filter for language and role. I removed that piece of code in order to list all the tracks. tracks = tracks.filter(function(track) { |
By setting the ignoreTextStreamFailures flag to true , I was able to resolve this issue in my sample Application. |
Hi @shanmugapriyaEK, Could you clarify why you wanted all the text track listed at the same time? The way we intended for this to work was that you would choose a language first (selectTextLanguage()) and then select a track from in this language from a track list. Do you think you could follow that path? I'm pretty sure what you're seeing happens because you go around selectTextLanguage(). We might be able to work with you to accommodate your use case if there is a reason you can't call selectTextLanguage() first, but I want to check if the intended approach might work for you first. |
We have exposed this API to our clients. |
Unknowingly I pressed the button |
@shanmugapriyaEK I made the changes to accommodate your use case. It should be working now (in the latest master). We'll add it to the next release. |
Thank you :) |
We've been asked to implement this to allow for a custom app behavior where app exposes all the tracks independent of language and role. In that scenario changing audio language will affect current text track and the other way around. This CL makes sure it doesn't. Closes #1299. Change-Id: I39a9748c033ea748173ca00bfa7168dff642a03e
Cherry-picked for v2.3.3. |
NOTE: For bugs, if you delete this template, we will send it again and ask you to fill it out.
Have you read the FAQ and checked for duplicate open issues?:yes
What version of Shaka Player are you using?:2.3.3
Can you reproduce the issue with our latest release version?:yes
Can you reproduce the issue with the latest code from
master
?:yesAre you using the demo app or your own custom app?:both
If custom app, can you reproduce the issue using our demo app?:yes
What browser and OS are you using?:Chrome MAV
What are the manifest and license server URIs?:Demo asset- 'Angel One (multicodec, multilingual)
What did you do? Using selectTextTrack (with all the tracks listed), setting selectAudioLanguage auto switches the text track.
Reproduce in sample app by doing
if (!mediaState && stream.type == ContentType.TEXT &&
this.config_.ignoreTextStreamFailures) {//this was set to false
this.loadNewTextStream(stream);
return;
}
goog.asserts.assert(mediaState, 'switch: expected mediaState to exist');
What did you expect to happen? It should not switch text track
What actually happened? changes text track
The text was updated successfully, but these errors were encountered: