Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Represents a segment within a SyncMediaTimeline, containing information about all SyncMediaObjectRefs that will be played in parallel.

    interface ISyncMediaSegment {
        getApproximateDurationMs(): number;
        getDurationType(): SyncMediaSegmentDurationType;
        getMediaObjectRefs(): ISyncMediaObjectRef[];
        getReaderDocumentIndexInSpine(): number;
        toJSON(): ISyncMediaSegmentData;
    }

    Methods

    • Gets the duration of a segment. It is possible that this duration is updated during runtime as media is loaded and more information is available. If that happens, a syncMediaSegmentDurationChanged engine event will fire.

      Returns number

    • Get the index in spine of the reader document the segment is associated with.

      Returns number