Camera๐
org.freedesktop.portal.Camera
Portal for accessing cameras
The camera portal enables applications to access camera devices, such as web cams.
Entitlements๐
org.freedesktop.portal.Cameraยท version 1Gates general access to the Camera portal.
See Entitlements for general information about the entitlement system.
Properties๐
IsCameraPresent๐
IsCameraPresent readable b
A boolean stating whether there are any cameras available.
version๐
version readable u
Methods๐
AccessCamera()๐
AccessCamera (
IN options a{sv},
OUT handle o
)
Request to gain access to the camera.
Supported keys in the options vardict include:
handle_token(s) A string that will be used as the last element of thehandle. Must be a valid object path element. See the Request documentation for more information about thehandle.
Following the Request::Response signal, if granted, OpenPipeWireRemote() can be used to open a PipeWire remote.
- options
Vardict with optional further information
- handle
Object path for the Request object representing this call
OpenPipeWireRemote()๐
OpenPipeWireRemote (
IN options a{sv},
OUT fd h
)
Open a file descriptor to the PipeWire remote where the camera nodes
are available. The file descriptor should be used to create a
pw_core object, by using pw_context_connect_fd().
This method will only succeed if the application already has permission to access camera devices.
There are currently no supported keys in the options vardict.
- options
Vardict with optional further information
- fd
File descriptor of an open PipeWire remote.