-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Change audio languages #2178
Comments
like or you can custom your |
Hello @CarGuo , Using above code language not chaging getting crash, My Code is:=> ((IjkMediaPlayer)videoPlayer.getGSYVideoManager().getPlayer().getMediaPlayer()).setOnInfoListener(new IMediaPlayer.OnInfoListener() { =================THIS IS CRASH REPORT=============================== |
Could you provide some video stream which support switching audio tracks for test? |
And if you find any solution about change the audio track, please provide sample code so I can implement. Thanks |
|
(!!!! Please be sure to follow the issue template, modify and submit the question!!!!, do not follow the template to remove Isuue)
(ps home problem highlights and demos please understand!)
Problem Description: I used this video player it's working good, now my question is how can i change audio language if in video there is multiple languages, i found onInfo() method using this videoPlayer.getGSYVideoManager().getPlayer().getMediaPlayer().setOnInfoListener() code.
in above code i got languages list like iMediaPlayer.getTrackInfo();
but when i click on list of language then how should i select track?
in android default videoview i did code for change language when user click on language list like:=> mediaPlayer.selectTrack(position + 1); , but how in this shuyu:gsyVideoPlayer ?
Please help me, Thank you!
7.0.2 has this problem!
GSY dependent version
For example
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.2'
The text was updated successfully, but these errors were encountered: