Basically, I want to develop an Instagram kind of auto-play video in nested RecyclerView. So when the user scrolls and stops at a specific position and I would like to receive a callback like this is resumed/paused/stopped/destroyed. So I can make a proper call of ExoPlayer methods and make sure at a time only a single video is playing when the user is not scrolling.
It would be helpful if you can share a simple example of RecyclerView which ViweHolder receives the above-mentioend callbacks.