-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How to get selected Format
with TracksInfo
?
#9674
Comments
You can get |
I see, to my understanding, that sample only shows how to get a |
The simplest way to listen to adaptive video format changes is to listen to |
@tonihei Many thanks. |
I used
Player.getCurrentTrackSelections()
andExoTrackSelection.getSelectedFormat()
to get some info of a playing HLS video:Since
Player.getCurrentTrackSelections()
is now marked deprecated, I try usingPlayer.getCurrentTracksInfo()
instead, which is suggested in the documentation.However, a
TracksInfo
does not provideTrackSelection
or the selectedFormat
asgetCurrentTrackSelections()
does. I can see there is a similar method namedTrackGroupInfo.isTrackSelected(int trackIndex)
but it is not equivalent as documented and tested by myself.I was wondering what the proper way is to obtain
ExoTrackSelection
for now?The text was updated successfully, but these errors were encountered: