Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 898 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 898 Bytes

Background-VideoView

Version

Set Video as a Background. The video ratio should be as mobile ratio (ie: 1920x1080)

Origin(1080x1920) RawVideoView
SampleVideo_1280x720_5mb.mp4
sample_video.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)