get_streams


Description:

public Variant get_streams ()

Obtains the streams that the user selected.

The information in the returned [[email protected]] has the format `a(ua{sv})`. Each item in the array is describing a stream. The first member is the pipewire node ID, the second is a dictionary of stream properties, including:

  • position, `(ii)`: a tuple consisting of the position `(x, y)` in the compositor coordinate space. Note that the position may not be equivalent to a position in a pixel coordinate space. Only available for monitor streams.
  • size, `(ii)`: a tuple consisting of (width, height). The size represents the size of the stream as it is displayed in the compositor coordinate space. Note that this size may not be equivalent to a size in a pixel coordinate space. The size may differ from the size of the stream.

Unless the session is active, this function returns `NULL`.

Parameters:

this

a [class@Session]

Returns:

the selected streams




2022 vala-language.org