Gst.TocSetter

g GObject.GInterface GObject.GInterface Gst.TocSetter Gst.TocSetter GObject.GInterface->Gst.TocSetter

Implementations:

None

Methods

get_toc ()

reset ()

set_toc (toc)

Virtual Methods

None

Properties

None

Signals

None

Fields

None

Class Details

class Gst.TocSetter
Bases:

GObject.GInterface

Structure:

Gst.TocSetterInterface

Element interface that allows setting of the TOC.

Elements that support some kind of chapters or editions (or tracks like in the FLAC cue sheet) will implement this interface.

If you just want to retrieve the TOC in your application then all you need to do is watch for TOC messages on your pipeline’s bus (or you can perform TOC query). This interface is only for setting TOC data, not for extracting it. To set TOC from the application, find proper tocsetter element and set TOC using Gst.TocSetter.set_toc().

Elements implementing the Gst.TocSetter interface can extend existing TOC by getting extend UID for that (you can use Gst.Toc.find_entry() to retrieve it) with any TOC entries received from downstream.

get_toc()[source]
Returns:

TOC set, or None. Unref with gst_toc_unref() when no longer needed

Return type:

Gst.Toc or None

Return current TOC the setter uses. The TOC should not be modified without making it writable first.

reset()[source]

Reset the internal TOC. Elements should call this from within the state-change handler.

set_toc(toc)[source]
Parameters:

toc (Gst.Toc or None) – a Gst.Toc to set.

Set the given TOC on the setter. Previously set TOC will be unreffed before setting a new one.