Toc

class Toc(**kwargs)
Constructors:

new(scope:Gst.TocScope) -> Gst.Toc

Constructors

class Toc
classmethod new(scope: TocScope) Toc

Create a new Toc structure.

Parameters:

scope – scope of this TOC

Methods

class Toc
append_entry(entry: TocEntry) None

Appends the TocEntry entry to toc.

Parameters:

entry – A TocEntry

dump() None
find_entry(uid: str) TocEntry | None

Find TocEntry with given uid in the toc.

Parameters:

uid – UID to find TocEntry with.

get_entries() list[TocEntry]

Gets the list of TocEntry of toc.

get_scope() TocScope
get_tags() TagList | None

Gets the tags for toc.

merge_tags(tags: TagList | None, mode: TagMergeMode) None

Merge tags into the existing tags of toc using mode.

Parameters:
set_tags(tags: TagList | None = None) None

Set a TagList with tags for the complete toc.

Parameters:

tags – A TagList or None