Class ExoPlayerView
PlayerView
org.prebid.mobile.rendering.video.ExoPlayerView
- All Implemented Interfaces:
VideoPlayerView
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExoPlayerView(android.content.Context context, VideoCreativeViewListener videoCreativeViewListener) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidlongintfloatbooleanvoidmute()voidpause()voidresume()voidsetVastVideoDuration(long duration) voidsetVideoUri(android.net.Uri uri) voidstart(float initialVolume) voidstop()voidunMute()
-
Field Details
-
DEFAULT_INITIAL_VIDEO_VOLUME
public static final float DEFAULT_INITIAL_VIDEO_VOLUME- See Also:
-
-
Constructor Details
-
ExoPlayerView
public ExoPlayerView(android.content.Context context, VideoCreativeViewListener videoCreativeViewListener)
-
-
Method Details
-
mute
public void mute()- Specified by:
mutein interfaceVideoPlayerView
-
isPlaying
public boolean isPlaying()- Specified by:
isPlayingin interfaceVideoPlayerView
-
unMute
public void unMute()- Specified by:
unMutein interfaceVideoPlayerView
-
start
public void start(float initialVolume) - Specified by:
startin interfaceVideoPlayerView
-
setVastVideoDuration
public void setVastVideoDuration(long duration) - Specified by:
setVastVideoDurationin interfaceVideoPlayerView
-
getCurrentPosition
public long getCurrentPosition()- Specified by:
getCurrentPositionin interfaceVideoPlayerView
-
setVideoUri
public void setVideoUri(android.net.Uri uri) - Specified by:
setVideoUriin interfaceVideoPlayerView
-
getDuration
public int getDuration()- Specified by:
getDurationin interfaceVideoPlayerView
-
getVolume
public float getVolume()- Specified by:
getVolumein interfaceVideoPlayerView
-
resume
public void resume()- Specified by:
resumein interfaceVideoPlayerView
-
pause
public void pause()- Specified by:
pausein interfaceVideoPlayerView
-
forceStop
public void forceStop()- Specified by:
forceStopin interfaceVideoPlayerView
-
destroy
public void destroy()- Specified by:
destroyin interfaceVideoPlayerView
-
stop
public void stop()- Specified by:
stopin interfaceVideoPlayerView
-