Search in sources :

Example 1 with JZVideoPlayerStandard

use of cn.jzvd.JZVideoPlayerStandard in project Qblog_Android by qiaoyhh.

the class VideoContentAdapter method convert.

@Override
protected void convert(BaseViewHolder helper, Object item) {
    VideoDataBean videoDataBean = (VideoDataBean) item;
    helper.setText(R.id.tv_videocontentitem_titel, videoDataBean.getTitle());
    JZVideoPlayerStandard videoPlayer = helper.getView(R.id.videoplayer);
    videoPlayer.setUp(videoDataBean.getUrl(), JZVideoPlayerStandard.SCREEN_WINDOW_NORMAL, videoDataBean.getTitle());
}
Also used : VideoDataBean(com.qyh.myblog_android.model.bean.VideoDataBean) JZVideoPlayerStandard(cn.jzvd.JZVideoPlayerStandard)

Aggregations

JZVideoPlayerStandard (cn.jzvd.JZVideoPlayerStandard)1 VideoDataBean (com.qyh.myblog_android.model.bean.VideoDataBean)1