依赖//
implementation 'cn.jzvd:jiaozivideoplayer:6.2.10'
JZVideoPlayerStandard jzVideoPlayer = helper.getView(R.id. jcvideoplayer);jzVideoPlayer.setUp(item.getMp4_url(), JZVideoPlayerStandard. SCREEN_WINDOW_NORMAL, item.getTitle());Glide. with( mContext).load(item.getCover()).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>