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

    Represents a media resource in a SyncMediaTimeline.

    interface ISyncMediaObject {
        getDuration(): number;
        getResourceMetadata(): IResourceMetadata;
        toJSON(): ISyncMediaObjectData;
    }

    Methods

    • The duration of the media in milliseconds, or null if unknown. Note that this value is extracted from metadata and may not represent the actual duration of the media.

      Returns number

    • Get the ResourceMetadata instance associated with this media object. Use the ResourceProvider returned by SyncMediaTimeline.getResourceProvider() to fetch the resource.

      Returns IResourceMetadata