Repository navigation
v2.2.0
Release train 2.2 of the shared VideoOptimizer line (content elements): the same set of elements in all four plugins (single video, video next to text, background hero, spotlight, grid, list, detail), plus video with chapters, every format from one video (16:9, 9:16, 1:1, 4:5, 21:9 with focal point), play while scrolling and a floating mini player. Videos named in a detail URL are verified against the site's own organization.
Shopware also gets the product video in the product image gallery (6.6 and 6.7).
Upgrade
- The plugin extends the core template
storefront/utilities/video.html.twig(the video of a product is rendered through it; every other video falls through to the core template): themes that also override it have to extend or merge it, and a product with a video shows one more slide/thumbnail in its image gallery. The new settingproductVideoPlayerMode(native or hosted embed, default native) chooses the player (#48). - The video of a product is stored in the product's custom fields
scalecommerce_vo_product_videoandscalecommerce_vo_product_video_library(no entity, no migration, no custom field set); uninstalling leaves these keys in the products' custom fields, they are harmless (#48). - The native player no longer starts "Autoplay" (play while visible) for visitors with
prefers-reduced-motionor the browser's data saver: the poster and the controls stay (#45). - New storefront snippets (
scalecommerce-vo.storefront.*: scenes, video list, not found) and styles for the new elements; compile the theme (theme:compile) after the update (#45). - A hosted embed (
playerModeembed) of the single video element is sized to the video's own ratio instead of always 16:9 (portrait videos no longer sit in a landscape box); set the new format option to 16:9 to keep the old look (#47). - Scene previews load
<api base URL>/videos/{uuid}/thumbnails/{0-9}(public, redirects to the VideoOptimizer CDN); a Content-Security-Policyimg-srchas to allow the API host and*.cdn.videooptimizer.eu. The player plugin sets__scvoReadyon its element (#46). - New storefront plugin
ScalecommerceVoMini([data-scalecommerce-vo-mini]) and the optionminiPlayer(default off, stored in the slot config); the mini player does not combine with "Autoplay", which pauses a video that leaves the view (#49). - New element options
format,focalXandfocalY(single video, media split) are stored in the slot config; existing elements keep the original ratio. Themes can style the newscalecommerce-vo-surface--portrait/scalecommerce-vo-video--portraitclasses (max width 420 px) (#47).
Added
- Product video next to the product images (only galleries fed by the product's media get the slide): a card on the product detail page selects a video (library and gallery picker as in the CMS elements); the storefront (6.6 and 6.7) shows it as the last slide of the product image gallery with its poster in the thumbnail strip, a click plays it in place with sound (native or hosted player, setting
productVideoPlayerMode), it stops when the visitor moves to another slide; variants inherit the main product's video and can set their own (#48). - New CMS elements and blocks "Video list" (cards of a library's ready videos, optional tag filter, 3-48 per page with cursor links, filled up from up to three API pages so a page is not empty while older ready videos exist, linking to a detail page or opening the hosted player in a lightbox; one cached list request, no embed lookup per card, the page is tagged with the library and every listed video) and "Video detail" (video from
?vo_video=<uuid>, accepted only after an authenticated lookup proved it belongs to the token's organization and, if chosen, the element's library - the public embed proves nothing; cached 1 h (seeded by the video list, so a card's detail page costs no lookup), only a 404 is a miss (cached 5 min), 400/403/5xx and the limit of 30 uncached lookups per minute (crafted list cursors count too) are temporary; the URL video's embed is requested only after the check; not-found pages are tagged with the video; default video as fallback; neutral "not found" withnoindexand no title anywhere; "temporarily unavailable" during an API outage; page title, description and a per-video canonical from the verified video) (#45). - Floating mini player (option on the single video and chapters elements): while a playing video scrolls out of view (< 1 % visible) its box is pinned bottom right (320 px, 180 px for portrait formats, safe-area insets, below modals, from 600 px viewport width), the original place keeps its height, the video/iframe is never moved; close button (unpins and pauses; a hosted player is reloaded without autoplay) and Escape (unpins); scrolling back unpins; playback only counts as started by the visitor (a click or key on the player or a scene; autoplay and play-while-scrolling never pin), a hosted player once it is clicked or a scene was clicked, opening a lightbox unpins and pauses it, the focus moves to the player after closing (#49).
- New CMS element and block "Video with chapters": the player (native or hosted, shown directly) plus a row of 3-10 scene previews, the video's automatic thumbnails spread evenly with their start time (
duration / 11 * (i + 1)); a click jumps to the scene and plays (hosted: reloads the embed witht), the playing scene is markedaria-current; optional scene titles, one per line (#46). - Format option for the single video and media split elements: original, 16:9, 9:16, 1:1, 4:5 or 21:9; the video and poster cover the surface (
object-fit: cover, the hosted embed getsfit=cover), portrait formats are capped at 420 px width; an optional focal point (X/Y in percent) setsobject-position(not supported by the hosted embed) (#47).
API level: 2026-11-27