VideoStreamPlayer.VideoStreamPlayerCallback

interface VideoStreamPlayer.VideoStreamPlayerCallback


Callbacks that the player must fire.

Summary

Public functions

Unit

Fire this callback when all content has finished playing.

Unit

Fire this callback when the video is paused.

Unit

Fire this callback when the video is resumed.

Unit

Fire this callback when a timed metadata ID3 event corresponding to user-defined text is received.

Unit
onVolumeChanged(percentage: Int)

Fire this callback when the video player volume changes.

Public functions

onContentComplete

fun onContentComplete(): Unit

Fire this callback when all content has finished playing. This will allow the SDK to play post-roll ads, if any are loaded through ad rules.

onPause

fun onPause(): Unit

Fire this callback when the video is paused.

onResume

fun onResume(): Unit

Fire this callback when the video is resumed.

onUserTextReceived

fun onUserTextReceived(userText: String!): Unit

Fire this callback when a timed metadata ID3 event corresponding to user-defined text is received. To extract the user text, the metadata must be parsed, and the value associated with the TXXX key must be passed. For more information about user text events, see http://id3.org/id3v2.4.0-frames.

onVolumeChanged

fun onVolumeChanged(percentage: Int): Unit

Fire this callback when the video player volume changes.