Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlinju committed Mar 3, 2024
1 parent 9378eae commit 6a40098
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# ComposeVideoPlayer
一个视频播放器,使用Jetpack Compose对于Exoplayer进行的封装
# Compose Video Player

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

## 简单使用

```kotlin
val playerState = rememberVideoPlayerState()

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

更详细的使用参考[VideoPlayScreen](app/src/main/java/com/example/composevideoplayer/VideoPlayScreen.kt)

## 应用截图

![player](Screenshots/player.jpg)

## 参考开源

本项目是在[compose-video-player](https://github.com/imherrera/compose-video-player)的基础上进行开发的
Binary file added Screenshots/player.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a40098

Please sign in to comment.