Documentation
    Preparing search index...

    Interface MediaState

    Media playback state reported by the napplet.

    const state: MediaState = {
    status: 'playing',
    position: 42.5,
    duration: 240,
    volume: 0.8,
    };
    interface MediaState {
        duration?: number;
        position?: number;
        status: "playing" | "paused" | "stopped" | "buffering";
        volume?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    duration?: number

    Total duration in seconds.

    position?: number

    Current playback position in seconds.

    status: "playing" | "paused" | "stopped" | "buffering"

    Current playback status.

    volume?: number

    Napplet-side volume (0.0 to 1.0). Shell volume is separate.