BaseMediaSurfaceProvider

abstract class BaseMediaSurfaceProvider<Value>(initialValue: Value?) : MediaSurfaceProvider

A MediaSurfaceProvider that grabs a MediaSurface from a given Value. Shared across iOS + macOS — UIKit/NSView-specific subclasses live in iosMain/macosMain.

Parameters

initialValue

the initial Value, or null.

Type Parameters

Value

the type of value that can be mapped to a MediaSurface.

Inheritors

Constructors

Link copied to clipboard
constructor(initialValue: Value?)

Properties

Link copied to clipboard
open override val surface: Flow<MediaSurface?>

A Flow of the MediaSurface currently associated with the lifecycle

Functions

Link copied to clipboard
fun update(value: Value?)

Update the Value; a new MediaSurface will be emitted on surface.