VideoPlayerPlugin

Interface defining the contract for a video player plugin. Documentation:

  • This interface VideoPlayerPlugin defines the contract for a video player plugin.

  • It includes properties for the name and version of the plugin.

  • The interface provides methods for setup, rendering player view, playback control (play and pause), and removal of the player instance.

  • Implementations of this interface should provide implementations for each method to define the behavior of the video player plugin.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Name of the video player plugin.

Link copied to clipboard
abstract val version: String

Version of the video player plugin.

Functions

Link copied to clipboard
abstract fun pause()

Pauses playback of the video.

Link copied to clipboard
abstract fun play()

Starts playback of the video.

Link copied to clipboard
abstract fun PlayerView(hlsUrl: String)

Renders the player view for the video player plugin.

Link copied to clipboard
abstract fun removePlayer()

Removes the player instance and cleans up resources.

Link copied to clipboard
abstract fun setup()

Performs setup operations for the video player plugin.