-
- All Implemented Interfaces:
@MainThread() public interface VideoPlayer
This interface is used to control content playback while playing ads
-
-
Method Summary
Modifier and Type Method Description abstract floatgetVolume()Gets current content video volume with 0 being silence and 1 being maximum volume level abstract longgetVideoPosition()Gets current content video position abstract longgetVideoDuration()Gets content video duration abstract voidprepareVideo()Prepares content video abstract voidpauseVideo()Pauses playing content video abstract voidresumeVideo()Resumes playing content video abstract voidsetVideoPlayerListener(@Nullable() VideoPlayerListener listener)Sets listener for content player events. -
-
Method Detail
-
getVolume
abstract float getVolume()
Gets current content video volume with 0 being silence and 1 being maximum volume level
-
getVideoPosition
abstract long getVideoPosition()
Gets current content video position
-
getVideoDuration
abstract long getVideoDuration()
Gets content video duration
-
prepareVideo
abstract void prepareVideo()
Prepares content video
-
pauseVideo
abstract void pauseVideo()
Pauses playing content video
-
resumeVideo
abstract void resumeVideo()
Resumes playing content video
-
setVideoPlayerListener
abstract void setVideoPlayerListener(@Nullable() VideoPlayerListener listener)
Sets listener for content player events. For each event of the content video player, the corresponding callback must be called on this object.
- Parameters:
listener- Listener for content player events
-
-
-
-