ScreenSource

@RequiresApi(value = 21)
class ScreenSource @JvmOverloads constructor(context: Context, mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null, virtualDisplayCallback: VirtualDisplay.Callback? = null) : VideoSource

Created by pedro on 11/1/24.

Constructors

Link copied to clipboard
constructor(context: Context, mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null, virtualDisplayCallback: VirtualDisplay.Callback? = null)

Properties

Link copied to clipboard
Link copied to clipboard
var fps: Int
Link copied to clipboard
var height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var width: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun init(width: Int, height: Int, fps: Int, rotation: Int): Boolean
Link copied to clipboard
open override fun isRunning(): Boolean
Link copied to clipboard
open override fun release()
Link copied to clipboard
fun resize(width: Int, height: Int)
Link copied to clipboard
open override fun start(surfaceTexture: SurfaceTexture)
Link copied to clipboard
open override fun stop()