UIViewMediaSurfaceProvider

class UIViewMediaSurfaceProvider(initialView: UIView?) : BaseMediaSurfaceProvider<UIView>

A BaseMediaSurfaceProvider that attempts to grab the MediaSurface from a UIView. Requires UIView.layer to be an AVPlayerLayer.

Constructors

Link copied to clipboard
constructor(initialView: UIView?)

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

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