This defines conformance to the Basic Video Player device type.

A Video Player (either Basic or Casting) represents a device that is able to play media to a physical output or to a display screen which is part of the device.

A Basic Video Player has playback controls (play, pause, etc.) and keypad remote controls (up, down, number input), but is not able to launch content and is not a content app platform (the Casting Video Player device type is used for these functions).

For example, a Basic Video Player can be a traditional TV device a physical media playback device such as a DVD Player, or a device that provides input to another device like a TV or computer monitor.

Please see Video Player Architecture for additional Basic Video Player requirements relating to Video Player device endpoint composition, commissioning, feature representation in clusters, and UI context.

MatterSpecification.v13.Device § 10.2

interface BasicVideoPlayerDevice {
    behaviors: {
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    } & {
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    };
    defaults: StateOf<{
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }>;
    deviceClass: DeviceClassification;
    deviceRevision: number;
    deviceType: DeviceTypeId;
    name: "BasicVideoPlayer";
    requirements: typeof BasicVideoPlayerRequirements;
    set(defaults: InputStateOf<{
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }>): With<For<{
        behaviors: {
            onOff: typeof OnOffServer;
        } & {
            mediaPlayback: typeof MediaPlaybackServer;
        } & {
            keypadInput: typeof KeypadInputServer;
        };
        deviceRevision: 2;
        deviceType: 40;
        name: "BasicVideoPlayer";
        requirements: typeof BasicVideoPlayerRequirements;
    }>, {
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }>;
    with<const BL>(...behaviors: BL): With<For<{
        behaviors: {
            onOff: typeof OnOffServer;
        } & {
            mediaPlayback: typeof MediaPlaybackServer;
        } & {
            keypadInput: typeof KeypadInputServer;
        };
        deviceRevision: 2;
        deviceType: 40;
        name: "BasicVideoPlayer";
        requirements: typeof BasicVideoPlayerRequirements;
    }>, With<{
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }, BL>>;
}

Hierarchy (view full)

Properties

behaviors: {
    onOff: typeof OnOffServer;
} & {
    mediaPlayback: typeof MediaPlaybackServer;
} & {
    keypadInput: typeof KeypadInputServer;
} & {
    onOff: typeof OnOffServer;
} & {
    mediaPlayback: typeof MediaPlaybackServer;
} & {
    keypadInput: typeof KeypadInputServer;
}
defaults: StateOf<{
    onOff: typeof OnOffServer;
} & {
    mediaPlayback: typeof MediaPlaybackServer;
} & {
    keypadInput: typeof KeypadInputServer;
}>

Access default state values.

deviceRevision: number
deviceType: DeviceTypeId
name
requirements: typeof BasicVideoPlayerRequirements

Methods

  • Define an endpoint like this one with different defaults. Only updates values present in the input object.

    Parameters

    Returns With<For<{
        behaviors: {
            onOff: typeof OnOffServer;
        } & {
            mediaPlayback: typeof MediaPlaybackServer;
        } & {
            keypadInput: typeof KeypadInputServer;
        };
        deviceRevision: 2;
        deviceType: 40;
        name: "BasicVideoPlayer";
        requirements: typeof BasicVideoPlayerRequirements;
    }>, {
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }>

  • Define an endpoint like this one with additional and/or replacement server behaviors.

    Type Parameters

    • const BL extends List

    Parameters

    • Rest...behaviors: BL

    Returns With<For<{
        behaviors: {
            onOff: typeof OnOffServer;
        } & {
            mediaPlayback: typeof MediaPlaybackServer;
        } & {
            keypadInput: typeof KeypadInputServer;
        };
        deviceRevision: 2;
        deviceType: 40;
        name: "BasicVideoPlayer";
        requirements: typeof BasicVideoPlayerRequirements;
    }>, With<{
        onOff: typeof OnOffServer;
    } & {
        mediaPlayback: typeof MediaPlaybackServer;
    } & {
        keypadInput: typeof KeypadInputServer;
    }, BL>>