|
|
@@ -2,6 +2,7 @@ package com.itant.shibei.ui.home.goods;
|
|
|
|
|
|
import android.app.Activity;
|
|
|
import android.content.Context;
|
|
|
+import android.content.Intent;
|
|
|
import android.graphics.Paint;
|
|
|
import android.graphics.drawable.Drawable;
|
|
|
import android.text.TextUtils;
|
|
|
@@ -24,6 +25,7 @@ import com.itant.shibei.base.ItemLongClickListener;
|
|
|
import com.itant.shibei.constant.ConstantString;
|
|
|
import com.itant.shibei.manager.UserInfoManager;
|
|
|
import com.itant.shibei.tool.StringTool;
|
|
|
+import com.itant.shibei.ui.home.goods.play.VideoPlayActivity;
|
|
|
import com.makeramen.roundedimageview.RoundedImageView;
|
|
|
import com.miekir.common.utils.ActivityTool;
|
|
|
import com.miekir.common.utils.ToastTool;
|
|
|
@@ -141,7 +143,12 @@ public class GoodsAdapter extends BaseQuickAdapter<GoodsBean, BaseViewHolder> {
|
|
|
fl_video_play.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
- // todo 播放视频
|
|
|
+ // 全屏播放视频
|
|
|
+ Intent playIntent = new Intent(mContext, VideoPlayActivity.class);
|
|
|
+ playIntent.putExtra(VideoPlayActivity.KEY_URL, goodsBean.videoUrl);
|
|
|
+ playIntent.putExtra(VideoPlayActivity.KEY_TITLE, goodsBean.title);
|
|
|
+ mContext.startActivity(playIntent);
|
|
|
+ //JzvdStd.startFullscreen(this, JZVideoPlayerStandard.class, "http://2449.vod.myqcloud.com/2449_22ca37a6ea9011e5acaaf51d105342e3.f20.mp4", "嫂子辛苦了");
|
|
|
}
|
|
|
});
|
|
|
} else {
|