一、依赖
//弹幕 compile 'com.linsea:opendanmaku:1.0.0@aar' //节操播放器 compile 'fm.jiecao:jiecaovideoplayer:5.5' compile 'com.github.bumptech.glide:glide:3.7.0'//根据自己的喜好,使用图片加载框架
二、布局
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <!--弹幕--> <RelativeLayout android:id="@+id/relativelayout_danmu" android:layout_width="match_parent" android:layout_height="300dp"> <fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard android:id="@+id/videoplayer"