Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
longdt57 committed Jul 6, 2022
1 parent 524e152 commit aa291a3
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# Background-VideoView
# Background-VideoView
[![Version](https://jitpack.io/v/longdt57/Background-VideoView.svg)](https://github.com/longdt57/Background-VideoView/releases)

Set Video as a Background.

Example:
<video src="https://user-images.githubusercontent.com/106943585/177454594-746cf8e0-2296-4368-a70b-ce751dd8db3b.mp4" />

## Implementation
build.gradle
```
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.longdt57:Background-VideoView:{version}'
}
```
## Usage
XML
```
<lee.module.video.RawVideoView
app:video_loop="true"
app:video_raw_res="@raw/sample_raw_video" />
```
Kotlin: `lifecycle.addObserver(RawVideoView)`

0 comments on commit aa291a3

Please sign in to comment.