Wp.SessionItem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The session item properties |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wp.SessionItem(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Session items are high level objects that wrap underlying PipeWire objects and manage them. For example, a session item may be managing a node, taking responsibility for configuring the PortConfig and Format parameters of the node. Or another may be managing links between two nodes. All the implementations are provided by modules and instantiated via the
Wp.SiFactory
class.- classmethod handle_proxy_destroyed(proxy, item)¶
- Parameters:
proxy (
Wp.Proxy
) – the proxy that was destroyed by the serveritem (
Wp.SessionItem
) – the associated session item
Helper callback for sub-classes that deffers and unexports the session item.
Only meant to be used when the pipewire proxy destroyed signal is triggered.
- classmethod make(core, factory_name)¶
- Parameters:
- Returns:
the new session item
- Return type:
Finds the factory associated with the given name from the core and uses it to construct a new
Wp.SessionItem
.
- configure(props)¶
- Parameters:
props (
Wp.Properties
) – the properties used to configure the item- Returns:
- Return type:
Configures the session item with a set of properties.
- get_associated_proxy(proxy_type)¶
- Parameters:
proxy_type (
GObject.GType
) – aWp.Proxy
subclassGObject.GType
- Returns:
the associated proxy of the specified proxy_type, or
None
if there is no association to such a proxy- Return type:
An associated proxy is a
Wp.Proxy
subclass instance that is somehow related to this item.
- get_associated_proxy_id(proxy_type)¶
- Parameters:
proxy_type (
GObject.GType
) – aWp.Proxy
subclassGObject.GType
- Returns:
the bound id of the associated proxy of the specified proxy_type, or SPA_ID_INVALID if there is no association to such a proxy
- Return type:
Gets the bound id of a proxy associated with the session item.
- get_properties()¶
- Returns:
the item’s properties.
- Return type:
Gets the properties of a session item.
- get_property(key)¶
- Parameters:
key (
str
) – the property key- Returns:
the item property value for the given key.
- Return type:
Looks up a named session item property value for a given key.
- is_configured()¶
-
Checks if the session item is configured.
- register()¶
Registers the session item to its associated core.
- remove()¶
Removes the session item from its associated core.
- reset()¶
Resets the session item.
This essentially removes the configuration and deactivates all active features.
- set_properties(props)¶
- Parameters:
props (
Wp.Properties
) – the new properties to set
Sets the item’s properties.
This should only be done by sub-classes after the configuration has been done.
- do_configure(props) virtual¶
- Parameters:
props (
Wp.Properties
) – the properties used to configure the item- Returns:
- Return type:
Configures the session item with a set of properties.
- do_disable_active() virtual¶
- do_disable_exported() virtual¶
- do_enable_active(transition) virtual¶
- Parameters:
transition (
Wp.Transition
) –
- do_enable_exported(transition) virtual¶
- Parameters:
transition (
Wp.Transition
) –
- do_get_associated_proxy(proxy_type) virtual¶
- Parameters:
proxy_type (
GObject.GType
) –- Return type:
- do_reset() virtual¶
Resets the session item.
This essentially removes the configuration and deactivates all active features.
Property Details¶
- Wp.SessionItem.props.properties¶
- Name:
properties
- Type:
- Default Value:
- Flags:
The session item properties