Compose Video Player

Video player for Android Compose powered by ExoPlayer.

Adding Dependency

  • Add the JitPack repository to your build file in your root build.gradle at the end of repositories:

allprojects {
    repositories {
		maven { url '' }
  • Add the dependency

dependencies {
    implementation 'com.github.imherrera:compose-video-player:0.1.0-alpha'

Basic Usage

The basic usage is as follows:

val playerState = rememberVideoPlayerState()

VideoPlayer(playerState = playerState) {
        state = playerState,
        title = "Elephant Dream",

LaunchedEffect(Unit) {
    playerState.player.playWhenReady = true

This will display the video in your Compose layout that shows the video provided.
For fullscreen example you can take a look at SampleActivity


View Github