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
TocEntrystructure.- Parameters:
type – entry type.
uid – unique ID (UID) in the whole TOC.
Methods#
- class TocEntry
- append_sub_entry(subentry: TocEntry) None#
Appends the
TocEntrysubentrytoentry.- Parameters:
subentry – A
TocEntry
- get_entry_type() TocEntryType#
- get_loop() tuple[bool, TocLoopType, int]#
Get
loop_typeandrepeat_countvalues from theentryand 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
startandstopvalues from theentryand write them into appropriate storages.
- merge_tags(tags: TagList | None, mode: TagMergeMode) None#
Merge
tagsinto the existing tags ofentryusingmode.- Parameters:
tags – A
TagListorNonemode – A
TagMergeMode
- set_loop(loop_type: TocLoopType, repeat_count: int) None#
Set
loop_typeandrepeat_countvalues for theentry.Added in version 1.4.
- Parameters:
loop_type – loop_type value to set.
repeat_count – repeat_count value to set.