public class InterstitialVideoViewProtocol extends InterstitialImageViewProtocol
| Modifier and Type | Class and Description |
|---|---|
class |
InterstitialVideoViewProtocol.InterstitialVideoView |
static interface |
InterstitialVideoViewProtocol.State |
InterstitialImageViewProtocol.InterstitialImageViewCBViewProtocol.CBViewBase, CBViewProtocol.ImpressionAsset| Modifier and Type | Field and Description |
|---|---|
protected int |
closeButtonDelayInSeconds |
protected boolean |
fullscreen |
protected boolean |
isProgressEnabled |
protected int |
playCount |
protected MemoryBitmap |
postVideoControlsButtonImage |
protected MemoryBitmap |
postVideoControlsIconImage |
protected boolean |
postVideoNotificationEnabled |
protected MemoryBitmap |
postVideoNotificationIconImage |
protected boolean |
postVideoToasterEnabled |
protected boolean |
preroll_popup_fullscreen |
protected MemoryBitmap |
replayImageLandscape |
protected MemoryBitmap |
replayImagePortrait |
protected int |
state |
protected boolean |
toasterVisible |
protected MemoryBitmap |
videoAdControlClickImage |
protected MemoryBitmap |
videoConfirmationButtonImage |
protected boolean |
videoConfirmationEnabled |
protected MemoryBitmap |
videoConfirmationIcon |
protected boolean |
videoControlsTogglable |
protected int |
videoDuration |
protected java.lang.String |
videoId |
protected java.lang.String |
videoPath |
protected int |
videoPosition |
globalFrameScaleanimationRunnables, assets, impression, orientation, supportsLandscape, supportsPortrait, uiHandler, uiManager, viewOnPaused| Constructor and Description |
|---|
InterstitialVideoViewProtocol(CBImpression impression,
FileCache fileCache,
Handler uiHandler,
CBUIManager uiManager) |
| Modifier and Type | Method and Description |
|---|---|
protected CBViewProtocol.CBViewBase |
createViewObject(Context context)
create the actual view object
|
void |
destroy()
make the view and its data ready for GC.
|
protected void |
display()
inform impression that display has displayed successfully
|
float |
getVideoDuration() |
float |
getVideoPostion() |
InterstitialVideoViewProtocol.InterstitialVideoView |
getView()
return the view associated with this view protocol
|
boolean |
isInterstitialVideo() |
boolean |
isMediaError() |
boolean |
isVideoPlaying() |
boolean |
isVideoShowSent() |
protected boolean |
needsFullscreenLayout() |
boolean |
onBackPressed()
return true if we should swallow the back button event
|
void |
onPause()
corresponds to host activity's onPause()
|
void |
onResume()
corresponds to host activity's onResume()
|
void |
onVideoError() |
boolean |
prepare(JSONObject response)
prepare this view to load the given server JSON response
|
protected void |
sendShowImpression() |
void |
setVideoShowSent(boolean sent) |
getImpression, getOffset, setImageSizeclick, clickExchange, close, destroyView, fadeView, fail, getAssets, getOrientation, hexToColor, isBigScreen, runDisplayTask, setReadyToDisplay, showView, tryCreatingViewOnActivity, tryCreatingViewOnHostViewprotected int state
protected int playCount
protected java.lang.String videoPath
protected java.lang.String videoId
protected int videoPosition
protected int videoDuration
protected boolean videoControlsTogglable
protected boolean videoConfirmationEnabled
protected boolean postVideoToasterEnabled
protected boolean postVideoNotificationEnabled
protected boolean toasterVisible
protected int closeButtonDelayInSeconds
protected MemoryBitmap replayImageLandscape
protected MemoryBitmap replayImagePortrait
protected MemoryBitmap videoConfirmationButtonImage
protected MemoryBitmap videoConfirmationIcon
protected MemoryBitmap videoAdControlClickImage
protected MemoryBitmap postVideoControlsIconImage
protected MemoryBitmap postVideoControlsButtonImage
protected MemoryBitmap postVideoNotificationIconImage
protected boolean isProgressEnabled
protected boolean fullscreen
protected boolean preroll_popup_fullscreen
public InterstitialVideoViewProtocol(CBImpression impression, FileCache fileCache, Handler uiHandler, CBUIManager uiManager)
public boolean isInterstitialVideo()
protected CBViewProtocol.CBViewBase createViewObject(Context context)
CBViewProtocolcreateViewObject in class InterstitialImageViewProtocolpublic boolean onBackPressed()
CBViewProtocolonBackPressed in class CBViewProtocolpublic void onResume()
CBViewProtocolonResume in class CBViewProtocolpublic void onPause()
CBViewProtocolonPause in class CBViewProtocolpublic boolean prepare(JSONObject response)
CBViewProtocolprepare in class InterstitialImageViewProtocolprotected void display()
CBViewProtocoldisplay in class CBViewProtocolpublic void destroy()
CBViewProtocolCBViewProtocol.destroyView()destroy in class InterstitialImageViewProtocolpublic boolean isVideoPlaying()
public InterstitialVideoViewProtocol.InterstitialVideoView getView()
CBViewProtocolgetView in class CBViewProtocolprotected void sendShowImpression()
protected boolean needsFullscreenLayout()
public boolean isVideoShowSent()
public void setVideoShowSent(boolean sent)
public boolean isMediaError()
public void onVideoError()
public float getVideoDuration()
getVideoDuration in class CBViewProtocolpublic float getVideoPostion()
getVideoPostion in class CBViewProtocol