yangchaojiang / yjPlay

一个支持自定义UI布局,流式API, 加密,直播 ,亮度,音量,快进等手势 ,广告视频预览,多种加载模式 ,多种分辨率切换 ,多种封面图, 自定义数据源,列表播放,倍数播放,边播变缓存<font color="red">不是使用AndroidVideoCache</font>,离线播放,神奇的播放器
Apache License 2.0
1.73k stars 301 forks source link
exoplayer fullscreen listvideo surfaceview textureview video video-player

yjPlay

Download

gif 显示有点卡,帧数低,实际很流畅

下载预览apk

基于exoPlayer 自定义播放器 JPlayer支持功能:

三.列表使用说明-->戳我

四.数据源工厂类

1.默认数据源

      缓存 : CacheDataSourceFactory
      http : DefaultDataSourceFactory,DefaultHttpDataSourceFactory
      Priority : PriorityDataSourceFactory

2 ExoPlayer自定义数据源引用(根据自己需求选用)

  compile 'com.google.android.exoplayer:extension-okhttp:2.9.5'
  compile 'com.google.android.exoplayer:extension-rtmp:2.9.5'
  compile 'com.google.android.exoplayer:extension-gvr:2.9.5'
  compile 'com.google.android.exoplayer:extension-cast:2.9.5'
  compile 'com.google.android.exoplayer:extension-mediasession:2.9.5'
  compile 'com.google.android.exoplayer:extension-ima:2.9.5'
  compile 'com.google.android.exoplayer:extension-leanback:2.9.5'

五.自定义数据源用法-戳我

六.自定义布局用法-戳我

七.自定义MediaSource用法-戳我

八.缓存,加密,视频处理用法-戳我

混淆声明

-dontwarn chuangyuan.ycj.**

-keep class chuangyuan.ycj.* { ;}

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.