Preview — our store opens soon.

krpano Plugins

Plugin krpano v1.0.0 New

Media Gallery

A lightbox for photos, MP4 videos and YouTube or Vimeo videos in your krpano tour, with zoom, swipe and a VR panel.

€39 One-time price, excl. VAT
Store opens soon Try the demo

Compatibility

Verified for krpano 1.23.2–1.24

How it works.

Hotspots that open a photo in a new browser tab take visitors out of the tour. Media Gallery opens photos, MP4 videos and YouTube or Vimeo videos in a lightbox over the panorama: visitors zoom into details, swipe on phones and return to the same view when they close it. Tour sounds, tour videos and autorotation pause while the gallery is open, and every setting is an attribute of one XML element.

Installation.

  1. 1

    Copy one folder

    Put the encrypted plugin folder into your tour and add one plugin element to your tour XML.

  2. 2

    Describe your galleries

    List photos, videos, captions and translations in a JSON file or in <data> elements of your tour XML.

  3. 3

    Open from any hotspot

    Call plugin[z360_media_gallery].open() from a hotspot or your own skin button; choose look and behaviour with attributes and six CSS variables.

Why it makes a difference.

Visitors stay in the tour

The gallery opens over the panorama and closes back to the same view; tour sounds, tour videos and autorotation pause and continue afterwards.

Details you can read

Zoom up to 4× with the mouse wheel, a double click, the keyboard or two fingers; a high-resolution file loads only when the visitor zooms in.

YouTube and Vimeo only after a click

YouTube and Vimeo load only after the visitor's click, then in YouTube's privacy-enhanced mode and with Vimeo's do-not-track parameter. This is a technical gate, not legal compliance: your duties as site operator stay yours.

Screenshots.

Try the demo
Desktop The lightbox over the museum tour: the 1748 plan of Rome with its caption and the thumbnail strip.
Phone The full-screen viewer on a phone.
Detail Zoomed into the plan of Rome: the detail comes from the high-resolution file.
The lightbox over the museum tour: the 1748 plan of Rome with its caption and the thumbnail strip.

Desktop The lightbox over the museum tour: the 1748 plan of Rome with its caption and the thumbnail strip.

1 / 3

Settings.

Set as attributes in your tour XML.

SettingTypeDefaultDescription
active Yes / NotrueSwitches the gallery on or off at runtime; off closes it and refuses every open (default true).
source TextURL of a JSON file with galleries, relative to the tour's first XML file; empty (default) uses only <data> galleries.
deeplink ListreadGallery links in the page address: off, read (default: opens a linked photo at start) or readwrite (also keeps the shown item in the address). offreadreadwrite
close_on_scene_change Yes / NotrueCloses the gallery when the scene changes (default true).
loop Yes / NofalseAfter the last item the first one follows (default false).
thumbnails Yes / NotrueShows the thumbnail strip (default true); it is hidden anyway for a single item and in viewers lower than 500 px.
zoom Yes / NotrueZoom and pan of photos up to 4× (default true).
fullscreen ListmaximizeFullscreen button: maximize (default, media edge to edge inside the viewer), browser (browser fullscreen) or off. maximizebrowseroff
pause_tour Yes / NotruePauses tour sounds, tour videos and autorotation while the gallery is open and continues what it paused (default true).
theme ListdarkDark (default) or light colour scheme. darklight
accent_color Color#3D8BFFColour of the focus ring, the active thumbnail and the video consent button (default #3D8BFF).
vr Yes / NotrueShows the gallery as a panel in VR (default true); false refuses opening the gallery in VR.
vr_videoplayer Text%VIEWER%/plugins/videoplayer.jsPath of the official krpano videoplayer.js used for MP4 items in VR (default %VIEWER%/plugins/videoplayer.js).
debug Yes / NofalsePrints the number of galleries and items and missing alt texts to the browser console (default false).
text_gallery TextGalleryName of the gallery window for screen readers when the gallery has no title (default “Gallery”); a <languages> key or literal text.
text_close TextCloseLabel of the close button (default “Close”).
text_prev TextPreviousLabel of the previous button (default “Previous”).
text_next TextNextLabel of the next button (default “Next”).
text_fullscreen TextFull screenLabel of the fullscreen button (default “Full screen”).
text_counter Text%1 / %2Item counter; %1 is the position, %2 the number of items (default “%1 / %2”).
text_more TextMoreButton that expands a long caption on phones (default “More”).
text_consent TextThis video is loaded from %1, which may store data in your browser.Notice before a YouTube or Vimeo video loads; %1 is the service name (default “This video is loaded from %1, which may store data in your browser.”).
text_consent_button TextPlay videoButton that loads and starts a YouTube or Vimeo video (default “Play video”).
text_load_error TextThis item could not be loaded.Shown when a photo or video cannot be loaded (default “This item could not be loaded.”).
text_vr_unavailable TextThis video is available outside VR.Shown in VR instead of YouTube and Vimeo videos (default “This video is available outside VR.”).
Example
<plugin name="z360_media_gallery"
        url="plugins/z360_media_gallery/z360_media_gallery.js"
        keep="true"
        source="media/galleries.json"
        theme="dark"
        accent_color="#3D8BFF" />

<scene name="scene_hall" ...>
  <hotspot name="hs_photos" type="text" html="Photos" ath="30" atv="0"
           onclick="plugin[z360_media_gallery].open(rome_1748);" />
</scene>

Features

  • Photos, MP4 videos, YouTube and Vimeo videos in one gallery
  • Lightbox on wide screens, full-screen viewer on phones
  • Zoom and pan up to 4× with mouse wheel, double click or double tap, pinch and keys; optional high-resolution file loaded on zoom
  • Swipe to the next item, swipe down to close on touch screens
  • Thumbnail strip, captions with bold, italic and links, credit lines
  • Pauses tour sounds, tour videos and autorotation and continues only what it paused
  • YouTube and Vimeo load only after the visitor's click (privacy-enhanced mode / do-not-track)
  • Galleries from a JSON file or from <data> elements, texts in several languages
  • Links that open a gallery at a given photo: ?z360-media-gallery=gallery/item
  • VR panel for images with the krpano WebVR plugin
  • MP4 videos in the VR panel through the official krpano video player
  • Keyboard control, focus kept inside the gallery and screen reader announcements
  • Actions, read-only state attributes and events for your tour XML
  • Encrypted plugin file, every setting as an XML attribute

What's included

  • plugins/z360_media_gallery/z360_media_gallery.js (encrypted)
  • Manual (English)