https://github.com/lipangit/JiaoZiVideoPlayer
更多功能可以参考 https://juejin.im/post/5cb837f1518825329f6cf300

饺子播放器是android主流播放器中之一,使用简单,功能全面。
不要按照github文档来,api有变动。

1.依赖
这个地方也要添加glide的依赖,因为视频默认图需要glide加载。

  implementation 'com.github.bumptech.glide:glide:3.7.0'  implementation 'cn.jzvd:jiaozivideoplayer:7.0.3'

2.布局

 <cn.jzvd.JzvdStd        android:id="@+id/jz_video"        android:layout_width="match_parent"        android:layout_height="200dp"        tools:ignore="MissingConstraints" />

3.代码

      JzvdStd jzvdStd = (JzvdStd) findViewById(R.id.jz_video);        jzvdStd.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4"                , "饺子闭眼睛");        Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(jzvdStd.thumbImageView);

效果

更多相关文章

  1. [Android(安卓)NDK]Android(安卓)JNI开发例子 ---3 在JNI中实现o
  2. android 拨打紧急号码,通话时开启免提功能实现
  3. Android(安卓)下拉刷新,非常强大的下拉刷新功能
  4. Android中判断网络功能是否可用
  5. Android实现下载文件功能的方法
  6. android WebView 图片缩放功能小结
  7. APIDEMO PREFERENCE 学习 ACTIVTIY
  8. Android(安卓)无法查看外部依赖jar的源码的问题
  9. 整理:Android自带、第三方需要添加依赖的控件

随机推荐

  1. Android(安卓)C++ 动态加载so
  2. Android(安卓)以友好的方式显示时间
  3. Android触摸屏手势识别
  4. android 8.0 設置Ethernet的靜態IP
  5. Android(安卓)Audio代码分析23 - attachA
  6. android 邮件地址正则表达式
  7. Android(安卓)创建桌面快捷键
  8. LinearLayout(线性布局)
  9. Android中http交互是用HttpUrlConnection
  10. Android中开关按钮IOS效果的实现