fromScreen
fun fromScreen(audioDevice: AudioDevice?, screenName: String = defaultScreenDevice(), mode: PlayMode = PlayMode.VIDEO, frameRate: Double? = null, imageWidth: Int? = null, imageHeight: Int? = null, windowId: String? = null, configuration: VideoPlayerConfiguration = screenRecordingConfiguration): VideoPlayerFFMPEG(source)
Opens the screen for grabbing frames See https://trac.ffmpeg.org/wiki/Capture/Desktop
Return
a ready-to-play video player on success
Parameters
screenName
a machine-specific device name Windows: "desktop" or "title=window_title" Mac: something like "1:0" Linux: run echo $DISPLAY to find out
mode
which streams should be opened and played Reserved for future use, in case we want to grab audio
frameRate
optional frame rate (in Hz)
imageWidth
optional image width
imageHeight
optional image height
configuration
optional video player configuration
windowId
optional window id. Allows capturing a specific program window instead of the whole screen.