pub struct PipeWire { /* private fields */ }Expand description
The PipeWire service, from cx.pipewire(). A clone is cheap and
shares the one connection.
Implementations§
Source§impl PipeWire
impl PipeWire
Sourcepub fn nodes(&self) -> ReadSignal<Vec<PwNode>>
pub fn nodes(&self) -> ReadSignal<Vec<PwNode>>
Every node, by id. Empty while PipeWire isn’t connected.
Sourcepub fn links(&self) -> ReadSignal<Vec<PwLink>>
pub fn links(&self) -> ReadSignal<Vec<PwLink>>
Every link whose state PipeWire has said, by id.
Sourcepub fn link_groups(&self) -> ReadSignal<Vec<PwLinkGroup>>
pub fn link_groups(&self) -> ReadSignal<Vec<PwLinkGroup>>
The links folded per output node and input node, by those ids.
Sourcepub fn node_links(&self, node: impl IntoProp<u32>) -> Memo<Vec<PwLinkGroup>>
pub fn node_links(&self, node: impl IntoProp<u32>) -> Memo<Vec<PwLinkGroup>>
The link groups to or from node, as Quickshell’s
PwNodeLinkTracker. node takes an id or a closure returning one,
so one tracker follows a changing node.
The memo belongs to the context cx.pipewire() was called on, so
call cx.pipewire() inside the row that shows it, and the memo goes
with the row. A panic in the closure is logged with where
node_links was called and gives no groups until what it read
changes. Called on a handle whose context went, it logs that and
gives no groups.
Sourcepub fn screencasts(&self) -> ReadSignal<Vec<PwNode>>
pub fn screencasts(&self) -> ReadSignal<Vec<PwNode>>
The video sources a program made, such as a screen-share portal’s,
that another node captures: a Video/Source node with no
device.id, so not a camera, linked to at least one node.