Package-level declarations
Types
An abstract implementation for MediaManager
An abstract ColdStateFlowRepo for managing PlaybackState
Default implementation of BaseMediaManager
Default implementation of BaseMediaManager
Default implementation of BaseMediaManager
Default implementation of BaseMediaManager
Default implementation of BaseMediaManager for the JS family, backed by an HTMLMediaElement.
A default implementation of MediaPlayer
Default implementation of PlayableMedia
Default implementation of PlayableMedia
Default implementation of PlayableMedia
Default implementation of PlayableMedia
Default implementation of PlayableMedia for the JS family, reading live from the player's HTMLMediaElement (held in the registry under id).
A default implementation of SoundPlayer
A default implementation of SoundPlayer
A default implementation of SoundPlayer
A default implementation of SoundPlayer
A default implementation of SoundPlayer for the JS family, backed by an HTMLAudioElement.
A MediaSource.Local referencing a bundled/relative file by its URL.
Manages media playback
Plays a MediaSource
A SoundPlayer specific error
The source at which PlayableMedia can be found
The source at which PlayableMedia can be found
The source at which PlayableMedia can be found
The source at which PlayableMedia can be found. On the web a media source is always a URL loaded by an HTMLMediaElement.
A surface on which the video component of a PlayableMedia can be rendered. Exposes a SurfaceHolder to bind to
A surface on which the video component of a PlayableMedia can be rendered. Shared across iOS + macOS. A view constructs a MediaSurface (e.g. from its AVPlayerLayer) and binds it to a MediaSurfaceBinder.
A surface on which the video component of a PlayableMedia can be rendered
A surface on which the video component of a PlayableMedia can be rendered. On the web this is the id of the DOM element the player's <video> element should be appended to.
A bindable handle for a MediaSurface. A view binds the surface it hosts via bind (and detaches it via unbind); the MediaManager — obtained from a MediaPlayer.surfaceBinder — observes the bound surface and renders video onto it. The view drives binding directly, so no host lifecycle awareness is involved.
Controller for rendering a PlayableMedia to a MediaSurface
A media that can be played by a MediaPlayer
An Exception that may occur during playback
A KalugaState of playback
A StateRepo/MutableStateFlow of PlaybackState
A BasePlaybackStateRepo managed using a MediaManager
The screen resolution of a video
Plays a sound from MediaSource Meant for short low latency audio
Info of the track of a PlayableMedia
A MediaSource referenced by an (absolute or relative) URL.
Controller for adjusting the volume
Properties
A Flow that provides the Duration of the current PlayableMedia of a MediaPlayer. If no PlayableMedia is loaded this will result in Duration.ZERO.
If true this PlayableMedia has a video component
Functions
Binds this SurfaceHolder to binder. See SurfaceView.bind.
Binds this SurfaceView to binder, so a MediaPlayer using that binder renders its video here. The view's MediaSurface is bound while its surface exists and unbound when it is destroyed (and immediately if the surface is already available). Removing the returned SurfaceHolder.Callback from the holder (and calling MediaSurfaceBinder.unbind) stops the binding.
Binds this AVPlayerLayer to binder so a MediaPlayer using that binder renders its video here. Call MediaSurfaceBinder.unbind to detach. Simplifies non-Compose video layout, mirroring SurfaceView.bind on Android.
Binds this AVPlayerView to binder so a MediaPlayer using that binder renders its video here (the view handles its own layout). Call MediaSurfaceBinder.unbind to detach. This is the macOS path for video outside the Compose tree (CMP-macOS-Native has no AppKit interop).
Binds this AVPlayerViewController to binder so a MediaPlayer using that binder renders its video here (the controller handles its own layout). Call MediaSurfaceBinder.unbind to detach.
Attempts to create a MediaSource from a file name
Attempts to create a MediaSource from a file name
Attempts to create a MediaSource from a file name
Attempts to create a MediaSource from a file name
Attempts to create a MediaSource from a url string
Attempts to create a MediaSource from a url string
Attempts to create a MediaSource from a url string
Attempts to create a MediaSource from a url string
macOS-only convenience constructor binding an AVPlayer to an AVPlayerView.
Convenience constructor binding an AVPlayer to an AVPlayerViewController.
Forces the MediaPlayer to start playback and suspends until playback has completed
A Flow that polls the playtime of the current PlayableMedia of a MediaPlayer as a Duration. If no PlayableMedia is loaded this will result in Duration.ZERO.