TocEntry#
- class TocEntry(**kwargs)#
- Constructors:
new(type:Gst.TocEntryType, uid:str) -> Gst.TocEntry
Constructors#
- class TocEntry
- classmethod new(type: TocEntryType, uid: str) TocEntry #
Create new
TocEntry
structure.- Parameters:
type – entry type.
uid – unique ID (UID) in the whole TOC.
Methods#
- class TocEntry
- append_sub_entry(subentry: TocEntry) None #
Appends the
TocEntry
subentry
toentry
.- Parameters:
subentry – A
TocEntry
- get_entry_type() TocEntryType #
- get_loop() Tuple[bool, TocLoopType, int] #
Get
loop_type
andrepeat_count
values from theentry
and write them into appropriate storages. Loops are e.g. used by sampled instruments. GStreamer is not automatically applying the loop. The application can process this meta data and use it e.g. to send a seek-event to loop a section.Added in version 1.4.
- get_start_stop_times() Tuple[bool, int, int] #
Get
start
andstop
values from theentry
and write them into appropriate storages.
- merge_tags(tags: TagList | None, mode: TagMergeMode) None #
Merge
tags
into the existing tags ofentry
usingmode
.- Parameters:
tags – A
TagList
orNone
mode – A
TagMergeMode
- set_loop(loop_type: TocLoopType, repeat_count: int) None #
Set
loop_type
andrepeat_count
values for theentry
.Added in version 1.4.
- Parameters:
loop_type – loop_type value to set.
repeat_count – repeat_count value to set.