Video Wizard with HorizontalPager | ExoPlayer | Jetpack Compose
Useful code snippets for Compose HorizontalPager

I have been working with a new version of HorizontalPager from Compose and recently implemented a video wizard. For playing video I used ExoPlayer. Here is what I've got:
For April'23 there are two versions of HorizontalPager, one from accompanist and another from compose-1.4.X. I recommend you to choose the second, it's a newer and has flexible API.