AVPlayerLayerMediaSurfaceProvider

class AVPlayerLayerMediaSurfaceProvider(initialLayer: AVPlayerLayer?) : BaseMediaSurfaceProvider<AVPlayerLayer>

A BaseMediaSurfaceProvider that takes an AVPlayerLayer directly.

Constructors

Link copied to clipboard
constructor(initialLayer: AVPlayerLayer?)

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: AVPlayerLayer?)

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