I use HLS videos with ExoPlayer. Segments are broken down into 6 seconds each. I'm not sure if this is a problem with my implementation of HLS or if it's an issue with ExoPlayer.
My app has a feed of videos (in a RecyclerView). I've set it up such that when a video stops, it saves the position in a map and the player gets detached. However, if the user scrolls back up to view that same video, when I call exoPlayer.seekTo(position), it usually takes a second or two for the video to start playing again from the saved position.
What can I do to make sure that the video plays instantly? Would caching each video solve my problem here?
Thanks!