Package-level declarations

Types

Link copied to clipboard
@UnstableApi
class AudioLevelProcessor : BaseAudioProcessor
Link copied to clipboard

Defines a platform-specific video player state interface, providing the essential properties and operations needed for video playback management.

Link copied to clipboard
@Stable
data class VideoMetadata(var title: String? = null, var artist: String? = null, var duration: Long? = null, var width: Int? = null, var height: Int? = null, var bitrate: Long? = null, var frameRate: Float? = null, var mimeType: String? = null, var audioChannels: Int? = null, var audioSampleRate: Int? = null)

Represents metadata information for a video file. All properties are nullable as metadata might not be available for all video sources.

Link copied to clipboard
sealed class VideoPlayerError

Represents different types of errors that can occur during video playback

Link copied to clipboard
@UnstableApi
@Stable
actual open class VideoPlayerState
@Stable
expect open class VideoPlayerState

Represents the state and controls for a video player. This class provides properties and methods to manage video playback, including play, pause, stop, seeking, and more. It maintains information about the playback state, such as whether the video is currently playing, volume levels, and playback position.

actual open class VideoPlayerState
@Stable
actual open class VideoPlayerState

Represents the state and behavior of a video player. This class provides properties and methods to control video playback, manage the playback state, and interact with platform-specific implementations.

@Stable
actual open class VideoPlayerState

Functions

Link copied to clipboard

Creates and manages an instance of VideoPlayerState within a composable function, ensuring proper disposal of the player state when the composable leaves the composition. This function is used to remember the video player state throughout the composition lifecycle.

Link copied to clipboard
fun setupVideoElement(video: HTMLVideoElement, playerState: VideoPlayerState, scope: CoroutineScope, enableAudioDetection: Boolean = true)

Configure video element: listeners, WebAudioAnalyzer, etc.

Link copied to clipboard
fun PlatformFile.toUriString(): String
Link copied to clipboard
@UnstableApi
@Composable
actual fun VideoPlayerSurface(playerState: VideoPlayerState, modifier: Modifier)
@Composable
expect fun VideoPlayerSurface(playerState: VideoPlayerState, modifier: Modifier)

Renders a video player surface that displays and controls video playback.

actual fun VideoPlayerSurface(playerState: VideoPlayerState, modifier: <Error class: unknown class>)
@Composable
actual fun VideoPlayerSurface(playerState: VideoPlayerState, modifier: Modifier)

Composable function for rendering a video player surface.

@Composable
actual fun VideoPlayerSurface(playerState: VideoPlayerState, modifier: Modifier)