[REQUIRED] Searched documentation and issues
I've looked around stackoverfow and multiple forums but they just use TrackSelectionDialog without sorting the format
[REQUIRED] Question
How can I sort the format inside TrackSelectionDialog ? I can't modify the videos as I'm just picking up the link from a WebService. Here is a screen of what I'm describing.
my TrackSelectionDialog displays the format in the following order: 480p, 720p, 1080p, 360p, 256p and I'd like to sort the format in the following order: 256p, 360p, 480p, 720p, 1080p.
This is my code:
trackSelectionDialogBuilder = TrackSelectionDialogBuilder(context, context.getString(R.string.qualitySelector), trackSelector, videoRenderer)
trackSelectionDialogBuilder.setTrackNameProvider {
// Override function getTrackName
context.getString(R.string.exo_track_resolution_pixel, it.height)
}
return trackSelectionDialogBuilder.build()