fromDevice

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

Opens a webcam or video device

Return

a ready-to-play video player on success

Parameters

deviceName

a machine-specific device name

mode

which streams should be opened and played

frameRate

optional frame rate (in Hz)

imageWidth

optional image width

imageHeight

optional image height

configuration

optional video player configuration