Api Video Player Controller
Creates a new controller with an ApiVideoExoPlayerView.
Parameters
the application context
initial video options
initial autoplay: true to play the video immediately, false otherwise
the ApiVideoPlayerController.Listener to listen to player events
the player view
the looper where call to the player are executed. By default, it is the current looper or the main looper.
Creates a new controller with a media3
PlayerView.
Parameters
the application context
initial video options
initial autoplay: true to play the video immediately, false otherwise
the ApiVideoPlayerController.Listener to listen to player events
the PlayerView to use to display the player
the looper where call to the player are executed. By default, it is the current looper or the main looper.
Creates a new controller with a SurfaceView.
Parameters
the application context
initial video options
initial autoplay: true to play the video immediately, false otherwise
the ApiVideoPlayerController.Listener to listen to player events
the SurfaceView to use to display the video
the looper where call to the player are executed. By default, it is the current looper or the main looper.
Creates a new controller with a Surface.
Parameters
the application context
initial video options
initial autoplay: true to play the video immediately, false otherwise
the ApiVideoPlayerController.Listener to listen to player events
the Surface to use to display the video
the looper where call to the player are executed. By default, it is the current looper or the main looper.
Creates a new controller without a view.
Parameters
the application context
initial video options
initial autoplay: true to play the video immediately, false otherwise
a ApiVideoPlayerController.Listener to listen to player events
the looper where call to the player are executed. By default, it is the current looper or the main looper.