MediaSurface

actual data class MediaSurface

A surface on which the video component of a PlayableMedia can be rendered. Exposes a SurfaceHolder to bind to

actual data class MediaSurface

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.

expect class MediaSurface

A surface on which the video component of a PlayableMedia can be rendered

actual class MediaSurface

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.

Constructors

Link copied to clipboard
constructor(holder: SurfaceHolder)
constructor(bind: MediaSurfaceBinding)
constructor(avPlayerLayer: AVPlayerLayer)

Convenience: bind the AVPlayer of a MediaManager to an AVPlayerLayer.

constructor(elementId: String)

Properties

Link copied to clipboard

the MediaSurfaceBinding that wires the surface to an AVPlayer.

Link copied to clipboard

the id of the container DOM element

Link copied to clipboard