Lens Scripting API

    Enumeration PlaybackModeWearable Only

    The Playback Mode property of the AudioComponent used in Lenses targeting Spectacles. Spectacles default all Playback Modes to Low Power.

    @component
    export class NewScript extends BaseScriptComponent {
    @input
    audio: AudioComponent;
    onAwake() {
    this.audio.playbackMode = Audio.PlaybackMode.LowLatency;
    }
    }
    Index

    Enumeration Members

    Enumeration Members

    LowLatency: number

    Minimizes audio playback latency but increases power usage for the Spectacles device. Recommended for audio requiring immediate auditory reaction, such as button press feedback.

    LowPower: number

    Reduces power usage for the Spectacles device. but introduces latency in audio playback. Suitable for ambient sounds or background music where slight delays are acceptable.

    MMNEPVFCICPMFPCPTTAAATR