Gst.Event.new_toc

function new_toc(toc:Gst.Toc, updated:Boolean):Gst.Event {
    // Gjs wrapper for gst_event_new_toc()
}

Generate a TOC event from the given toc. The purpose of the TOC event is to inform elements that some kind of the TOC was found.

toc

Gst.Toc structure.

updated

whether toc was updated or not.

Returns

a new Gst.Event.