MIG API

Media.CameraInput Domain


Media.CameraInput

Camera interface for any Video4Linux compatible device.

Camera.GetPicture

Get a JPEG frame from the camera device.

Syntax

/api/Media.CameraInput/1/Camera.GetPicture
GET /api/Media.CameraInput/1/Camera.GetPicture

Response

The current frame encoded as JPEG image.

Camera.SetDevice

Set device, video resolution and fps of the camera input.

Syntax

/api/Media.CameraInput/1/Camera.SetDevice/<device_path>/<width>/<height>/<fps>
GET /api/Media.CameraInput/1/Camera.SetDevice/%252Fdev%252Fvideo0/640x480/5