MediaProjectionVideoSourceFactory

class MediaProjectionVideoSourceFactory(mediaProjection: MediaProjection, overrideRotation: Int? = null) : IVideoSourceInternal.Factory

A factory to create a MediaProjectionVideoSourceFactory.

Parameters

mediaProjection

The media projection

overrideRotation

The override rotation. If null, the rotation is taken from the device orientation. Use this to force a specific rotation of the media projection surface.

Constructors

Link copied to clipboard
constructor(mediaProjection: MediaProjection, overrideRotation: Int? = null)

Functions

Link copied to clipboard
open suspend override fun create(context: Context): IVideoSourceInternal

Creates an IVideoSourceInternal instance.

Link copied to clipboard
open override fun isSourceEquals(source: IVideoSourceInternal?): Boolean

Whether the source that will be created by create is equal to another source.