Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.xieguangwei:MyCustomMediaPlayer:2.1'
}
2.新添加边播边缓存,缓存框架使用的是danikula的AndroidVideoCache
若想先缓存,后播放,可参照AndroidVideoCache的issues#59