Companion

Functions

Link copied to clipboard

Returns machine-specific default device

Link copied to clipboard

Returns machine-specific default device

Link copied to clipboard
fun fromDevice(deviceName: String = defaultDevice(), mode: PlayMode = PlayMode.VIDEO, frameRate: Double? = null, imageWidth: Int? = null, imageHeight: Int? = null, configuration: VideoPlayerConfiguration = VideoPlayerConfiguration()): VideoPlayerFFMPEG

Opens a webcam or video device

Link copied to clipboard
fun fromFile(fileName: String, mode: PlayMode = PlayMode.BOTH, configuration: VideoPlayerConfiguration = VideoPlayerConfiguration(), clock: () -> Double = { System.currentTimeMillis() / 1000.0 }): VideoPlayerFFMPEG

Opens a video from file or url

Link copied to clipboard
fun fromScreen(screenName: String = defaultScreenDevice(), mode: PlayMode = PlayMode.VIDEO, frameRate: Double? = null, imageWidth: Int? = null, imageHeight: Int? = null, configuration: VideoPlayerConfiguration = screenRecordingConfiguration): VideoPlayerFFMPEG

Opens the screen for grabbing frames See https://trac.ffmpeg.org/wiki/Capture/Desktop

Link copied to clipboard

Lists the available machine-specific device names