Class VideoCreativeProtocol
- java.lang.Object
-
- org.prebid.mobile.rendering.models.AbstractCreative
-
- org.prebid.mobile.rendering.video.VideoCreativeProtocol
-
- All Implemented Interfaces:
VASTInterface
- Direct Known Subclasses:
VideoCreative
public abstract class VideoCreativeProtocol extends AbstractCreative implements VASTInterface
-
-
Field Summary
-
Fields inherited from class org.prebid.mobile.rendering.models.AbstractCreative
contextReference, creativeVisibilityTracker, interstitialManager, weakOmAdSessionManager
-
-
Constructor Summary
Constructors Constructor Description VideoCreativeProtocol(android.content.Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()the user clicked the close button on the creative.voidcloseLinear()the user clicked the close button on the creative.voidcollapse()the user activated a control to reduce the creative to its original dimensions.voiddisplay()Specific creative display.voidexitFullScreen()the user activated the control to reduce video player size to original dimensions.voidexpand()Per IAB: the user activated a control to expand the creative.voidfullScreen()Per IAB: the user activated a control to extend the video player to the edges of the viewer’s screen.voidmute()Mute creativevoidonWindowFocusChanged(boolean hasFocus)the user made a window focus change, such as leaving the activity, pressing back, invoking Recents, or returning from one of these states back to the video player.voidorientationChanged(int orientation)the user made an orientation change by rotating the device.voidpause()Pause creative executionvoidresume()Resume creative executionvoidrewind()the user activated the rewind control to access a previous point in the creative timeline.voidskip()the user activated a skip control to skip the creative, which is a different control than the one used to close the creative.voidtouch()the user simply touched the video player in a non-specific region of the player (touched an empty area of the video, not a widget or button).voidunmute()UnMute creative-
Methods inherited from class org.prebid.mobile.rendering.models.AbstractCreative
addOmFriendlyObstruction, changeVisibilityTrackerState, createOmAdSession, destroy, getCreativeModel, getCreativeView, getCreativeViewListener, getMediaDuration, getResolutionListener, getVideoSkipOffset, handleAdWindowFocus, handleAdWindowNoFocus, isBuiltInVideo, isDisplay, isEndCard, isInterstitialClosed, isPlaying, isResolved, isVideo, load, setCreativeView, setCreativeViewListener, setResolutionListener, startOmSession, startViewabilityTracker, trackAdLoaded, trackVideoEvent, trackVideoStateChange, updateAdView
-
-
-
-
Constructor Detail
-
VideoCreativeProtocol
public VideoCreativeProtocol(android.content.Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager) throws AdException- Throws:
AdException
-
-
Method Detail
-
display
public void display()
Description copied from class:AbstractCreativeSpecific creative display.- Specified by:
displayin classAbstractCreative
-
resume
public void resume()
Description copied from class:AbstractCreativeResume creative execution- Specified by:
resumein interfaceVASTInterface- Overrides:
resumein classAbstractCreative
-
pause
public void pause()
Description copied from class:AbstractCreativePause creative execution- Specified by:
pausein interfaceVASTInterface- Overrides:
pausein classAbstractCreative
-
expand
public void expand()
Description copied from interface:VASTInterfacePer IAB: the user activated a control to expand the creative.- Specified by:
expandin interfaceVASTInterface
-
fullScreen
public void fullScreen()
Description copied from interface:VASTInterfacePer IAB: the user activated a control to extend the video player to the edges of the viewer’s screen.- Specified by:
fullScreenin interfaceVASTInterface
-
collapse
public void collapse()
Description copied from interface:VASTInterfacethe user activated a control to reduce the creative to its original dimensions.- Specified by:
collapsein interfaceVASTInterface
-
exitFullScreen
public void exitFullScreen()
Description copied from interface:VASTInterfacethe user activated the control to reduce video player size to original dimensions.- Specified by:
exitFullScreenin interfaceVASTInterface
-
mute
public void mute()
Description copied from class:AbstractCreativeMute creative- Specified by:
mutein interfaceVASTInterface- Overrides:
mutein classAbstractCreative
-
unmute
public void unmute()
Description copied from class:AbstractCreativeUnMute creative- Specified by:
unmutein interfaceVASTInterface- Overrides:
unmutein classAbstractCreative
-
close
public void close()
Description copied from interface:VASTInterfacethe user clicked the close button on the creative.- Specified by:
closein interfaceVASTInterface
-
closeLinear
public void closeLinear()
Description copied from interface:VASTInterfacethe user clicked the close button on the creative. The name of this event distinguishes it from the existing “close” event described in the 2008 IAB Digital Video In-Stream Ad Metrics Definitions, which defines the “close” metric as applying to non-linear ads only. The “closeLinear” event extends the “close” event for use in Linear creative.- Specified by:
closeLinearin interfaceVASTInterface
-
skip
public void skip()
Description copied from interface:VASTInterfacethe user activated a skip control to skip the creative, which is a different control than the one used to close the creative.- Specified by:
skipin interfaceVASTInterface
-
rewind
public void rewind()
Description copied from interface:VASTInterfacethe user activated the rewind control to access a previous point in the creative timeline.- Specified by:
rewindin interfaceVASTInterface
-
touch
public void touch()
Description copied from interface:VASTInterfacethe user simply touched the video player in a non-specific region of the player (touched an empty area of the video, not a widget or button).- Specified by:
touchin interfaceVASTInterface
-
orientationChanged
public void orientationChanged(int orientation)
Description copied from interface:VASTInterfacethe user made an orientation change by rotating the device. The orientation of Configuration.ORIENTATION_LANDSCAPE or Configuration.ORIENTATION_PORTRAIT is passed in.- Specified by:
orientationChangedin interfaceVASTInterface
-
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasFocus)
Description copied from interface:VASTInterfacethe user made a window focus change, such as leaving the activity, pressing back, invoking Recents, or returning from one of these states back to the video player. This will allow for internal threads to pause and resume correctly.- Specified by:
onWindowFocusChangedin interfaceVASTInterface
-
-