Switch video subtitles with ExoPlayer while a video is still playing
Let's say I have two subtitles for a video, how do you switch an exoplayer's subtitles while the video is playing without resetting the player itself? Like for an example when a user click a button
By following the
exoplayer documentation, my current implementation is like this:
binding.button.setOnClickListener {
val k = player.currentPosition // Get the latest player's current position
subtitle =...