AVPlayerViewControllerMediaSurfaceProvider

class AVPlayerViewControllerMediaSurfaceProvider(initialViewController: AVPlayerViewController?) : BaseMediaSurfaceProvider<AVPlayerViewController>

A BaseMediaSurfaceProvider that takes an AVPlayerViewController directly.

Constructors

constructor(initialViewController: AVPlayerViewController?)

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

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