Java AdvInfo类代码示例

本文整理汇总了Java中com.youku.player.goplay.AdvInfo的典型用法代码示例。如果您正苦于以下问题:Java AdvInfo类的具体用法?Java AdvInfo怎么用?Java AdvInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java AdvInfo类代码示例

AdvInfo类属于com.youku.player.goplay包,在下文中一共展示了AdvInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: startPunchBoxAd

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
private void startPunchBoxAd() {
	setAdType(AdVender.PUNCHBOX);
	PluginImageAD.initPunchboxSdk();
	removeAllAd();
	mPunchboxAd = new InterstitialAd(mActivity);
	mPunchboxAd.setCloseMode(1);
	if (mPunchBoxListener == null) {
		mPunchBoxListener = new AdPunchBoxListener();
	}
	mPunchboxAd.setAdListener(mPunchBoxListener);
	mPunchboxAd.donotReloadAfterClose();
	AdRequest adRequest = new AdRequest();
	adRequest.setOrientation(2);
	mPunchboxAd.loadAd(adRequest);
	Logger.d("PlayFlow", "start to show punchbox pause ad");
	AdvInfo advInfo = getAdvInfo();
	DisposableStatsUtils.disposePausedSUS(advInfo);
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:19,代码来源:PluginFullScreenPauseAD.java

示例2: startMobisageAd

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
private void startMobisageAd() {
	setAdType(AdVender.ADSAGE);
	removeAllAd();
	if (!PluginImageAD.isMobiSageSDKInit) {
		MobiSageManager.getInstance().setPublisherID(mActivity,
				AdVender.MobiSage_ID);
		PluginImageAD.isMobiSageSDKInit = true;
	}
	DisplayMetrics displayMetrics = new DisplayMetrics();
	mActivity.getWindowManager().getDefaultDisplay()
			.getMetrics(displayMetrics);
	mMobisageAd = new MobiSageAdProductPlacement(mActivity, true);

	if (mMobisageListener == null) {
		mMobisageListener = new AdMobisageListener();
	}
	mMobisageAd.setMobiSageAdProductPlacementListener(mMobisageListener);
	if (mParams == null) {
		mParams = new LayoutParams((int) displayMetrics.density * 300,
				(int) displayMetrics.density * 250);

	}
	mMobisageContainer.addView(mMobisageAd, mParams);
	AdvInfo advInfo = getAdvInfo();
	DisposableStatsUtils.disposePausedSUS(advInfo);
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:27,代码来源:PluginFullScreenPauseAD.java

示例3: getAdvInfo

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 获取广告信息
 * 
 * @return
 */
private AdvInfo getAdvInfo() {
	try {
		return mediaPlayerDelegate.videoInfo.videoAdvInfo.VAL.get(0);
	} catch (Exception e) {
		e.printStackTrace();
	}
	return null;
} 
开发者ID:uin3566,项目名称:Dota2Helper,代码行数:14,代码来源:PluginADPlay.java

示例4: getAdvInfo

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 获取广告信息
 * 
 * @return
 */
private AdvInfo getAdvInfo() {
	try {
		return mAdvInfo;
		// return mVideoAdvInfo.VAL.get(0);
	} catch (Exception e) {
	}
	return null;
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:14,代码来源:PluginImageAD.java

示例5: shouldOverrideUrlLoading

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
	Logger.e("PlayFlow", "点击:" + url);
	AdvInfo advInfo = getAdvInfo();
	// 用户点击跳转发送CUM
	if (!isOnClick) {
		DisposableStatsUtils.disposeCUM(advInfo);
	}
	isOnClick = true;
	if (url.endsWith(".apk")
			&& IMediaPlayerDelegate.mIDownloadApk != null
			&& mediaPlayerDelegate != null) {
		if (!Util.isWifi()) {
			creatSelectDownloadDialog(mActivity);
			return true;
		}
		dismissImageAD();
		mediaPlayerDelegate.pluginManager.onLoading();
		mediaPlayerDelegate.startPlayAfterImageAD();
	} else if (mediaPlayerDelegate != null) {
		dismissImageAD();
		mediaPlayerDelegate.pluginManager.onLoaded();
	}
	new AdvClickProcessor().processAdvClick(mActivity, url, mAdForward);

	return true;
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:28,代码来源:PluginImageAD.java

示例6: showADImageWhenLoaded

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 暂停广告获取成功 去显�?
 */
private void showADImageWhenLoaded() {
	if (null != mADClickURL && TextUtils.getTrimmedLength(mADClickURL) > 0) {
		adImageView.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Logger.e("PlayFlow", "点击:" + mADClickURL);
				AdvInfo advInfo = getAdvInfo();
				// 用户点击跳转发送CUM
				DisposableStatsUtils.disposeCUM(advInfo);
				dismissPauseAD();
				if (mADClickURL.endsWith(".apk")
						&& IMediaPlayerDelegate.mIDownloadApk != null
						&& mediaPlayerDelegate != null && !Util.isWifi()) {
					creatSelectDownloadDialog(mActivity);
					return;
				}
				new AdvClickProcessor().processAdvClick(mActivity,
						mADClickURL, mAdForward);
			}
		});
	} else {
		adImageView.setOnClickListener(null);
	}
	setVisible(true);
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:30,代码来源:PluginFullScreenPauseAD.java

示例7: getAdvInfo

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 获取广告信息
 * 
 * @return
 */
private AdvInfo getAdvInfo() {
	try {
		return pauseADVideoAdvInfo.VAL.get(0);
	} catch (Exception e) {
	}
	return null;
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:13,代码来源:PluginFullScreenPauseAD.java

示例8: dismissPauseAD

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 不显示暂停广告蒙�?
 */
public void dismissPauseAD() {
	pauseADcanceled = true;
	if (containerView.getVisibility() == View.VISIBLE) {
		mActivity.runOnUiThread(new Runnable() {
			@Override
			public void run() {
				containerView.setVisibility(View.GONE);
				if (mPunchboxAd != null) {
					mPunchboxAd.dismiss();
					mPunchboxContainer.removeAllViews();
					mPunchboxAd = null;
				}

				if (mMobisageAd != null) {
					mMobisageAd.destoryAdView();
					mMobisageContainer.removeAllViews();
					mMobisageAd = null;
				}
				if (mDomobAd != null) {
					mDomobAd.closeVideoInterstitialAd();
					mDomobContainer.removeAllViews();
					mDomobAd = null;
				}
			}
		});
		if (mAdType == AdVender.YOUKU) {
			AdvInfo advInfo = getAdvInfo();
			DisposableStatsUtils.disposePausedSUE(advInfo);
		}
	}
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:35,代码来源:PluginFullScreenPauseAD.java

示例9: startDomobAd

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
private void startDomobAd() {
	setAdType(AdVender.DOMOB);
	removeAllAd();
	mDomobAd = new DomobVideoInterstitialAd(mActivity, AdVender.Domob_ID,
			AdVender.Domob_PauseAd_ID, 1200, 1000);
	if (mDomobListener == null) {
		mDomobListener = new AdDomobListener();
	}
	mDomobAd.setVideoInterstitialAdListener(mDomobListener);
	mDomobAd.loadVideoInterstitialAd();
	Logger.d("PlayFlow", "start to show Domob pause ad");
	AdvInfo advInfo = getAdvInfo();
	DisposableStatsUtils.disposePausedSUS(advInfo);
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:15,代码来源:PluginFullScreenPauseAD.java

示例10: notifyUpdate

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
public void notifyUpdate(int count) {

		if (count <= 0) {
			mCountUpdateTextView.setText("");
			mCountUpdateTextView.setVisibility(View.GONE);
			if (Profile.PLANTFORM == Plantform.YOUKU) {
				mCountUpdateWrap.setVisibility(View.GONE);
			}
			return;
		}
		if (mCountUpdateTextView != null) {
			
			if (Profile.PLANTFORM != Plantform.YOUKU) {
				StringBuilder mytext = new StringBuilder("广告剩余时间");
				mytext.append(count).append("秒");
				mCountUpdateTextView.setText(mytext);
				mCountUpdateTextView.setVisibility(View.VISIBLE);
			} else {
				String str = String.valueOf(count);
				mCountUpdateTextView.setText(str);
				mCountUpdateTextView.setVisibility(View.VISIBLE);
				mCountUpdateWrap.setVisibility(View.VISIBLE);
			}
			
		}

		int visibility = mediaPlayerDelegate.isPlayLocalType() ? View.GONE : View.VISIBLE;
		// TODO:要保持“广告剩余时间”和“全屏”,“详细了解”的同步显示,需要把三者处理显示的时机要一致。
		// 目前onStartPlayAD中没有倒计时的参数,故暂时放在这里处理。这些应该在onStartPlayAD方法中处理。
		mSwitchParent.setVisibility(visibility);
		mSwitchPlayer.setVisibility(visibility);

		if (mediaPlayerDelegate.videoInfo.videoAdvInfo != null) {
			AdvInfo advInfo = getAdvInfo();
			if (advInfo == null) {
				Logger.e("PlayFlow", "PlugiADPlay->notifyUpdate    advInfo = null,   return");
				return;
			}

/*			if (TextUtils.isEmpty(advInfo.CU)) {
				ad_more.setVisibility(View.GONE);
			} else {
				if (AdForward.YOUKU_VIDEO == advInfo.CUF) {
					ad_more.setText(R.string.playersdk_ad_descrip_play_youku);
				} else {
					ad_more.setText(R.string.playersdk_ad_descrip_youku);
				}
				ad_more.setVisibility(View.VISIBLE);
			}*/
		}
	} 
开发者ID:uin3566,项目名称:Dota2Helper,代码行数:52,代码来源:PluginADPlay.java

示例11: showADImageWhenLoaded

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 全屏广告获取成功 去显�?
 */
private void showADImageWhenLoaded() {
	if (null != mADClickURL && TextUtils.getTrimmedLength(mADClickURL) > 0) {
		adImageView.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Logger.e("PlayFlow", "点击:" + mADClickURL);
				if (isOnClick) {
					return;
				}
				AdvInfo advInfo = getAdvInfo();
				// 用户点击跳转发送CUM
				DisposableStatsUtils.disposeCUM(advInfo);
				isOnClick = true;
				if (mADClickURL.endsWith(".apk")
						&& IMediaPlayerDelegate.mIDownloadApk != null
						&& mediaPlayerDelegate != null) {
					if (!Util.isWifi()) {
						creatSelectDownloadDialog(mActivity);
						return;
					}
					dismissImageAD();
					mediaPlayerDelegate.pluginManager.onLoading();
					mediaPlayerDelegate.startPlayAfterImageAD();
				} else if (mediaPlayerDelegate != null) {
					dismissImageAD();
					mediaPlayerDelegate.pluginManager.onLoaded();
				}
				new AdvClickProcessor().processAdvClick(mActivity,
						mADClickURL, mAdForward);
			}
		});
	} else {
		adImageView.setOnClickListener(null);
	}
	if (StaticsUtil.PLAY_TYPE_LOCAL.equals(mediaPlayerDelegate.videoInfo
			.getPlayType())
			&& mediaPlayerDelegate != null
			&& mediaPlayerDelegate.pluginManager != null) {
		mediaPlayerDelegate.pluginManager.onVideoInfoGetted();
		mediaPlayerDelegate.pluginManager.onChangeVideo();
	}
	if (mActivity.isFinishing()) {
		disposeAdLoss(URLContainer.AD_LOSS_STEP3);
		return;
	}
	if (Profile.PLANTFORM == Plantform.YOUKU && isLand()) {
		// youku客户端播放器不再挤压,横屏view尺寸需要重新初始化
		mActivity.updatePlugin(PLUGIN_SHOW_IMAGE_AD);
	}
	if (UIUtils.hasKitKat()) {
		mActivity.setPluginHolderPaddingZero();
	}
	mActivity.isImageADShowing = true;
	Track.onImageAdStart();
	setVisible(true);
	setVisibility(View.VISIBLE);
	mHandler.postDelayed(new Runnable() {
		@Override
		public void run() {
			startTimer();
		}
	}, 400);
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:68,代码来源:PluginImageAD.java

示例12: dismissImageAD

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
/**
 * 不显示全屏广告蒙�?
 */
public void dismissImageAD() {
	destroyInmobiAd();
	if (containerView.getVisibility() == View.VISIBLE) {
		mActivity.updatePlugin(PLUGIN_SHOW_NOT_SET);
		mActivity.runOnUiThread(new Runnable() {

			@Override
			public void run() {
				containerView.setVisibility(View.INVISIBLE);
			}
		});
		Track.onImageAdEnd();
		if (mTimer != null) {
			mTimer.cancel();
			mTimer = null;
		}
		if (mAdWeb != null) {
			mWebContainer.removeAllViews();
			mAdWeb.destroy();
			mAdWeb = null;
		}
		if (mAdType == AdVender.YOUKU || mAdType == AdVender.YOUKU_HTML) {
			AdvInfo advInfo = getAdvInfo();
			DisposableStatsUtils.disposeSUE(advInfo);
		}
	}

	if (mPunchboxAd != null) {
		mPunchboxAd.destroy();
		mPunchboxContainer.removeAllViews();
		mPunchboxAd = null;
	}
	if (mMobisageAd != null) {
		mMobisageAd.destoryAdView();
		mMobisageContainer.removeAllViews();
		mMobisageAd = null;
	}
	if (mDomobAd != null) {
		mDomobAd.closePreRollAd();
		mDomobContainer.removeAllViews();
		mDomobAd = null;
	}
	mWebViewClient = null;
	mSavedCount = 0;
	mActivity.isImageADShowing = false;
	mIsStartToShow = false;
	mAdvInfo = null;
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:52,代码来源:PluginImageAD.java

示例13: release

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
public void release() {
	if (mActivity.isImageADShowing) {
		Track.onImageAdEnd();
		if (mAdType == AdVender.YOUKU || mAdType == AdVender.YOUKU_HTML) {
			AdvInfo advInfo = getAdvInfo();
			DisposableStatsUtils.disposeSUE(advInfo);
		}
	}
	if (mIMAdInterstitial != null) {
		mIMAdInterstitial.destroy();
		mIMAdInterstitial = null;
		mIMAdInListener = null;
	}
	if (mMobisageAd != null) {
		mMobisageAd.destoryAdView();
		mMobisageContainer.removeAllViews();
		mMobisageAd = null;
	}
	if (mDomobAd != null) {
		mDomobAd.closePreRollAd();
		mDomobContainer.removeAllViews();
		mDomobAd = null;
	}
	if (mPunchboxAd != null) {
		mPunchboxAd.destroy();
		mPunchboxContainer.removeAllViews();
		mPunchboxAd = null;
	}
	if (mTimer != null) {
		mTimer.cancel();
		mTimer = null;
	}
	if (mAdWeb != null) {
		mWebContainer.removeAllViews();
		mAdWeb.destroy();
		mAdWeb = null;
	}
	mSavedCount = 0;
	mActivity.isImageADShowing = false;
	mIsStartToShow = false;
	mAdvInfo = null;
	isInmobiSDKInit = false;
	isMobiSageSDKInit = false;
	releasePunchboxSdk();
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:46,代码来源:PluginImageAD.java

示例14: startInmobiAd

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
private void startInmobiAd() {
	if (mediaPlayerDelegate != null && mediaPlayerDelegate.isFullScreen) {
		if (mActivity == null || mActivity.isFinishing()) {
			disposeAdLoss(URLContainer.AD_LOSS_STEP3);
			return;
		}
		if (!isInmobiSDKInit) {
			InMobi.initialize(mActivity, AdVender.Inmobi_ID);
			isInmobiSDKInit = true;
		}
		mIMAdInterstitial = new IMInterstitial(mActivity,
				AdVender.Inmobi_Interstitial_ID);

		if (mIMAdInListener == null) {
			mIMAdInListener = new InmobiInterstListener();
		}
		mIMAdInListener.isGetFeedBack = false;
		mIMAdInterstitial.setIMInterstitialListener(mIMAdInListener);
		Logger.d("PlayFlow", "start to show inmobi ad");
		AdvInfo advInfo = getAdvInfo();
		DisposableStatsUtils.disposeSUS(advInfo);
		mIMAdInterstitial.loadInterstitial();

		mHandler.postDelayed(new Runnable() {

			@Override
			public void run() {
				if (mIsStartToShow && mIMAdInListener != null
						&& !mIMAdInListener.isGetFeedBack) {
					dismissImageAD();
					if (mediaPlayerDelegate != null
							&& !mediaPlayerDelegate.isPause) {
						mediaPlayerDelegate.startPlayAfterImageAD();
					}
				}
			}
		}, TIME_OUT);

	} else {
		dismissImageAD();
		if (mediaPlayerDelegate != null) {
			mediaPlayerDelegate.startPlayAfterImageAD();
		}
	}
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:46,代码来源:PluginImageAD.java

示例15: getPauseAd

import com.youku.player.goplay.AdvInfo; //导入依赖的package包/类
private void getPauseAd(String atm,boolean isOfflineAd){
	IGetVideoAdvService getVideoAdvService = com.youku.player.util.RemoteInterface.getVideoAdvService;
	if (!TextUtils.isEmpty(mMediaPlayerDelegate.videoInfo.getVid())) {
		getVideoAdvService.getVideoAdv(atm,false,
				mMediaPlayerDelegate.videoInfo.getVid(), mActivity,
				mMediaPlayerDelegate.isFullScreen, isOfflineAd,
				new IGetAdvCallBack() {

					@Override
					public void onSuccess(VideoAdvInfo videoAdvInfo) {
						pauseADVideoAdvInfo = videoAdvInfo;
						if (videoAdvInfo != null) {
							for (AdvInfo advInfo : videoAdvInfo.VAL) {
								if ("2".equals(advInfo.VT)) {
									DisposableStatsUtils
											.disposePausedVC(advInfo);
									videoAdvInfo.VAL.remove(advInfo);
								}
							}
						}
						if (pauseADVideoAdvInfo != null) {
							int size = pauseADVideoAdvInfo.VAL.size();
							if (size == 0) {
								mADURL = "";
								Logger.d("PlayFlow", "暂停广告VC:为空");
							}
							for (int i = 0; i < size; i++) {
								mADURL = pauseADVideoAdvInfo.VAL.get(i).RS;
								mADClickURL = pauseADVideoAdvInfo.VAL
										.get(i).CU;
								mAdForward = pauseADVideoAdvInfo.VAL.get(i).CUF;
								mAdType = pauseADVideoAdvInfo.VAL.get(i).SDKID;
								if (mAdType == AdVender.YOUKU
										&& mADURL != null
										&& !mADURL.equals("")) {
									DisposableStatsUtils
											.disposePausedSUS(pauseADVideoAdvInfo.VAL
													.get(i));
									DisposableStatsUtils
											.disposePausedVC(pauseADVideoAdvInfo.VAL
													.get(i));
								}
							}
						}
						// 用于测试 假设每次都能取到图片
						// mADURL =
						// "http://g4.ykimg.com/11270F1F46509C3F5716DA0123193CA669B69C-09D5-BA6A-22B6-2EE5F6CD4A55";
						Logger.d("PlayFlow", "暂停广告地址 imageURL--->" + mADURL);
						if (mAdType == AdVender.YOUKU
								&& (mADURL == null || mADURL.equals("")))
							return;
						showADImage();
					}

					@Override
					public void onFailed(GoplayException e) {
						disposeAdLoss(URLContainer.AD_LOSS_STEP2);
					}
				});
	}
} 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:62,代码来源:PluginFullScreenPauseAD.java

本文标签属性:

示例:示例志愿表

代码:代码生成器

java:javascript18岁

AdvInfo:AdvInfo

上一篇:窨井的简介(窨井是什么?)
下一篇:C# Model.createParameter方法代码示例

为您推荐