@3dsource/metabox-front-api
    Preparing search index...

    Class PlayShowcase

    Represents a command to play Showcase for a product when it is already initialized and paused. This class sends a command to the Metabox API to play showcase for a product if it is already initialized and paused.

    To listen for changes after sending this command, listen to the 'showcaseStatusChanged' event.

    Starts or resumes the showcase/timeline playback. Executes the internal MetaBox play command internally.

    Starts or resumes showcase playback. Use for 'Play Demo' buttons on landing pages, auto-play on page load, or resuming demos after inactivity timeout on kiosk displays.

    Call api.sendCommandToMetabox(new PlayShowcase()). Must call InitShowcase() first or it won't play. Subscribe to showcaseStatusChanged to track state. Auto-play pattern: wait for viewportReady → InitShowcase → PlayShowcase.

    import { Communicator,PlayShowcase } from '@3dsource/metabox-front-api';
    window.env3DSource.apiReady = (api: Communicator) => {
    //Subscribe to the event before sending the command to ensure you capture the response
    api.addEventListener('showcaseStatusChanged', (data) => {
    console.log('Showcase status value after changed:', data);
    });

    api.sendCommandToMetabox(new PlayShowcase());
    };
    Index

    Constructors

    Properties

    Constructors

    Properties

    data: ToMetaBoxMessageEnvelope

    The message envelope populated by subclass constructors and sent via Communicator.sendCommandToMetabox.