依赖//
implementation 'cn.jzvd:jiaozivideoplayer:6.2.10'
implementation 'com.github.bumptech.glide:glide:3.8.0'
JZVideoPlayerStandard jzVideoPlayer = findviewbyId(R.id.jcvideoplayer);
jzVideoPlayer.setUp(视频网址,
JZVideoPlayerStandard.SCREEN_WINDOW_NORMAL,视频名字);
Glide.with(mContext).load(默认图片的网址).crossFade()
.into(jzVideoPlayer.thumbImageView);//给默认显示的图片赋值
jzVideoPlayer.thumbImageView.setScaleType(ImageView.ScaleType.FIT_XY);
<cn.jzvd.JZVideoPlayerStandard
android:id="@+id/jcvideoplayer"
android:layout_width="match_parent"
android:layout_height="200dp">
</cn.jzvd.JZVideoPlayerStandard>