Skip to content

Video player for Jetpack Compose powered by ExoPlayer(一个视频播放器,使用Jetpack Compose基于Exoplayer进行的封装)

License

Notifications You must be signed in to change notification settings

lanlinju/ComposeVideoPlayer

Repository files navigation

Compose Video Player

一个视频播放器,使用Jetpack Compose基于Exoplayer进行的封装

简单使用

val playerState = rememberVideoPlayerState()

VideoPlayer(
    url = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",
    playerState = playerState,
) {
    VideoPlayerControl(
        state = playerState,
        title = "Elephant Dream",
    )
}

更详细的使用参考VideoPlayScreen

应用截图

player

参考开源

本项目是在compose-video-player的基础上进行开发的

About

Video player for Jetpack Compose powered by ExoPlayer(一个视频播放器,使用Jetpack Compose基于Exoplayer进行的封装)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages