Vinyl
    Preparing search index...

    Interface PlaybackControllerImplOptions

    interface PlaybackControllerImplOptions {
        loopTimeAffordance: number;
        minSeekableBuffer: number;
        playTimeout: number;
        seekTimeout: number;
    }
    Index

    Properties

    loopTimeAffordance: number

    An affordance when comparing the last currentTime and the new currentTime after a seek. Most browsers have around 30-40 time updates per second, but some constrained devices only have a few. This value needs to be large enough where the last timeupdate in a looping track is at currentTime >= duration - LOOP_TIME_AFFORDANCE. Default: 2

    minSeekableBuffer: number

    The minimum number of seconds before the end of the next seekable range allowed for a seek operation. Some browsers will never complete a seek operation if the seek is too close to this end range. Default: getMinSeekableBufferDefault() which is between 0.5 and 5, browser dependent.

    playTimeout: number

    The number of seconds before the promise returned by play() is rejected regardless whether the media element response has settled. Default: 30

    seekTimeout: number

    The number of seconds before the promise returned by seek() is rejected. Default: 30