关于优酷SDK之setOnADPlayListener
在方法onStartPlayAD(int index)中
根据vid,设置mYoukuPlayerView.setPlayerBlackGone();如果是vip的话,就设置mPluginADPlay.setSkipVisible(true);调用getBaseActivity().runOnUiThread(){
pluginManager.onLoad();
if(null!=mPluginADPlay) mPluginADPlay.setVisible(true);
通过更新插件如果没有PluginADPlay就设置相应的PluginADPlay
在方法onEndPlayAD(int index)中
当广告播放成功后,从容器中一次mediaPlayer.videoInfo.removePlayedAdv();
if 已经缓存
Cancheinfo download=ImaediaPlayerDelegat.mCacheInfo;
if(download!=null) videoCacheInfo downloadInfo=download.getDownloadInfo(mediaPlayerDelegate.videoInfo.getVid());
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
