Class ExoPlayerView
- java.lang.Object
-
- PlayerView
-
- org.prebid.mobile.rendering.video.ExoPlayerView
-
- All Implemented Interfaces:
VideoPlayerView
public class ExoPlayerView extends PlayerView implements VideoPlayerView
-
-
Field Summary
Fields Modifier and Type Field Description static floatDEFAULT_INITIAL_VIDEO_VOLUME
-
Constructor Summary
Constructors Constructor Description ExoPlayerView(android.content.Context context, VideoCreativeViewListener videoCreativeViewListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidforceStop()longgetCurrentPosition()intgetDuration()floatgetVolume()booleanisPlaying()voidmute()voidpause()voidresume()voidsetVastVideoDuration(long duration)voidsetVideoUri(android.net.Uri uri)voidstart(float initialVolume)voidstop()voidunMute()
-
-
-
Field Detail
-
DEFAULT_INITIAL_VIDEO_VOLUME
public static final float DEFAULT_INITIAL_VIDEO_VOLUME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExoPlayerView
public ExoPlayerView(android.content.Context context, VideoCreativeViewListener videoCreativeViewListener)
-
-
Method Detail
-
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
-
-