在方法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());
本文介绍了优酷APP中广告播放的控制流程,包括开始播放和结束播放两个关键环节。在开始播放时,会根据VIP状态调整播放界面,并确保插件加载正确;结束播放时,则会清除已播放广告信息并处理缓存。

被折叠的 条评论
为什么被折叠?



