Strata - v1.4.10
    Preparing search index...

    Interface AmbientAudioProps

    Props for the AmbientAudio component.

    interface AmbientAudioProps {
        autoplay?: boolean;
        fadeTime?: number;
        loop?: boolean;
        onLoad?: () => void;
        url: string;
        volume?: number;
    }
    Index

    Properties

    autoplay?: boolean

    Whether to start playback on mount. Default: true.

    fadeTime?: number

    Duration in seconds for initial fade-in. Default: 2.0.

    loop?: boolean

    Whether to loop the track. Default: true.

    onLoad?: () => void

    Callback fired when the resource is loaded.

    url: string

    URL of the non-positional audio resource.

    volume?: number

    Volume multiplier (0-1). Default: 1.0.