fromScreen
fun fromScreen(screenName: String = defaultScreenDevice(), mode: PlayMode = PlayMode.VIDEO, frameRate: Double? = null, imageWidth: Int? = null, imageHeight: Int? = 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 grabbing audio
frameRate
optional frame rate (in Hz)
imageWidth
optional image width
imageHeight
optional image height
configuration
optional video player configuration