| | |
| | | import com.weikou.beibeivideo.ui.recommend.GuessLikeAdapter; |
| | | import com.weikou.beibeivideo.util.BeibeiConstant; |
| | | import com.weikou.beibeivideo.util.ad.KSConstant; |
| | | import com.weikou.beibeivideo.util.video.DPEventCollectUtil; |
| | | import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; |
| | | |
| | | import org.apache.http.Header; |
| | |
| | | public void preInit() { |
| | | KsScene adScene = new KsScene.Builder(KSConstant.PID_FULL_VIDEO).build(); |
| | | ksContentPage = KsAdSDK.getLoadManager().loadContentPage(adScene); |
| | | ksContentPage.setVideoListener(new KsContentPage.VideoListener() { |
| | | @Override |
| | | public void onVideoPlayStart(KsContentPage.ContentItem contentItem) { |
| | | Log.i(TAG, "onVideoPlayStart"); |
| | | DPEventCollectUtil.playDrawVideo(getContext(), null, "ks", "home", false); |
| | | } |
| | | |
| | | @Override |
| | | public void onVideoPlayPaused(KsContentPage.ContentItem contentItem) { |
| | | Log.i(TAG, "onVideoPlayPaused"); |
| | | } |
| | | |
| | | @Override |
| | | public void onVideoPlayResume(KsContentPage.ContentItem contentItem) { |
| | | Log.i(TAG, "onVideoPlayResume"); |
| | | } |
| | | |
| | | @Override |
| | | public void onVideoPlayCompleted(KsContentPage.ContentItem contentItem) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void onVideoPlayError(KsContentPage.ContentItem contentItem, int i, int i1) { |
| | | Log.i(TAG, "onVideoPlayError"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |