Chartbreaker
    Preparing search index...

    Interface TimeRanges

    When loading a media resource for use by an audio or video element, the TimeRanges interface is used for representing the time ranges of the media resource that have been buffered, the time ranges that have been played, and the time ranges that are seekable.

    MDN Reference

    interface TimeRanges {
        length: number;
        end(index: number): number;
        start(index: number): number;
    }
    Index

    Properties

    Methods

    Properties

    length: number

    The TimeRanges.length read-only property returns the number of ranges in the object.

    MDN Reference

    Methods

    • The end() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.

      MDN Reference

      Parameters

      • index: number

      Returns number

    • The start() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.

      MDN Reference

      Parameters

      • index: number

      Returns number