Deliver fast, adaptive, CDN-hosted video on your Shopware storefront — managed right inside the admin.
Manage VideoOptimizer libraries and videos without leaving Shopware, then embed them anywhere in Shopping Experiences via five ready-to-use CMS elements/blocks. A privacy-friendly, high-performance alternative to YouTube, Vimeo and self-hosting — the API token stays server-side, proxied through Shopware.
Built and maintained by ScaleCommerce GmbH, the team behind VideoOptimizer. Part of the
scalecommerce/videooptimizer-<platform>plugin family.
- 📚 Library management — create and edit libraries (name, description) and their encoding ladder (codecs and resolutions), with add-on/unavailable options shown but disabled per the organization's plan; requeue all of a library's videos for re-encoding with the current ladder ("reprocess").
- ⬆️ Upload, URL import, rename, delete — upload via presigned multipart upload (transferred directly to storage, not through Shopware) with progress, cancel and automatic retries, or import a video from a public
https://URL. Processing is tracked in the background; large libraries load page by page. Deleting a video or a library asks for confirmation first. - 🖼️ Video detail overlay — pick the poster from 10 auto-generated frames, or upload a custom one (from disk or the Shopware media library); shows dimensions, duration and orientation.
- 🧱 Eight CMS elements/blocks —
Video,Media split,Background hero,Spotlight,Video grid,Video list,Video detailandVideo with chapters, each with a presentation mode (poster/facade, lightbox, or embedded directly) and a player mode (native adaptive HLS via hls.js, or the hosted VideoOptimizer embed). - ⚡ Storefront performance — the player code and hls.js (light build) load only on pages with a video, and segments only once playback starts; autoplaying videos run only while visible. Embed lookups of a page run concurrently and are cached per video.
- ♿ Accessible — titled embeds, keyboard-friendly facade and a lightbox built on a native modal
<dialog>(focus stays inside, inert background, Escape), a pause/play button for the background hero and for every autoplaying player without native controls, and no autoplay withprefers-reduced-motion. - 🗂️ Cache-aware — pages are tagged per video, so changes in the administration invalidate exactly the affected storefront pages; a page rendered during an API outage is cached for 60 seconds only.
- 🔐 Token never touches the browser — stored server-side in the plugin configuration; all admin and storefront traffic to VideoOptimizer is proxied through Shopware. The administration only offers the actions a user's role allows and explains a missing token or permission.
- 🧩 Runs on 6.6 and 6.7 — compiled administration (6.6 webpack + 6.7 Vite) and storefront assets are shipped, no build step required.
Why deliver video through VideoOptimizer's CDN?
Video is the heaviest asset on most shop pages. Where it is hosted decides your page speed, your bandwidth bill, your conversion rate and your data-protection exposure.
- Traffic stays off your server. Every play of a self-hosted video streams gigabytes straight from your web/origin server, competing with real shop requests and running up egress cost. VideoOptimizer serves every byte from edge CDN nodes, so your Shopware instance stays fast even during campaigns and traffic spikes.
- Adaptive bitrate (HLS) instead of one big file. VideoOptimizer automatically transcodes each upload into multiple resolutions (up to 4K) and streams HLS: the player picks the optimal quality for each visitor's device and connection — instant start, no buffering, no wasted mobile data.
- No manual encoding. Upload once; VideoOptimizer handles transcoding, posters and thumbnails.
- Better Core Web Vitals. Offloading heavy video improves LCP and overall storefront performance.
- Your brand, not theirs. No foreign logos, no "up next" suggestions, no ads and no recommended competitor videos pulling customers out of your shop.
- Privacy & GDPR-friendly. YouTube/Vimeo embeds set third-party tracking cookies and load external scripts, forcing intrusive consent banners. VideoOptimizer streams your video from an EU-based CDN without ad-tracking.
- Full control & reliability. Your content isn't subject to a third-party platform's algorithm, regional blocks, monetisation rules or sudden takedowns.
| Self-hosted MP4 | YouTube / Vimeo | VideoOptimizer | |
|---|---|---|---|
| Server traffic / egress cost | High (from your origin) | Low | Low (edge CDN) |
| Adaptive streaming (HLS) | ✗ | ✓ | ✓ (up to 4K) |
| Storefront performance | ✗ (origin load) | ~ | ✓ (offloaded, optimized) |
| Own branding, no ads | ✓ | ✗ | ✓ |
| Privacy / GDPR, no tracking cookies | ✓ | ✗ | ✓ (EU CDN) |
| Automatic transcoding & thumbnails | ✗ | ✓ | ✓ |
- Shopware 6.6.x or 6.7.x
- PHP as required by your Shopware version (≥ 8.2)
- A VideoOptimizer account and API token (format
vp_...) — create one at https://videooptimizer.eu/ (see https://api.videooptimizer.eu/ for the API) - The token needs the
library:viewpermission for the org-wide video listing (browsing videos across all libraries); write operations (upload, import from URL, reprocess) require a self-hosted ("media managed") library
- Install
composer require scalecommerce/videooptimizer-shopware bin/console plugin:refresh bin/console plugin:install --activate ScaleVideoOptimizer bin/console cache:clear
- Add your token. Open Settings → System → Plugins → VideoOptimizer and paste your
vp_...API token. - Open the module. Go to Content → VideoOptimizer to create a library and manage videos.
Compiled administration (6.6 webpack build and 6.7 Vite build) and storefront assets ship with the plugin, so no build step is required for a normal install. If your project recompiles the storefront theme (e.g. after changing SCSS elsewhere), run the usual:
bin/console theme:compileManual install (without Composer/Packagist)
Place the plugin under custom/plugins/ScaleVideoOptimizer, then run the usual plugin lifecycle:
bin/console plugin:refresh
bin/console plugin:install --activate ScaleVideoOptimizer
bin/console cache:clearBuilding from source
The repository ships pre-compiled administration and storefront assets, so building from source is only needed when working on the plugin itself:
bin/build-administration.sh # rebuild the admin bundle (webpack for 6.6, Vite for 6.7)
bin/build-storefront.sh # rebuild the storefront JS/CSSTo package a release build (.zip) for the Shopware Store or manual distribution:
shopware-cli extension build custom/plugins/ScaleVideoOptimizerUnder Settings → System → Plugins → VideoOptimizer:
| Field | Description |
|---|---|
apiToken |
Your VideoOptimizer API token (vp_...). |
apiBaseUrl |
API base URL, must be https://. Default: https://api.videooptimizer.eu/api/v1. |
embedBaseUrl |
Public host serving the hosted embed player, must be https://. Default: https://player.videooptimizer.eu. Existing installations that still use https://videooptimizer.eu keep working. |
jsonLd |
Output a schema.org VideoObject (JSON-LD) once per video on a page (default on). Switch off if your theme or SEO plugin already outputs one. Like all plugin settings it is global, not per sales channel. |
ownershipIndexInterval |
Minutes between rebuilds of the ownership index (5 to 1440, default 15), see Video detail at scale. |
lookupBudgetSite / lookupBudgetClient |
Uncached lookups per minute for the whole shop (default 30) and per client (default 10), 1 to 1000: video detail pages while the ownership index is missing, incomplete or the video not ready, and list follow-up pages (cursors from the URL). |
blockPrivateNetworks |
Refuse connections to private, loopback and link-local addresses, also behind host names and redirects (default on). Switch off for a self-hosted VideoOptimizer on a private network; not applied behind an outbound proxy. |
The module is gated by the scalecommerce_vo privilege group under Content, with the usual four roles:
| Role | Grants |
|---|---|
| Viewer | Read libraries, videos, encodings, thumbnails |
| Editor | Update libraries and videos, select/upload posters and thumbnails, reprocess a library |
| Creator | Create libraries, upload/import videos (depends on viewer + editor) |
| Deleter | Delete videos and libraries |
Poster and thumbnail selection and library reprocessing require update; deleting videos or libraries requires delete.
The administration only shows the actions a user may perform. CMS editors who place VideoOptimizer
elements in Shopping Experiences need at least the Viewer role, independent of their CMS permissions;
without it, the element configuration explains which permission is missing. The product video card on the
product detail page is shown only with the Viewer role, and only users with product.editor can change it.
Shopware MCP server. The API token is stored in the system configuration. If you connect an MCP client
to Shopware's (experimental) MCP server, its system_config:read privilege exposes the token
(ScaleVideoOptimizer.config.apiToken) to that client. Grant it only to clients you trust, or give the
token the narrowest permissions in your VideoOptimizer account. The plugin registers no MCP tools.
Open Content → VideoOptimizer. The page is organized in tabs for the selected library: Videos, Library (name, description, encoding ladder), Subtitles, Webhook and index and Savings; while you create a library only its form is shown. A missing or rejected token shows one banner with a link to the plugin configuration instead of the tabs.
- Create a library, edit its name/description and encoding ladder, and trigger reprocess to requeue all of its videos for re-encoding with the current ladder.
- Add a video via file upload (drag and drop or choose a file; presigned, direct to storage) or URL import; rename or delete a video from its tile's context menu.
- Open a video's detail overlay to pick a poster (10 auto-generated frames), upload a custom one, or choose one from the Shopware media library.
VideoOptimizer can report finished and failed videos, so cached embeds and pages refresh at once. In VideoOptimizer
create a webhook (Integrations, Webhooks) with the URL shown in the module's Webhook card
(https://<your admin host>/api/scalecommerce-vo/webhook) and enter its signing secret in the plugin setting
Webhook secret. The route needs no login; every delivery is checked by its HMAC-SHA256 signature, deliveries older
than five minutes and repeated deliveries are ignored.
A video detail page (?vo_video=<uuid>) must only show videos of your organization. The plugin keeps an ownership
index, a compact snapshot of all your videos (uuid, library, ready), built from GET /videos (100 per page, all
libraries; the API token needs the library:view permission; 1,000 videos cost 10 calls) and stored in Shopware's
object cache (cache.object), scoped by token. With a fresh index a detail page is verified without an API call per
video: an own, ready video is shown and an unknown uuid is "not found" (noindex). A video that is not ready yet is
checked with the per-uuid lookup (cached, budgeted), so it appears within about a minute of being ready.
- Refresh: the scheduled task
scalecommerce_vo.refresh_ownership_indexruns every five minutes and rebuilds when the index is older thanownershipIndexInterval(default 15 minutes). It never runs in a visitor's request. It needs the Shopware scheduled tasks to run: a cron job forbin/console scheduled-task:run/messenger:consume. If only the admin worker is used, the index refreshes only while an administration user is logged in. Runbin/console scalecommerce:vo:index(state:--status) by hand, and in your deploy scripts: the index lives incache.object, which a cache clear or a plugin update drops (until then video details use the per-uuid lookup). The state and a "Rebuild index now" button are also in the VideoOptimizer module (Webhook card). - Updates in between: admin changes (upload, URL import, delete, library delete) and the webhook events
video.readyandvideo.failed(what VideoOptimizer sends;video.deletedandvideo.updatedare handled if they ever arrive) update the index at once. Without webhooks a video that is new since the last refresh is "not found" for up to the refresh interval; such a "not found" page is cached for at most five minutes and tagged with the video, so a refresh or webhook shows it (on Shopware 6.6 the page is also dropped from the Store API route cache right after the response, like a degraded page). - Several servers: the index lives in
cache.objectand the build lock (Symfony lock,LOCK_DSN, defaultflock= per host). With more than one web node use a sharedcache.object(e.g. Redis) and a sharedLOCK_DSN; otherwise a node does not see the index that the worker built (it then fails safe to the per-uuid lookup) and builds can overlap. - Fallback: an index older than twice the interval counts as missing; an index that was cut off by the time (20 s)
or page (200 pages = 20,000 videos) budget can confirm videos but not rule them out. In both cases, and for videos
that are not ready, the per-uuid lookup with its budget stays in place. The budget settings (
lookupBudgetSite,lookupBudgetClient) also apply to the follow-up pages of the video list (their cursors come from the URL).
In a Shopping Experiences layout, add one of the eight VideoOptimizer blocks from the Video category:
Video, Media split, Background hero, Spotlight, Video grid, Video list, Video detail,
Video with chapters. Pick a video (or videos, for the grid)
via the gallery picker, then configure per element:
- Presentation mode — poster/facade, lightbox, or embedded directly (background hero is always a
decorative background video: it starts when visible, has a pause button and stays on its poster for
visitors with
prefers-reduced-motionor the browser's data saver; "priority" starts buffering right away). - Player mode — native adaptive HLS player (hls.js) or the hosted VideoOptimizer embed (iframe), each with its own controls/autoplay/muted/loop options.
- Player theme and subtitles — the native player applies the video's player theme from VideoOptimizer
(controls, autoplay with muted start, loop, preload, non-interactive, no fullscreen/playback-rate/Picture-in-Picture,
play button shape and size, accent colour as
--vo-accent) and shows its subtitle tracks. The theme'spreload: autois capped tometadatafor native players: video is only downloaded on play. Control bar colour, volume, time display and quality menu cannot be changed on the browser's native controls and are ignored; the hosted embed applies the whole theme itself.
Video list and video detail. The list shows cards (poster, title, duration) of the ready videos of a
library, optionally only those with all chosen tags, 3-48 per page with "More videos" links (the API
cursor; other query parameters stay, except those the page cache ignores, e.g. utm_* or gclid: shopware.http_cache.ignored_url_parameters). A card links to a page with a Video detail element (choose it as
"Detail page"; the video's UUID is added as ?vo_video=<uuid>) or, without a detail page, opens the hosted
player in a lightbox. The cards come from one cached list request (5 minutes) and need no request per video;
the responsive poster sizes are used for videos whose embed is cached anyway. The detail element shows the
video from the URL (only videos of its library, anything else shows a neutral "not found" and the page is set to
noindex), otherwise its default video; the page title becomes the video title. While the API cannot answer
(outage, rate limit, exhausted lookup budget) the page says "temporarily unavailable" and is answered with
503 and Retry-After: 60 (no noindex, no video title; a follow-up list page likewise). Videos from the URL
that are not cached yet need one API lookup each: 30 per minute for the whole shop, of which one visitor (IP,
IPv6 per /64) can use 10 (behind a reverse proxy or CDN set Shopware's TRUSTED_PROXIES, otherwise all visitors count as one client); verified videos are remembered for 24 hours (changes in the admin or via webhook drop them).
Video with chapters. The player (shown directly) with 3-10 scene previews below it: the video's ten
automatic thumbnails, spread evenly, labelled with their start time and optional titles (one per line). A click
jumps to the scene and plays; the playing scene is marked. Needs a known video duration. A Content-Security-Policy
img-src has to allow the API host and *.cdn.videooptimizer.eu.
Format. Single video, media split and chapters can be shown as original, 16:9, 9:16, 1:1, 4:5 or 21:9 (the video covers the area; portrait formats are limited to 420 px); a focal point (X/Y %) chooses what stays visible (not supported by the hosted embed).
Floating mini player. Single video and chapters: once a visitor has started the video and it scrolls out of view, it is pinned bottom right (screens from 600 px) with a close button; Escape unpins, scrolling back too.
Product video. On the product detail page in the administration, the card "VideoOptimizer video" chooses a
video (variants inherit the main product's and can replace it). It appears as the last slide of the product image
gallery (poster in the thumbnail strip); a click plays it in place with sound and it stops when the visitor
switches slides. The player (native or hosted embed) is the plugin setting "Product video player". The choice is
stored in the product's custom fields scalecommerce_vo_product_video / scalecommerce_vo_product_video_library.
In another content language the card shows the default language's video (marked as inherited) and offers
"Off for this language", stored as an empty value that wins over the default language.
| Symptom | Cause | Fix |
|---|---|---|
| A request fails with 400 "VideoOptimizer API token is not configured." | No token saved, or the configured API base URL isn't https:// |
Open Settings → System → Plugins → VideoOptimizer and save a valid vp_... token / an https:// base URL |
| The org-wide video listing (all libraries) fails with 403 | The token lacks the library:view permission |
Grant library:view to the token in your VideoOptimizer account, or browse per library instead |
Saving a non-https:// API/embed base URL is rejected |
Both URLs are required to be https:// so the token and storefront traffic are never sent in plaintext |
Use an https:// URL |
| A video renders nothing on the storefront | The video was deleted upstream, or a lookup failure is still cached (up to 60 seconds) | Wait for the cache to expire, or check the Shopware log for a warning naming the video UUID and the upstream error |
| The administration shows "No VideoOptimizer API token is configured" or "…lacks the View permission" | Token missing/rejected, or the admin user has no VideoOptimizer role | Save a valid token (users allowed to change plugin settings get a link), or grant the Viewer role under Settings → Users & permissions → Roles |
| Videos disappear for about a minute | The VideoOptimizer API was unreachable or rate-limited; uncached videos fail fast for 60 seconds | Nothing to do; pages rendered meanwhile are cached for 60 seconds only and recover automatically |
| Requests to VideoOptimizer are blocked by a proxy/firewall | Outgoing requests carry the User-Agent VideoOptimizer-Shopware/<version> (…) |
Allow that User-Agent and the hosts api.videooptimizer.eu / player.videooptimizer.eu |
Requests fail and the log shows Host "…" is blocked or IP "…" is blocked |
The private network guard refused the connection: the API host resolves to a private address (self-hosted VideoOptimizer), or the shop server cannot resolve the host name (DNS failure, or a proxy-only network without an outbound proxy configured) | Self-hosted on a private network: switch off Block private networks in the plugin configuration. DNS failure: fix name resolution on the shop server. Proxy-only network: configure HTTPS_PROXY (the guard is then not applied) |
| In the lightbox, Tab/Esc seem not to work while the native controls or the embed iframe have the focus | The browser does not pass key events to the page there. The lightbox is a native modal <dialog>, so the browser itself keeps the focus inside and closes it on Escape as far as it allows |
If a browser does not close it, click outside the player or on the close button |
| The admin still shows the old UI after an update | The browser served the previous cached admin bundle | Hard-reload the administration (Cmd+Shift+R / Ctrl+Shift+R) |
composer update scalecommerce/videooptimizer-shopware
bin/console plugin:update ScaleVideoOptimizer
bin/console cache:clearThen hard-reload the administration in your browser (Cmd+Shift+R / Ctrl+Shift+R) so it doesn't keep
serving the previous admin bundle from cache.
Check the CHANGELOG before upgrading — it lists every notable change and any manual follow-up.
bin/console plugin:uninstall ScaleVideoOptimizerThe plugin configuration (including the API token) is removed by Shopware core on uninstall, unless you choose "keep user data".
The API token lives only in the plugin's system configuration. Every call to VideoOptimizer — from the admin module and from the storefront — is proxied through Shopware's own admin/storefront controllers, so the token is never sent to or exposed in the browser; the browser only ever receives short-lived presigned URLs for the direct-to-storage part uploads.
Caching. Embed data is cached per video: 1 hour for playable videos, 60 seconds for failed lookups and
for videos that are still processing (so they appear shortly after they are ready). The videos of a page
are looked up concurrently. After a transport error, timeout, rate limit or 502/503/504, lookups of
uncached videos fail fast for 60 seconds instead of waiting for a timeout each. Storefront pages are tagged
scalecommerce-vo-video-<uuid> and, where the element has a library, scalecommerce-vo-library-<id> (HTTP
cache, and on Shopware 6.6 the Store API route cache); changing, re-postering or deleting a video, or
deleting, updating or reprocessing its library, in the administration invalidates exactly these pages. A page rendered while a lookup failed is cached for at most 60 seconds. Changes made
directly in the VideoOptimizer dashboard show up after the cache lifetime.
Outgoing requests. The plugin's HTTP client refuses connections to private, loopback and link-local
addresses, also behind host names and redirects, so the configurable base URLs cannot be pointed at internal
services. API calls do not follow redirects; thumbnails may be redirected to the CDN, but only to public
addresses. The guard is not applied when the shop uses an outbound proxy (HTTPS_PROXY, https_proxy,
ALL_PROXY or a proxy in the framework's http_client default options; hosts in NO_PROXY are still
guarded, and so is every redirect hop that the proxy rules do not cover, checked per hop): the connection then goes to the proxy, which has to filter. A self-hosted VideoOptimizer on a private
network needs Block private networks switched off in the plugin configuration. The protection relies on a
current symfony/http-client (6.4.14 or 7.1.7 and later; the plugin does not enforce this through Composer).
User-authored rich text and call-to-action URLs are sanitized both server-side and in the admin preview before they reach the storefront.
- From the shop server: API requests (with the token for admin actions, without it for the public
embed data used while rendering the storefront). Every request identifies the plugin with a
User-Agentsuch asVideoOptimizer-Shopware/1.2.0 (Shopware 6.7.16.2; PHP 8.4.10; +https://shop.example.com): plugin, Shopware and PHP version and the shop's public URL (APP_URL, reduced to scheme, host, port and path). VideoOptimizer uses it to show which plugin versions an organization runs. - From visitors' browsers: the video, poster and (in embed mode) the hosted player are loaded directly from VideoOptimizer's EU CDN / player host, like any other media on the page. The plugin itself sets no cookies; for the hosted player (embed mode) see VideoOptimizer's privacy information.
Tests, end-to-end tests, rebuilding, 6.6 smoke-testing
Run the PHP test suite (PHPUnit 12 or later) from a Shopware installation with the plugin linked under
custom/plugins, and the JavaScript tests (Vitest/jsdom, under tests/js, not part of the package):
composer install
vendor/bin/phpunit -c custom/plugins/ScaleVideoOptimizer/phpunit.xml.dist
cd custom/plugins/ScaleVideoOptimizer/tests/js && npm ci && npx vitest runEnd-to-end tests (Playwright, tests/e2e, not part of the package) run the administration, the editor and the
storefront in a real browser against a local fake VideoOptimizer API (OpenAPI-shaped fixtures, a storage stub for
uploads and a tiny HLS/MP4 for playback) - no API token needed. The shop runs in the e2e environment with its own
database; only there SCALECOMMERCE_VO_E2E_API points the plugin at the fake API (the https-only base-URL
hardening is untouched in every other environment). Google Chrome is required. From a Shopware project with the
plugin in custom/plugins:
bash custom/plugins/ScaleVideoOptimizer/tests/e2e/scripts/shop.sh start # e2e shop on :8110, fake API on :4110
cd custom/plugins/ScaleVideoOptimizer/tests/e2e && npm ci && npx playwright testCI runs them in the e2e job. An optional live smoke (.github/workflows/live-smoke.yml, manual and
nightly) uploads a tiny video to a temporary "Plugin QA" library of the real API and deletes it again; it runs
only when the repository secret VO_E2E_TOKEN (an organization API token) exists, otherwise it is skipped.
Rebuild the compiled assets after changing admin or storefront source (and commit the rebuilt output —
src/Resources/public/administration/ and the storefront dist/ are versioned):
bin/build-administration.sh
bin/build-storefront.shThe plugin targets both Shopware 6.6 and 6.7 from a single codebase; the administration bundle is built for each (webpack for 6.6, Vite for 6.7). Smoke-test the 6.6 build against a dockware 6.6 image before releasing, since the primary dev installation typically tracks 6.7.
Issues and pull requests are welcome at github.com/ScaleCommerce/videooptimizer-shopware.
Released under the MIT License, © ScaleCommerce GmbH.
Ships hls.js (Apache License 2.0) for HLS playback in the content blocks — see THIRD-PARTY-NOTICES.md.




