Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 716 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 716 Bytes

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的基础上进行开发的