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. A view constructs a MediaSurface (e.g. from its AVPlayerLayer) and binds it to a MediaSurfaceBinder.

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