PlayTask

open class PlayTask : Runnable

Thread helper for video playback.

The PlayerFeedback callbacks will execute on the thread that creates the object, assuming that thread has a looper. Otherwise, they will execute on the main looper.

Constructors

Link copied to clipboard
constructor(player: MoviePlayer, feedback: MoviePlayer.PlayerFeedback)
Prepares new PlayTask.

Functions

Link copied to clipboard
open fun execute()
Creates a new thread, and starts execution of the player.
Link copied to clipboard
open fun requestStop()
Requests that the player stop.
Link copied to clipboard
open fun run()
Link copied to clipboard
open fun setLoopMode(loopMode: Boolean)
Sets the loop mode.
Link copied to clipboard
open fun waitForStop()
Wait for the player to stop.