一个视频播放器,使用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
本项目是在compose-video-player的基础上进行开发的