NSViewMediaSurfaceProvider

class NSViewMediaSurfaceProvider(initialView: NSView?) : BaseMediaSurfaceProvider<NSView>

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).

Constructors

Link copied to clipboard
constructor(initialView: NSView?)

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

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