Go to index / Go to protocols

zkde_screencast_unstable_v1 ↗

zkde_screencast_unstable_v1
zkde_screencast_unstable_v1

Version 6

Protocol for managing PipeWire feeds of the different displays and windows

Warning! The protocol described in this file is a desktop environment implementation detail. Regular clients must not use this protocol. Backward incompatible changes may be added without bumping the major version of the extension.

zkde_screencast_unstable_v1
enum pointer {
    hidden = 1,
    embedded = 2,
    metadata = 4,
}
  • hidden — No cursor
  • embedded — Render the cursor on the stream
  • metadata — Send metadata about where the cursor is through PipeWire

Stream consumer attachment attributes

zkde_screencast_unstable_v1
request stream_output(
    stream: new_id<zkde_screencast_stream_unstable_v1>,
    output: object<wl_output>,
    pointer: uint,
)
  • pointer — Requested pointer mode

requests a feed from a given source

zkde_screencast_unstable_v1
request stream_window(
    stream: new_id<zkde_screencast_stream_unstable_v1>,
    window_uuid: string,
    pointer: uint,
)
  • window_uuid — window Identifier
  • pointer — Requested pointer mode

requests a feed from a given source

zkde_screencast_unstable_v1
request destroy()
Destructor

    Destroy the zkde_screencast_unstable_v1

    Destroy the zkde_screencast_unstable_v1 object.

    zkde_screencast_unstable_v1
    request stream_virtual_output(
        stream: new_id<zkde_screencast_stream_unstable_v1>,
        name: string,
        width: int,
        height: int,
        scale: fixed,
        pointer: uint,
    )
    Available since version 2
    • name — name of the created output
    • width — Logical width resolution
    • height — Logical height resolution
    • scale — Scaling factor of the display where it's to be displayed
    • pointer — Requested pointer mode

    requests a feed from a new virtual output

    zkde_screencast_unstable_v1
    request stream_region(
        stream: new_id<zkde_screencast_stream_unstable_v1>,
        x: int,
        y: int,
        width: uint,
        height: uint,
        scale: fixed,
        pointer: uint,
    )
    Available since version 3
    • x — Logical left position
    • y — Logical top position
    • width — Logical width resolution
    • height — Logical height resolution
    • scale — Scaling factor of the output recording
    • pointer — Requested pointer mode

    requests a feed from region in the workspace

    Since version 5, the compositor will choose the highest scale factor for the region if the given scale is 0.0.

    zkde_screencast_unstable_v1
    request stream_virtual_output_with_description(
        stream: new_id<zkde_screencast_stream_unstable_v1>,
        name: string,
        description: string,
        width: int,
        height: int,
        scale: fixed,
        pointer: uint,
    )
    Available since version 4
    • name — name of the created output
    • description — user visible description of the created output
    • width — Logical width resolution
    • height — Logical height resolution
    • scale — Scaling factor of the display where it's to be displayed
    • pointer — Requested pointer mode

    requests a feed from a new virtual output

    zkde_screencast_unstable_v1
    zkde_screencast_stream_unstable_v1

    Version 6
    zkde_screencast_stream_unstable_v1
    request close()
    Destructor

      Indicates we are done with the stream and the communication is over.

      zkde_screencast_stream_unstable_v1
      event closed()

        Notifies that the server has stopped the stream. Clients should now call close.

        zkde_screencast_stream_unstable_v1
        event created(
            node: uint,
        )
        Deprecated since version 6
        • node — node of the pipewire buffer

        Notifies about a pipewire feed being created

        Deprecated since version 6, use the object serial from the serial event instead

        zkde_screencast_stream_unstable_v1
        event failed(
            error: string,
        )
        • error — A human readable translated error message.

        Offers an error message so the client knows the created event will not arrive, and the client should close the resource.

        zkde_screencast_stream_unstable_v1
        event serial(
            object_serial_hi: uint,
            object_serial_low: uint,
        )
        Available since version 6
        • object_serial_hi — high bits of the pipewire object serial
        • object_serial_low — low bits of the pipewire object serial

        the pipewire object serial

        The pipewire object serial of the stream. Should be preferred over the node id which is prone to id reuse. Will be sent before the created event.