VideoStreamPlayer.VideoStreamPlayerCallback

public interface VideoStreamPlayer.VideoStreamPlayerCallback


Callbacks that the player must fire.

Summary

Public methods

abstract void

Fire this callback when all content has finished playing.

abstract void

Fire this callback when the video is paused.

abstract void

Fire this callback when the video is resumed.

abstract void

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

abstract void
onVolumeChanged(int percentage)

Fire this callback when the video player volume changes.

Public methods

onContentComplete

abstract void onContentComplete()

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

abstract void onPause()

Fire this callback when the video is paused.

onResume

abstract void onResume()

Fire this callback when the video is resumed.

onUserTextReceived

abstract void onUserTextReceived(String userText)

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

abstract void onVolumeChanged(int percentage)

Fire this callback when the video player volume changes.