Context

Added in version 1.2.

class Context(**kwargs)
Constructors:

new(context_type:str, persistent:bool) -> Gst.Context

Constructors

class Context
classmethod new(context_type: str, persistent: bool) Context

Creates a new context.

Added in version 1.2.

Parameters:
  • context_type – Context type

  • persistent – Persistent context

Methods

class Context
get_context_type() str

Gets the type of context.

Added in version 1.2.

get_structure() Structure

Accesses the structure of the context.

Added in version 1.2.

has_context_type(context_type: str) bool

Checks if context has context_type.

Added in version 1.2.

Parameters:

context_type – Context type to check.

is_persistent() bool

Checks if context is persistent.

Added in version 1.2.

writable_structure() Structure

Gets a writable version of the structure.

Added in version 1.2.