Basic example where you can find how to play a video or sound with ExoPlayer
- Android API 21 - 31
- Gradle 7.2
- Kotlin 1.6.10
- ExoPlayer 2.17.1
- Play sound with default player view (Sound player button)
- Play video with default player view (Video player button)
- Play video with custom player view (Video custom player button)
Notes:
- This example has been done with ExoPlayer 2.17.1
- To know more about how to style the player check this link