Most visited

Recently visited

VideoTexture.PlaybackListener

public static interface VideoTexture.PlaybackListener

com.viro.core.VideoTexture.PlaybackListener


Callback interface for responding to video lifecycle and playback events.

Summary

Public methods

abstract void onReady(VideoTexture video)

Invoked when the video is loaded and ready for playback.

abstract void onVideoBufferEnd(VideoTexture video)

Invoked when the video ends buffering.

abstract void onVideoBufferStart(VideoTexture video)

Invoked when the video begins buffering.

abstract void onVideoFailed(String error)

Invoked when the video has failed to load.

abstract void onVideoFinish(VideoTexture video)

Invoked when the video finishes.

abstract void onVideoUpdatedTime(VideoTexture video, float seconds, float totalDuration)

Invoked continually as the video updates its position during playback.

Public methods

onReady

void onReady (VideoTexture video)

Invoked when the video is loaded and ready for playback.

Parameters
video VideoTexture: The VideoTexture displaying the video.

onVideoBufferEnd

void onVideoBufferEnd (VideoTexture video)

Invoked when the video ends buffering.

Parameters
video VideoTexture: The VideoTexture displaying the video.

onVideoBufferStart

void onVideoBufferStart (VideoTexture video)

Invoked when the video begins buffering.

Parameters
video VideoTexture: The VideoTexture displaying the video.

onVideoFailed

void onVideoFailed (String error)

Invoked when the video has failed to load.

Parameters
error String: The error message.

onVideoFinish

void onVideoFinish (VideoTexture video)

Invoked when the video finishes. If the video is looping, this will be invoked each time we reach the end of the video.

Parameters
video VideoTexture: The VideoTexture displaying the video.

onVideoUpdatedTime

void onVideoUpdatedTime (VideoTexture video, 
                float seconds, 
                float totalDuration)

Invoked continually as the video updates its position during playback.

Parameters
video VideoTexture: The VideoTexture displaying the video.

seconds float: The current playback position, in seconds.

totalDuration float: The total duration of the video, in seconds.

Hooray!