AVPlayerViewMediaSurfaceProvider

class AVPlayerViewMediaSurfaceProvider(initialView: AVPlayerView?) : BaseMediaSurfaceProvider<AVPlayerView>

A BaseMediaSurfaceProvider that takes an AVPlayerView directly.

Constructors

Link copied to clipboard
constructor(initialView: AVPlayerView?)

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

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