Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSyntheticPipeWireVideoSourceConfig Struct Reference

#include <qsyntheticpipewirevideosource_p.h>

Collaboration diagram for QSyntheticPipeWireVideoSourceConfig:

Static Public Member Functions

static QSyntheticPipeWireVideoSourceConfig screenCast ()
 A screen-cast source, as xdg-desktop-portal's ScreenCast interface hands out.
static QSyntheticPipeWireVideoSourceConfig camera (int index=0)
 A camera source, as the Camera interface hands out: media.class Video/Source plus media.role Camera.

Public Attributes

QByteArray loopName = QByteArrayLiteral("qt-fake-sc")
QByteArray nodeName = QByteArrayLiteral("qt-fake-screencast")
QByteArray nodeDescription = QByteArrayLiteral("Qt Multimedia synthetic screen cast source")
QByteArray mediaClass = QByteArrayLiteral("Stream/Output/Video")
QByteArray mediaRole = QByteArrayLiteral("Screen")
QByteArray mediaCategory = QByteArrayLiteral("Capture")

Detailed Description

Identity of a synthetic source: what it advertises to the PipeWire graph.

media.role is load-bearing, not cosmetic. It is how the source decides which consumers are meant for it – see QSyntheticPipeWireVideoSource.

Definition at line 36 of file qsyntheticpipewirevideosource_p.h.

Member Function Documentation

◆ camera()

QSyntheticPipeWireVideoSourceConfig QSyntheticPipeWireVideoSourceConfig::camera ( int index = 0)
staticnodiscard

A camera source, as the Camera interface hands out: media.class Video/Source plus media.role Camera.

device.api is deliberately left unset, so that a client identifying cameras exercises the media.role branch – the one a real camera portal hits – rather than the v4l2/libcamera hardware fallback.

Definition at line 50 of file qsyntheticpipewirevideosource.cpp.

◆ screenCast()

QSyntheticPipeWireVideoSourceConfig QSyntheticPipeWireVideoSourceConfig::screenCast ( )
staticnodiscard

A screen-cast source, as xdg-desktop-portal's ScreenCast interface hands out.

Definition at line 45 of file qsyntheticpipewirevideosource.cpp.

Member Data Documentation

◆ loopName

QByteArray QSyntheticPipeWireVideoSourceConfig::loopName = QByteArrayLiteral("qt-fake-sc")

Definition at line 38 of file qsyntheticpipewirevideosource_p.h.

◆ mediaCategory

QByteArray QSyntheticPipeWireVideoSourceConfig::mediaCategory = QByteArrayLiteral("Capture")

Definition at line 43 of file qsyntheticpipewirevideosource_p.h.

◆ mediaClass

QByteArray QSyntheticPipeWireVideoSourceConfig::mediaClass = QByteArrayLiteral("Stream/Output/Video")

Definition at line 41 of file qsyntheticpipewirevideosource_p.h.

◆ mediaRole

QByteArray QSyntheticPipeWireVideoSourceConfig::mediaRole = QByteArrayLiteral("Screen")

Definition at line 42 of file qsyntheticpipewirevideosource_p.h.

◆ nodeDescription

QByteArray QSyntheticPipeWireVideoSourceConfig::nodeDescription = QByteArrayLiteral("Qt Multimedia synthetic screen cast source")

Definition at line 40 of file qsyntheticpipewirevideosource_p.h.

◆ nodeName

QByteArray QSyntheticPipeWireVideoSourceConfig::nodeName = QByteArrayLiteral("qt-fake-screencast")

Definition at line 39 of file qsyntheticpipewirevideosource_p.h.


The documentation for this struct was generated from the following files: