Wp.ImplNode¶
- Subclasses:
None
Methods¶
- Inherited:
Wp.Proxy (4), Wp.Object (12), GObject.Object (37), Wp.PipewireObject (9)
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Wp.Proxy (4), Wp.Object (4), GObject.Object (7), Wp.PipewireObject (7)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The actual node implementation, struct pw_impl_node * |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Wp.ImplNode(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Wp.ImplNodeallows running a node implementation (struct pw_impl_node) locally, loading the implementation from factory or wrapping a manually constructed pw_impl_node. This object can then be exported to PipeWire by requestingWp.ProxyFeatures.PROXY_FEATURE_BOUND. When the “client-context” component is loaded, which is the case in the default daemon configuration,Wp.ImplNode.new_from_pw_factory() creates the node in a secondary pw_context that runs on its own thread, so that the node is not affected by anything that blocks WirePlumber’s main loop, and exports it on that context’s connection. TheWp.ImplNodeitself stays on the thread that created it: its features, signals and the rest of its API are unchanged. Nodes wrapped withWp.ImplNode.new_wrap() belong to whichever context the given pw_impl_node was created in, which is the core’s own pw_context in most cases, and are exported on the core’s connection.- classmethod new_from_pw_factory(core, factory_name, properties)¶
- Parameters:
core (
Wp.Core) – the wireplumber corefactory_name (
str) – the name of the pipewire factoryproperties (
Wp.PropertiesorNone) – properties to be passed to node constructor
- Returns:
A new
Wp.ImplNodewrapping the node that was constructed by the factory, orNoneif the factory does not exist or was unable to construct the node- Return type:
Wp.ImplNodeorNone
Constructs a new node, locally on this process, using the specified factory_name.
To export this node to the PipeWire server, you need to call
Wp.Object.activate() requestingWp.ProxyFeatures.PROXY_FEATURE_BOUNDand wait for the operation to complete.
- classmethod new_wrap(core, node)¶
- Parameters:
- Returns:
A new
Wp.ImplNodewrapping node- Return type:
Constructs a node object from an existing pw_impl_node.