Skip to content

xieguangwei/MyCustomMediaPlayer

Repository files navigation

MediaPlayer+TextureView封装原生的视频播放器

1.gradle

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
    compile 'com.github.xieguangwei:MyCustomMediaPlayer:2.1'
}

2.新添加边播边缓存,缓存框架使用的是danikula的AndroidVideoCache

若想先缓存,后播放,可参照AndroidVideoCache的issues#59

3.感兴趣的可以下载demo看下,同款的基于ExoPlayer封装的播放器>>>

About

A video player supported by MediaPlayer engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages