WpSessionItem Interfaces

WpSiEndpoint

An interface for session items that implement a PipeWire endpoint.


Wp.SiEndpoint

An interface for session items that implement a PipeWire endpoint.


Wp.SiEndpoint

An interface for session items that implement a PipeWire endpoint.


Methods

wp_si_endpoint_get_n_streams

guint
wp_si_endpoint_get_n_streams (WpSiEndpoint * self)

Parameters:

self

the session item

Returns

the number of streams in the endpoint


Wp.SiEndpoint.get_n_streams

def Wp.SiEndpoint.get_n_streams (self):
    #python wrapper for 'wp_si_endpoint_get_n_streams'

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( int ) –

the number of streams in the endpoint


Wp.SiEndpoint.prototype.get_n_streams

function Wp.SiEndpoint.prototype.get_n_streams(): {
    // javascript wrapper for 'wp_si_endpoint_get_n_streams'
}

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( Number ) –

the number of streams in the endpoint


wp_si_endpoint_get_properties

WpProperties *
wp_si_endpoint_get_properties (WpSiEndpoint * self)

Parameters:

self

the session item

Returns ( [transfer: full] [nullable] ) –

the properties of the endpoint


Wp.SiEndpoint.get_properties

def Wp.SiEndpoint.get_properties (self):
    #python wrapper for 'wp_si_endpoint_get_properties'

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( Wp.Properties ) –

the properties of the endpoint


Wp.SiEndpoint.prototype.get_properties

function Wp.SiEndpoint.prototype.get_properties(): {
    // javascript wrapper for 'wp_si_endpoint_get_properties'
}

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( Wp.Properties ) –

the properties of the endpoint


wp_si_endpoint_get_registration_info

GVariant *
wp_si_endpoint_get_registration_info (WpSiEndpoint * self)

This should return information that is used for registering the endpoint, as a GVariant tuple of type (ssya{ss}) that contains, in order:

  • s: the endpoint's name
  • s: the media class
  • y: the direction
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self

the session item

Returns ( [transfer: full] ) –

registration info for the endpoint


Wp.SiEndpoint.get_registration_info

def Wp.SiEndpoint.get_registration_info (self):
    #python wrapper for 'wp_si_endpoint_get_registration_info'

This should return information that is used for registering the endpoint, as a GVariant tuple of type (ssya{ss}) that contains, in order:

  • s: the endpoint's name
  • s: the media class
  • y: the direction
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( GLib.Variant ) –

registration info for the endpoint


Wp.SiEndpoint.prototype.get_registration_info

function Wp.SiEndpoint.prototype.get_registration_info(): {
    // javascript wrapper for 'wp_si_endpoint_get_registration_info'
}

This should return information that is used for registering the endpoint, as a GVariant tuple of type (ssya{ss}) that contains, in order:

  • s: the endpoint's name
  • s: the media class
  • y: the direction
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( GLib.Variant ) –

registration info for the endpoint


wp_si_endpoint_get_stream

WpSiStream *
wp_si_endpoint_get_stream (WpSiEndpoint * self,
                           guint index)

Parameters:

self

the session item

index

the stream index, from 0 up to and excluding wp_si_endpoint_get_n_streams

Returns ( [transfer: none] ) –

the stream at index


Wp.SiEndpoint.get_stream

def Wp.SiEndpoint.get_stream (self, index):
    #python wrapper for 'wp_si_endpoint_get_stream'

Parameters:

self ( Wp.SiEndpoint ) –

the session item

index ( int ) –

the stream index, from 0 up to and excluding Wp.SiEndpoint.get_n_streams

Returns ( Wp.SiStream ) –

the stream at index


Wp.SiEndpoint.prototype.get_stream

function Wp.SiEndpoint.prototype.get_stream(index: Number): {
    // javascript wrapper for 'wp_si_endpoint_get_stream'
}

Parameters:

self ( Wp.SiEndpoint ) –

the session item

index ( Number ) –

the stream index, from 0 up to and excluding Wp.SiEndpoint.prototype.get_n_streams

Returns ( Wp.SiStream ) –

the stream at index


wp_si_endpoint_get_stream_acquisition

WpSiStreamAcquisition *
wp_si_endpoint_get_stream_acquisition (WpSiEndpoint * self)

Parameters:

self

the session item

Returns ( [transfer: none] [nullable] ) –

the stream acquisition interface associated with this endpoint, or NULL if this endpoint does not require acquiring streams before linking them


Wp.SiEndpoint.get_stream_acquisition

def Wp.SiEndpoint.get_stream_acquisition (self):
    #python wrapper for 'wp_si_endpoint_get_stream_acquisition'

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( Wp.SiStreamAcquisition ) –

the stream acquisition interface associated with this endpoint, or None if this endpoint does not require acquiring streams before linking them


Wp.SiEndpoint.prototype.get_stream_acquisition

function Wp.SiEndpoint.prototype.get_stream_acquisition(): {
    // javascript wrapper for 'wp_si_endpoint_get_stream_acquisition'
}

Parameters:

self ( Wp.SiEndpoint ) –

the session item

Returns ( Wp.SiStreamAcquisition ) –

the stream acquisition interface associated with this endpoint, or null if this endpoint does not require acquiring streams before linking them


Signals

endpoint-properties-changed

endpoint_properties_changed_callback (WpSiEndpoint * self,
                                      gpointer user_data)

Parameters:

self
No description available
user_data
No description available

Flags: Run Last


endpoint-properties-changed

def endpoint_properties_changed_callback (self, *user_data):
    #python callback for the 'endpoint-properties-changed' signal

Parameters:

self ( Wp.SiEndpoint ) –
No description available
user_data ( variadic ) –
No description available

Flags: Run Last


endpoint-properties-changed

function endpoint_properties_changed_callback(self: Wp.SiEndpoint, user_data: Object): {
    // javascript callback for the 'endpoint-properties-changed' signal
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
user_data ( Object ) –
No description available

Flags: Run Last


endpoint-streams-changed

endpoint_streams_changed_callback (WpSiEndpoint * self,
                                   gpointer user_data)

Parameters:

self
No description available
user_data
No description available

Flags: Run Last


endpoint-streams-changed

def endpoint_streams_changed_callback (self, *user_data):
    #python callback for the 'endpoint-streams-changed' signal

Parameters:

self ( Wp.SiEndpoint ) –
No description available
user_data ( variadic ) –
No description available

Flags: Run Last


endpoint-streams-changed

function endpoint_streams_changed_callback(self: Wp.SiEndpoint, user_data: Object): {
    // javascript callback for the 'endpoint-streams-changed' signal
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
user_data ( Object ) –
No description available

Flags: Run Last


Virtual Methods

get_n_streams

guint
get_n_streams (WpSiEndpoint * self)

Parameters:

self
No description available
Returns
No description available

do_get_n_streams

def do_get_n_streams (self):
    #python implementation of the 'get_n_streams' virtual method

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( int ) –
No description available

vfunc_get_n_streams

function vfunc_get_n_streams(self: Wp.SiEndpoint): {
    // javascript implementation of the 'get_n_streams' virtual method
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( Number ) –
No description available

get_properties

WpProperties *
get_properties (WpSiEndpoint * self)

Parameters:

self
No description available
Returns
No description available

do_get_properties

def do_get_properties (self):
    #python implementation of the 'get_properties' virtual method

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( Wp.Properties ) –
No description available

vfunc_get_properties

function vfunc_get_properties(self: Wp.SiEndpoint): {
    // javascript implementation of the 'get_properties' virtual method
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( Wp.Properties ) –
No description available

get_registration_info

GVariant *
get_registration_info (WpSiEndpoint * self)

Parameters:

self
No description available
Returns
No description available

do_get_registration_info

def do_get_registration_info (self):
    #python implementation of the 'get_registration_info' virtual method

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( GLib.Variant ) –
No description available

vfunc_get_registration_info

function vfunc_get_registration_info(self: Wp.SiEndpoint): {
    // javascript implementation of the 'get_registration_info' virtual method
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( GLib.Variant ) –
No description available

get_stream

WpSiStream *
get_stream (WpSiEndpoint * self,
            guint index)

Parameters:

self
No description available
index
No description available
Returns
No description available

do_get_stream

def do_get_stream (self, index):
    #python implementation of the 'get_stream' virtual method

Parameters:

self ( Wp.SiEndpoint ) –
No description available
index ( int ) –
No description available
Returns ( Wp.SiStream ) –
No description available

vfunc_get_stream

function vfunc_get_stream(self: Wp.SiEndpoint, index: Number): {
    // javascript implementation of the 'get_stream' virtual method
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
index ( Number ) –
No description available
Returns ( Wp.SiStream ) –
No description available

get_stream_acquisition

WpSiStreamAcquisition *
get_stream_acquisition (WpSiEndpoint * self)

Parameters:

self
No description available
Returns
No description available

do_get_stream_acquisition

def do_get_stream_acquisition (self):
    #python implementation of the 'get_stream_acquisition' virtual method

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( Wp.SiStreamAcquisition ) –
No description available

vfunc_get_stream_acquisition

function vfunc_get_stream_acquisition(self: Wp.SiEndpoint): {
    // javascript implementation of the 'get_stream_acquisition' virtual method
}

Parameters:

self ( Wp.SiEndpoint ) –
No description available
Returns ( Wp.SiStreamAcquisition ) –
No description available

Methods

Signals

Virtual Methods

get_in_stream

WpSiStream *
get_in_stream (WpSiLink * self)

Parameters:

self
No description available
Returns
No description available

do_get_in_stream

def do_get_in_stream (self):
    #python implementation of the 'get_in_stream' virtual method

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.SiStream ) –
No description available

vfunc_get_in_stream

function vfunc_get_in_stream(self: Wp.SiLink): {
    // javascript implementation of the 'get_in_stream' virtual method
}

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.SiStream ) –
No description available

get_out_stream

WpSiStream *
get_out_stream (WpSiLink * self)

Parameters:

self
No description available
Returns
No description available

do_get_out_stream

def do_get_out_stream (self):
    #python implementation of the 'get_out_stream' virtual method

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.SiStream ) –
No description available

vfunc_get_out_stream

function vfunc_get_out_stream(self: Wp.SiLink): {
    // javascript implementation of the 'get_out_stream' virtual method
}

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.SiStream ) –
No description available

get_properties

WpProperties *
get_properties (WpSiLink * self)

Parameters:

self
No description available
Returns
No description available

do_get_properties

def do_get_properties (self):
    #python implementation of the 'get_properties' virtual method

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.Properties ) –
No description available

vfunc_get_properties

function vfunc_get_properties(self: Wp.SiLink): {
    // javascript implementation of the 'get_properties' virtual method
}

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( Wp.Properties ) –
No description available

get_registration_info

GVariant *
get_registration_info (WpSiLink * self)

Parameters:

self
No description available
Returns
No description available

do_get_registration_info

def do_get_registration_info (self):
    #python implementation of the 'get_registration_info' virtual method

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( GLib.Variant ) –
No description available

vfunc_get_registration_info

function vfunc_get_registration_info(self: Wp.SiLink): {
    // javascript implementation of the 'get_registration_info' virtual method
}

Parameters:

self ( Wp.SiLink ) –
No description available
Returns ( GLib.Variant ) –
No description available

WpSiPortInfo

An interface for retrieving PipeWire port information from a session item. This information is used to create links in the nodes graph.

This is normally implemented by the same session items that implement WpSiStream. The standard link implementation expects to be able to cast a WpSiStream into a WpSiPortInfo.


Wp.SiPortInfo

An interface for retrieving PipeWire port information from a session item. This information is used to create links in the nodes graph.

This is normally implemented by the same session items that implement Wp.SiStream. The standard link implementation expects to be able to cast a Wp.SiStream into a Wp.SiPortInfo.


Wp.SiPortInfo

An interface for retrieving PipeWire port information from a session item. This information is used to create links in the nodes graph.

This is normally implemented by the same session items that implement Wp.SiStream. The standard link implementation expects to be able to cast a Wp.SiStream into a Wp.SiPortInfo.


Methods

wp_si_port_info_get_ports

GVariant *
wp_si_port_info_get_ports (WpSiPortInfo * self,
                           const gchar * context)

This method returns a variant of type "a(uuu)", where each tuple in the array contains the following information:

  • u: (guint32) node id
  • u: (guint32) port id (the port must belong on the node specified above)
  • u: (guint32) the audio channel (enum spa_audio_channel) that this port makes available, or 0 for non-audio content

The order in which ports appear in this array is important when no channel information is available. The link implementation should link the ports in the order they appear. This is normally a good enough substitute for channel matching.

The context argument can be used to get different sets of ports from the item. The following well-known contexts are defined:

  • NULL: get the standard ports to be linked
  • "monitor": get the monitor ports
  • "control": get the control port
  • "reverse": get the reverse direction ports, if this item controls a filter node, which would have ports on both directions

Contexts other than NULL may only be used internally to ease the implementation of more complex endpoint relationships. For example, a WpSessionItem that is in control of an input (sink) adapter node may implement WpSiStream and WpSiPortInfo where the NULL context will return the standard input ports and the "monitor" context will return the adapter's monitor ports. When linking this stream to another stream, the NULL context will always be used, but the item may internally spawn a secondary WpSessionItem that implements the "monitor" endpoint & stream. That secondary stream may implement WpSiPortInfo, chaining calls to the WpSiPortInfo of the original item using the "monitor" context. This way, the monitor WpSessionItem does not need to share control of the underlying node; it only proxies calls to satisfy the API.

Parameters:

self

the session item

context ( [nullable] ) –

an optional context for the ports

Returns ( [transfer: full] ) –

a GVariant containing information about the ports of this item


Wp.SiPortInfo.get_ports

def Wp.SiPortInfo.get_ports (self, context):
    #python wrapper for 'wp_si_port_info_get_ports'

This method returns a variant of type "a(uuu)", where each tuple in the array contains the following information:

  • u: (guint32) node id
  • u: (guint32) port id (the port must belong on the node specified above)
  • u: (guint32) the audio channel (enum spa_audio_channel) that this port makes available, or 0 for non-audio content

The order in which ports appear in this array is important when no channel information is available. The link implementation should link the ports in the order they appear. This is normally a good enough substitute for channel matching.

The context argument can be used to get different sets of ports from the item. The following well-known contexts are defined:

  • None: get the standard ports to be linked
  • "monitor": get the monitor ports
  • "control": get the control port
  • "reverse": get the reverse direction ports, if this item controls a filter node, which would have ports on both directions

Contexts other than None may only be used internally to ease the implementation of more complex endpoint relationships. For example, a Wp.SessionItem that is in control of an input (sink) adapter node may implement Wp.SiStream and Wp.SiPortInfo where the None context will return the standard input ports and the "monitor" context will return the adapter's monitor ports. When linking this stream to another stream, the None context will always be used, but the item may internally spawn a secondary Wp.SessionItem that implements the "monitor" endpoint & stream. That secondary stream may implement Wp.SiPortInfo, chaining calls to the Wp.SiPortInfo of the original item using the "monitor" context. This way, the monitor Wp.SessionItem does not need to share control of the underlying node; it only proxies calls to satisfy the API.

Parameters:

self ( Wp.SiPortInfo ) –

the session item

context ( str ) –

an optional context for the ports

Returns ( GLib.Variant ) –

a GLib.Variant containing information about the ports of this item


Wp.SiPortInfo.prototype.get_ports

function Wp.SiPortInfo.prototype.get_ports(context: String): {
    // javascript wrapper for 'wp_si_port_info_get_ports'
}

This method returns a variant of type "a(uuu)", where each tuple in the array contains the following information:

  • u: (guint32) node id
  • u: (guint32) port id (the port must belong on the node specified above)
  • u: (guint32) the audio channel (enum spa_audio_channel) that this port makes available, or 0 for non-audio content

The order in which ports appear in this array is important when no channel information is available. The link implementation should link the ports in the order they appear. This is normally a good enough substitute for channel matching.

The context argument can be used to get different sets of ports from the item. The following well-known contexts are defined:

  • null: get the standard ports to be linked
  • "monitor": get the monitor ports
  • "control": get the control port
  • "reverse": get the reverse direction ports, if this item controls a filter node, which would have ports on both directions

Contexts other than null may only be used internally to ease the implementation of more complex endpoint relationships. For example, a Wp.SessionItem that is in control of an input (sink) adapter node may implement Wp.SiStream and Wp.SiPortInfo where the null context will return the standard input ports and the "monitor" context will return the adapter's monitor ports. When linking this stream to another stream, the null context will always be used, but the item may internally spawn a secondary Wp.SessionItem that implements the "monitor" endpoint & stream. That secondary stream may implement Wp.SiPortInfo, chaining calls to the Wp.SiPortInfo of the original item using the "monitor" context. This way, the monitor Wp.SessionItem does not need to share control of the underlying node; it only proxies calls to satisfy the API.

Parameters:

self ( Wp.SiPortInfo ) –

the session item

context ( String ) –

an optional context for the ports

Returns ( GLib.Variant ) –

a GLib.Variant containing information about the ports of this item


Virtual Methods

get_ports

GVariant *
get_ports (WpSiPortInfo * self,
           const gchar * context)

Parameters:

self
No description available
context
No description available
Returns
No description available

do_get_ports

def do_get_ports (self, context):
    #python implementation of the 'get_ports' virtual method

Parameters:

self ( Wp.SiPortInfo ) –
No description available
context ( str ) –
No description available
Returns ( GLib.Variant ) –
No description available

vfunc_get_ports

function vfunc_get_ports(self: Wp.SiPortInfo, context: String): {
    // javascript implementation of the 'get_ports' virtual method
}

Parameters:

self ( Wp.SiPortInfo ) –
No description available
context ( String ) –
No description available
Returns ( GLib.Variant ) –
No description available

WpSiStream

An interface for session items that provide a PipeWire endpoint stream.


Wp.SiStream

An interface for session items that provide a PipeWire endpoint stream.


Wp.SiStream

An interface for session items that provide a PipeWire endpoint stream.


Methods

wp_si_stream_get_parent_endpoint

WpSiEndpoint *
wp_si_stream_get_parent_endpoint (WpSiStream * self)

Parameters:

self

the session item

Returns ( [transfer: full] ) –

the endpoint that this stream belongs to


Wp.SiStream.get_parent_endpoint

def Wp.SiStream.get_parent_endpoint (self):
    #python wrapper for 'wp_si_stream_get_parent_endpoint'

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( Wp.SiEndpoint ) –

the endpoint that this stream belongs to


Wp.SiStream.prototype.get_parent_endpoint

function Wp.SiStream.prototype.get_parent_endpoint(): {
    // javascript wrapper for 'wp_si_stream_get_parent_endpoint'
}

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( Wp.SiEndpoint ) –

the endpoint that this stream belongs to


wp_si_stream_get_properties

WpProperties *
wp_si_stream_get_properties (WpSiStream * self)

Parameters:

self

the session item

Returns ( [transfer: full] [nullable] ) –

the properties of the stream


Wp.SiStream.get_properties

def Wp.SiStream.get_properties (self):
    #python wrapper for 'wp_si_stream_get_properties'

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( Wp.Properties ) –

the properties of the stream


Wp.SiStream.prototype.get_properties

function Wp.SiStream.prototype.get_properties(): {
    // javascript wrapper for 'wp_si_stream_get_properties'
}

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( Wp.Properties ) –

the properties of the stream


wp_si_stream_get_registration_info

GVariant *
wp_si_stream_get_registration_info (WpSiStream * self)

This should return information that is used for registering the stream, as a GVariant tuple of type (sa{ss}) that contains, in order:

  • s: the stream's name
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self

the session item

Returns ( [transfer: full] ) –

registration info for the stream


Wp.SiStream.get_registration_info

def Wp.SiStream.get_registration_info (self):
    #python wrapper for 'wp_si_stream_get_registration_info'

This should return information that is used for registering the stream, as a GVariant tuple of type (sa{ss}) that contains, in order:

  • s: the stream's name
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( GLib.Variant ) –

registration info for the stream


Wp.SiStream.prototype.get_registration_info

function Wp.SiStream.prototype.get_registration_info(): {
    // javascript wrapper for 'wp_si_stream_get_registration_info'
}

This should return information that is used for registering the stream, as a GVariant tuple of type (sa{ss}) that contains, in order:

  • s: the stream's name
  • a{ss}: additional properties to be added to the list of global properties

Parameters:

self ( Wp.SiStream ) –

the session item

Returns ( GLib.Variant ) –

registration info for the stream


Signals

stream-properties-changed

stream_properties_changed_callback (WpSiStream * self,
                                    gpointer user_data)

Parameters:

self
No description available
user_data
No description available

Flags: Run Last


stream-properties-changed

def stream_properties_changed_callback (self, *user_data):
    #python callback for the 'stream-properties-changed' signal

Parameters:

self ( Wp.SiStream ) –
No description available
user_data ( variadic ) –
No description available

Flags: Run Last


stream-properties-changed

function stream_properties_changed_callback(self: Wp.SiStream, user_data: Object): {
    // javascript callback for the 'stream-properties-changed' signal
}

Parameters:

self ( Wp.SiStream ) –
No description available
user_data ( Object ) –
No description available

Flags: Run Last


Virtual Methods

get_parent_endpoint

WpSiEndpoint *
get_parent_endpoint (WpSiStream * self)

Parameters:

self
No description available
Returns
No description available

do_get_parent_endpoint

def do_get_parent_endpoint (self):
    #python implementation of the 'get_parent_endpoint' virtual method

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( Wp.SiEndpoint ) –
No description available

vfunc_get_parent_endpoint

function vfunc_get_parent_endpoint(self: Wp.SiStream): {
    // javascript implementation of the 'get_parent_endpoint' virtual method
}

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( Wp.SiEndpoint ) –
No description available

get_properties

WpProperties *
get_properties (WpSiStream * self)

Parameters:

self
No description available
Returns
No description available

do_get_properties

def do_get_properties (self):
    #python implementation of the 'get_properties' virtual method

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( Wp.Properties ) –
No description available

vfunc_get_properties

function vfunc_get_properties(self: Wp.SiStream): {
    // javascript implementation of the 'get_properties' virtual method
}

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( Wp.Properties ) –
No description available

get_registration_info

GVariant *
get_registration_info (WpSiStream * self)

Parameters:

self
No description available
Returns
No description available

do_get_registration_info

def do_get_registration_info (self):
    #python implementation of the 'get_registration_info' virtual method

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( GLib.Variant ) –
No description available

vfunc_get_registration_info

function vfunc_get_registration_info(self: Wp.SiStream): {
    // javascript implementation of the 'get_registration_info' virtual method
}

Parameters:

self ( Wp.SiStream ) –
No description available
Returns ( GLib.Variant ) –
No description available

WpSiStreamAcquisition

This interface provides a way to request a stream for linking before doing so. This allows endpoint implementations to apply internal policy rules (such as, streams that can only be linked once or mutually exclusive streams).

A WpSiStreamAcquisition is associated directly with a WpSiEndpoint via wp_si_endpoint_get_stream_acquisition. In order to allow switching policies, it is recommended that endpoint implementations use a separate session item to implement this interface and allow replacing it.


Wp.SiStreamAcquisition

This interface provides a way to request a stream for linking before doing so. This allows endpoint implementations to apply internal policy rules (such as, streams that can only be linked once or mutually exclusive streams).

A Wp.SiStreamAcquisition is associated directly with a Wp.SiEndpoint via Wp.SiEndpoint.get_stream_acquisition. In order to allow switching policies, it is recommended that endpoint implementations use a separate session item to implement this interface and allow replacing it.


Wp.SiStreamAcquisition

This interface provides a way to request a stream for linking before doing so. This allows endpoint implementations to apply internal policy rules (such as, streams that can only be linked once or mutually exclusive streams).

A Wp.SiStreamAcquisition is associated directly with a Wp.SiEndpoint via Wp.SiEndpoint.prototype.get_stream_acquisition. In order to allow switching policies, it is recommended that endpoint implementations use a separate session item to implement this interface and allow replacing it.


Methods

wp_si_stream_acquisition_acquire

wp_si_stream_acquisition_acquire (WpSiStreamAcquisition * self,
                                  WpSiLink * acquisitor,
                                  WpSiStream * stream,
                                  GAsyncReadyCallback callback,
                                  gpointer data)

Acquires the stream for linking by acquisitor.

When a link is not allowed by policy, this operation should return an error.

When a link needs to be delayed for a short amount of time (ex. to apply a fade out effect on another stream), this operation should finish with a delay. It is safe to assume that after this operation completes, the stream will be linked immediately.

Parameters:

self

the session item

acquisitor

the link that is trying to acquire a stream

stream

the stream that is being acquired

callback ( [scope async] ) –

the callback to call when the operation is done

data ( [closure] ) –

user data for callback


Wp.SiStreamAcquisition.acquire

def Wp.SiStreamAcquisition.acquire (self, acquisitor, stream, callback, *data):
    #python wrapper for 'wp_si_stream_acquisition_acquire'

Acquires the stream for linking by acquisitor.

When a link is not allowed by policy, this operation should return an error.

When a link needs to be delayed for a short amount of time (ex. to apply a fade out effect on another stream), this operation should finish with a delay. It is safe to assume that after this operation completes, the stream will be linked immediately.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

acquisitor ( Wp.SiLink ) –

the link that is trying to acquire a stream

stream ( Wp.SiStream ) –

the stream that is being acquired

callback ( Gio.AsyncReadyCallback ) –

the callback to call when the operation is done

data ( variadic ) –

user data for callback


Wp.SiStreamAcquisition.prototype.acquire

function Wp.SiStreamAcquisition.prototype.acquire(acquisitor: Wp.SiLink, stream: Wp.SiStream, callback: Gio.AsyncReadyCallback, data: Object): {
    // javascript wrapper for 'wp_si_stream_acquisition_acquire'
}

Acquires the stream for linking by acquisitor.

When a link is not allowed by policy, this operation should return an error.

When a link needs to be delayed for a short amount of time (ex. to apply a fade out effect on another stream), this operation should finish with a delay. It is safe to assume that after this operation completes, the stream will be linked immediately.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

acquisitor ( Wp.SiLink ) –

the link that is trying to acquire a stream

stream ( Wp.SiStream ) –

the stream that is being acquired

callback ( Gio.AsyncReadyCallback ) –

the callback to call when the operation is done

data ( Object ) –

user data for callback


wp_si_stream_acquisition_acquire_finish

gboolean
wp_si_stream_acquisition_acquire_finish (WpSiStreamAcquisition * self,
                                         GAsyncResult * res,
                                         GError ** error)

Finishes the operation started by wp_si_stream_acquisition_acquire. This is meant to be called in the callback that was passed to that method.

Parameters:

self

the session item

res

the async result

error ( [out] [optional] ) –

the operation's error, if it occurred

Returns

TRUE on success, FALSE if there was an error


Wp.SiStreamAcquisition.acquire_finish

@raises(GLib.GError)
def Wp.SiStreamAcquisition.acquire_finish (self, res):
    #python wrapper for 'wp_si_stream_acquisition_acquire_finish'

Finishes the operation started by Wp.SiStreamAcquisition.acquire. This is meant to be called in the callback that was passed to that method.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

res ( Gio.AsyncResult ) –

the async result

Returns ( bool ) –

True on success, False if there was an error


Wp.SiStreamAcquisition.prototype.acquire_finish

function Wp.SiStreamAcquisition.prototype.acquire_finish(res: Gio.AsyncResult): {
    // javascript wrapper for 'wp_si_stream_acquisition_acquire_finish'
}

Finishes the operation started by Wp.SiStreamAcquisition.prototype.acquire. This is meant to be called in the callback that was passed to that method.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

res ( Gio.AsyncResult ) –

the async result

Returns ( Number ) –

true on success, false if there was an error


wp_si_stream_acquisition_release

wp_si_stream_acquisition_release (WpSiStreamAcquisition * self,
                                  WpSiLink * acquisitor,
                                  WpSiStream * stream)

Releases the stream, which means that it is being unlinked.

Parameters:

self

the session item

acquisitor

the link that had previously acquired the stream

stream

the stream that is being released


Wp.SiStreamAcquisition.release

def Wp.SiStreamAcquisition.release (self, acquisitor, stream):
    #python wrapper for 'wp_si_stream_acquisition_release'

Releases the stream, which means that it is being unlinked.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

acquisitor ( Wp.SiLink ) –

the link that had previously acquired the stream

stream ( Wp.SiStream ) –

the stream that is being released


Wp.SiStreamAcquisition.prototype.release

function Wp.SiStreamAcquisition.prototype.release(acquisitor: Wp.SiLink, stream: Wp.SiStream): {
    // javascript wrapper for 'wp_si_stream_acquisition_release'
}

Releases the stream, which means that it is being unlinked.

Parameters:

self ( Wp.SiStreamAcquisition ) –

the session item

acquisitor ( Wp.SiLink ) –

the link that had previously acquired the stream

stream ( Wp.SiStream ) –

the stream that is being released


Virtual Methods

acquire

acquire (WpSiStreamAcquisition * self,
         WpSiLink * acquisitor,
         WpSiStream * stream,
         GAsyncReadyCallback callback,
         gpointer data)

Parameters:

self
No description available
acquisitor
No description available
stream
No description available
callback
No description available
data
No description available

do_acquire

def do_acquire (self, acquisitor, stream, callback, *data):
    #python implementation of the 'acquire' virtual method

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
acquisitor ( Wp.SiLink ) –
No description available
stream ( Wp.SiStream ) –
No description available
callback ( Gio.AsyncReadyCallback ) –
No description available
data ( variadic ) –
No description available

vfunc_acquire

function vfunc_acquire(self: Wp.SiStreamAcquisition, acquisitor: Wp.SiLink, stream: Wp.SiStream, callback: Gio.AsyncReadyCallback, data: Object): {
    // javascript implementation of the 'acquire' virtual method
}

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
acquisitor ( Wp.SiLink ) –
No description available
stream ( Wp.SiStream ) –
No description available
callback ( Gio.AsyncReadyCallback ) –
No description available
data ( Object ) –
No description available

acquire_finish

gboolean
acquire_finish (WpSiStreamAcquisition * self,
                GAsyncResult * res,
                GError ** error)

Parameters:

self
No description available
res
No description available
error
No description available
Returns
No description available

do_acquire_finish

def do_acquire_finish (self, res):
    #python implementation of the 'acquire_finish' virtual method

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
res ( Gio.AsyncResult ) –
No description available
Returns ( bool ) –
No description available

vfunc_acquire_finish

function vfunc_acquire_finish(self: Wp.SiStreamAcquisition, res: Gio.AsyncResult): {
    // javascript implementation of the 'acquire_finish' virtual method
}

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
res ( Gio.AsyncResult ) –
No description available
Returns ( Number ) –
No description available

release

release (WpSiStreamAcquisition * self,
         WpSiLink * acquisitor,
         WpSiStream * stream)

Parameters:

self
No description available
acquisitor
No description available
stream
No description available

do_release

def do_release (self, acquisitor, stream):
    #python implementation of the 'release' virtual method

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
acquisitor ( Wp.SiLink ) –
No description available
stream ( Wp.SiStream ) –
No description available

vfunc_release

function vfunc_release(self: Wp.SiStreamAcquisition, acquisitor: Wp.SiLink, stream: Wp.SiStream): {
    // javascript implementation of the 'release' virtual method
}

Parameters:

self ( Wp.SiStreamAcquisition ) –
No description available
acquisitor ( Wp.SiLink ) –
No description available
stream ( Wp.SiStream ) –
No description available

Constants

WP_TYPE_SI_ENDPOINT

#define WP_TYPE_SI_ENDPOINT (wp_si_endpoint_get_type ())

The WpSiEndpoint GType


WP_TYPE_SI_PORT_INFO

#define WP_TYPE_SI_PORT_INFO (wp_si_port_info_get_type ())

The WpSiPortInfo GType


WP_TYPE_SI_STREAM

#define WP_TYPE_SI_STREAM (wp_si_stream_get_type ())

The WpSiStream GType


WP_TYPE_SI_STREAM_ACQUISITION

#define WP_TYPE_SI_STREAM_ACQUISITION (wp_si_stream_acquisition_get_type ())

The WpSiStreamAcquisition GType


The results of the search are