Interface VideoPlayer
-
- 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 Unit
prepareVideo()
Prepares content video abstract Unit
pauseVideo()
Pauses playing content video abstract Unit
resumeVideo()
Resumes playing content video abstract Unit
setVideoPlayerListener(VideoPlayerListener listener)
Sets listener for content player events. abstract Float
getVolume()
Gets current content video volume with 0 being silence and 1 being maximum volume level abstract Long
getVideoPosition()
Gets current content video position abstract Long
getVideoDuration()
Gets content video duration -
-
Method Detail
-
prepareVideo
abstract Unit prepareVideo()
Prepares content video
-
pauseVideo
abstract Unit pauseVideo()
Pauses playing content video
-
resumeVideo
abstract Unit resumeVideo()
Resumes playing content video
-
setVideoPlayerListener
abstract Unit setVideoPlayerListener(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
-
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
-
-
-
-