Script API - v26.50.20
    Preparing search index...

    Class SoundDurationInfoRc

    Provides duration and playback information for a sound whose definition declares a duration.

    export class SoundDurationInfo {
    private constructor();
    readonly duration: number;
    readonly isActive: boolean;
    getPlaybackPosition(): number;
    }
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    duration: number

    Gets the total duration of the sound in seconds.

    This property can't be read in early-execution mode.

    isActive: boolean

    Gets whether the sound is still being tracked.

    This property can't be read in early-execution mode.

    Methods

    • Returns number

      Current playback position in seconds, measured from the beginning of the sound.

      Returns the current playback position within the sound, in seconds, measured from the beginning of the sound.

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.