Services
| service | methods | what it does |
|---|---|---|
com.webos.service.camera2 | 36 | Camera service: enumerates cameras, opens/closes devices, queries and sets formats and properties, captures images and streams, and… |
com.webos.service.camera | 30 | Camera service: acquires, opens and closes the camera, lists devices and properties, reports firmware and cover state, applies photo… |
com.webos.pipeline.camera | 5 | Camera preview pipeline service (webOS OSE): starts and stops a camera preview, sets its window and input position, and reports pipeline… |
com.webos.service.camera.gesture | 2 | Camera-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.
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 '{}'Starts the preview.
params: appId, windowId, videoDisplayMode, width, height, format, frameRate, memType
$ luna-send -n 1 -f luna://com.webos.pipeline.camera/start '{}'Stops the preview.
$ luna-send -n 1 -f luna://com.webos.pipeline.camera/stop '{}'Gets notification when there is an error event from pipeline.
params: subscribe
$ luna-send -n 1 -f luna://com.webos.pipeline.camera/subscribePipeLineInfo '{}'Returns detailed info of a camera/microphone device.
params: uri
$ luna-send -n 1 -f luna://com.webos.service.camera/getInfo '{}'Lists camera and microphone devices connected to the TV.
params: subscribe
$ luna-send -n 1 -f luna://com.webos.service.camera/getList '{}'Cover status of the built-in camera.
params: uri, subscribe
$ luna-send -n 1 -f luna://com.webos.service.camera/isCovered '{}'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 '{}'Closes the connection between the camera and the webOS device.
params: handle
$ luna-send -n 1 -f luna://com.webos.service.camera2/close '{}'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 '{}'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 '{}'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 '{}'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 '{}'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 '{}'Gets the current settings of the connected camera device.
params: params, id, subscribe
$ luna-send -n 1 -f luna://com.webos.service.camera2/getProperties '{}'Gets the current status of the supported camera solutions.
params: handle, id
$ luna-send -n 1 -f luna://com.webos.service.camera2/getSolutions '{}'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 '{}'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 '{}'Sets the properties of the connected camera device.
params: handle, params
$ luna-send -n 1 -f luna://com.webos.service.camera2/setProperties '{}'Enables and disables camera solutions.
params: handle, id, solutions
$ luna-send -n 1 -f luna://com.webos.service.camera2/setSolutions '{}'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 '{}'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 '{}'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 '{}'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 '{}'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 '{}'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 '{}'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 '{}'luna-send yourself. See dangerous.md.