Package-level declarations
Types
A MediaSurfaceProvider that provides a SurfaceHolder from a given Activity
A BaseMediaSurfaceProvider that takes an AVPlayerLayer directly.
A BaseMediaSurfaceProvider that takes an AVPlayerViewController directly.
A BaseMediaSurfaceProvider that takes an AVPlayerView directly.
An abstract implementation for MediaManager
A MediaSurfaceProvider that grabs a MediaSurface from a given Value. Shared across iOS + macOS — UIKit/NSView-specific subclasses live in iosMain/macosMain.
An abstract ColdStateFlowRepo for managing PlaybackState
A BaseMediaSurfaceProvider that takes a raw MediaSurfaceBinding.
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 — the iOS-only AVPlayerViewController and macOS-only AVPlayerView factory constructors live in iosMain/macosMain respectively, alongside the platform-specific MediaSurfaceProvider implementations.
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.
Controller for rendering a PlayableMedia to a MediaSurface
A LifecycleSubscribable that provides a MediaSurface
A BaseMediaSurfaceProvider that attempts to grab the MediaSurface from an NSView. Requires the view's backing layer to be an AVPlayerLayer (i.e. wantsLayer = true and a Core-Animation layer-hosted view).
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 BaseMediaSurfaceProvider that attempts to grab the MediaSurface from a UIView. Requires UIView.layer to be an AVPlayerLayer.
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
Creates an ActivityMediaSurfaceProvider
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.