$ luna-atlas --cat camera

Camera luna-send commands.

USB and built-in camera services. 73 methods in 4 services.

73methods
4services
49documented
29public
0flagged dangerous

open Camera in the catalog ↗

Services

servicemethodswhat it does
com.webos.service.camera236Camera service: enumerates cameras, opens/closes devices, queries and sets formats and properties, captures images and streams, and…
com.webos.service.camera30Camera service: acquires, opens and closes the camera, lists devices and properties, reports firmware and cover state, applies photo…
com.webos.pipeline.camera5Camera preview pipeline service (webOS OSE): starts and stops a camera preview, sets its window and input position, and reports pipeline…
com.webos.service.camera.gesture2Camera-based gesture service that reports status of and sets the mode for finger-gesture recognition.

Documented methods to start with

Public and SSAP methods from LG's documentation, none flagged dangerous. Each opens in the catalog with its full parameter table. Run them on a rooted TV or in Developer Mode.

setWindow publiccom.webos.pipeline.camera

Sets the window's position and size, display ID, and overlay/mirror options.

params: x, y, w, h, displayId, overlay, mirror

$ luna-send -n 1 -f luna://com.webos.pipeline.camera/setWindow '{}'
start publiccom.webos.pipeline.camera

Starts the preview.

params: appId, windowId, videoDisplayMode, width, height, format, frameRate, memType

$ luna-send -n 1 -f luna://com.webos.pipeline.camera/start '{}'
stop publiccom.webos.pipeline.camera

Stops the preview.

$ luna-send -n 1 -f luna://com.webos.pipeline.camera/stop '{}'
subscribePipeLineInfo publiccom.webos.pipeline.camera

Gets notification when there is an error event from pipeline.

params: subscribe

$ luna-send -n 1 -f luna://com.webos.pipeline.camera/subscribePipeLineInfo '{}'
getInfo publiccom.webos.service.camera

Returns detailed info of a camera/microphone device.

params: uri

$ luna-send -n 1 -f luna://com.webos.service.camera/getInfo '{}'
getList publiccom.webos.service.camera

Lists camera and microphone devices connected to the TV.

params: subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera/getList '{}'
isCovered publiccom.webos.service.camera

Cover status of the built-in camera.

params: uri, subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera/isCovered '{}'
capture publiccom.webos.service.camera2

Starts capturing images using the camera. The captured images are stored as separate files at the specified location. The default file name is of the format PictureDDMMYYYY-HHMMSS , where DDMMYYYY-HHMMSS is current…

params: handle, nimage, path

$ luna-send -n 1 -f luna://com.webos.service.camera2/capture '{}'
close publiccom.webos.service.camera2

Closes the connection between the camera and the webOS device.

params: handle

$ luna-send -n 1 -f luna://com.webos.service.camera2/close '{}'
getCameraList publiccom.webos.service.camera2

Gets the list of cameras connected to the webOS device. Returns IDs for each of the cameras connected to the device.

params: subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera2/getCameraList '{}'
getEventNotification publiccom.webos.service.camera2

Gets a notification when there is a change in any of the camera properties and formats or when there is an error event on your device.

params: subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera2/getEventNotification '{}'
getFd publiccom.webos.service.camera2

Provides the FD (File Descriptor) for the POSIX shared memory. Note: It returns the FD by attaching it using LS2 attach fd interface to the client.

params: handle, type

$ luna-send -n 1 -f luna://com.webos.service.camera2/getFd '{}'
getFormat publiccom.webos.service.camera2

Gets the current resolution, FPS, and format settings of the connected camera device.

params: id, subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera2/getFormat '{}'
getInfo publiccom.webos.service.camera2

Gets information about a camera that is connected to the webOS device.

params: id

$ luna-send -n 1 -f luna://com.webos.service.camera2/getInfo '{}'
getProperties publiccom.webos.service.camera2

Gets the current settings of the connected camera device.

params: params, id, subscribe

$ luna-send -n 1 -f luna://com.webos.service.camera2/getProperties '{}'
getSolutions publiccom.webos.service.camera2

Gets the current status of the supported camera solutions.

params: handle, id

$ luna-send -n 1 -f luna://com.webos.service.camera2/getSolutions '{}'
open publiccom.webos.service.camera2

Establishes a connection between a camera and the webOS device. Returns the device handle for this connection instance.

params: id, mode, appId

$ luna-send -n 1 -f luna://com.webos.service.camera2/open '{}'
setFormat publiccom.webos.service.camera2

Sets the size and format of the preview stream. This includes the height and width of the frame and the format in which data is to be written to the shared buffer.

params: handle, params

$ luna-send -n 1 -f luna://com.webos.service.camera2/setFormat '{}'
setProperties publiccom.webos.service.camera2

Sets the properties of the connected camera device.

params: handle, params

$ luna-send -n 1 -f luna://com.webos.service.camera2/setProperties '{}'
setSolutions publiccom.webos.service.camera2

Enables and disables camera solutions.

params: handle, id, solutions

$ luna-send -n 1 -f luna://com.webos.service.camera2/setSolutions '{}'
setWindow publiccom.webos.service.camera2

Sets the window's position and size, display ID, and overlay/mirror options.

params: handle, params

$ luna-send -n 1 -f luna://com.webos.service.camera2/setWindow '{}'
startCamera publiccom.webos.service.camera2

Starts camera and turns on streaming of captured image frames into the shared memory (SystemV or POSIX). The method returns a key or an FD for accessing the shared memory, which is required for applications to access…

params: handle, params

$ luna-send -n 1 -f luna://com.webos.service.camera2/startCamera '{}'
startCapture publiccom.webos.service.camera2

Starts capturing images using the camera. The captured images are stored as separate files at the location given by the "path" parameter. The default file name is of the format PictureDDMMYYYY-HHMMSS, where…

params: handle, params, path

$ luna-send -n 1 -f luna://com.webos.service.camera2/startCapture '{}'
startPreview publiccom.webos.service.camera2

Turns on camera streaming of captured image frames into the shared memory (SystemV or POSIX) and shows preview on the specified surface. The method returns a key or an fd for accessing the shared memory for…

params: handle, windowId

$ luna-send -n 1 -f luna://com.webos.service.camera2/startPreview '{}'
stopCamera publiccom.webos.service.camera2

Stops camera and turns off streaming into the shared memory. Note: Applications that called startCamera() should call this method to stop streaming.

params: handle

$ luna-send -n 1 -f luna://com.webos.service.camera2/stopCamera '{}'
stopCapture publiccom.webos.service.camera2

Stops camera from capturing images in the continuous mode. Continuous mode captures frames in succession till the stopCapture() method is called.

params: handle

$ luna-send -n 1 -f luna://com.webos.service.camera2/stopCapture '{}'
stopPreview publiccom.webos.service.camera2

Turns off camera streaming and finishes showing the preview on the surface. Note: The applications should call this method to stop streaming and preview when the applications called startPreview().

params: handle

$ luna-send -n 1 -f luna://com.webos.service.camera2/stopPreview '{}'
Before you run anything. Methods marked dangerous can change, reset or break things on the TV. Running one from here is exactly as safe as typing the same luna-send yourself. See dangerous.md.

Other categories