DeepZoom scripting
    Preparing search index...

    Function infoVideo

    • Adds a video player to the info stack.

      Using the infoUrl, infoAudio, infoText, and infoVideo events, media and text can be shown on the Info tab. Multiple entries can be active simultaneously and are arranged in a vertical stack in order of addition.

      Parameters

      • json: {
            autoplay: boolean;
            height: string;
            removeExisting: boolean;
            src: string;
            type: string;
        } = ...
        • autoplay: boolean

          if true, autoplay the video

        • height: string

          the height specifying pixels or as a %

        • removeExisting: boolean

          if true, remove all existing content from the info stack

        • src: string

          a link to the video media. Must be served using https:

        • type: string

          "video"

      Returns void

      // add a YouTube video
      {
      type: "video",
      src: "https://www.youtube.com/embed/Uuh_T648J_8?si=gixgQKrwc-VfKWAs",
      height: "300px",
      autoplay: true,
      removeExisting: true,
      }

      // add a Vimeo video
      {
      type: "video",
      src: "https://player.vimeo.com/video/91950815?h=ead95446e6&color=050505&title=0&byline=0&portrait=0",
      height: "300px",
      autoplay: true,
      removeExisting: true,
      }