Popcorn changelog
What changed in each release of Popcorn, newest first.
1.0.2
Fixed
- The play button in the field's preview did nothing on a page's first load. The player went on the page before its scripts had loaded, and its elements upgraded in an order that left the controls unconnected to the video. It is now added once all three are defined.
- Every page with a Popcorn field logged a 404 for each player file. Vite's preload hints asked for them at
/build/assets/, not where a site publishes them (vendor/statamic-popcorn/build). The video still played, as the imports themselves were relative; the hints now are too.
1.0.1
Added
- A
border-radiusparameter on{{ popcorn:player }}, and aplayer.border_radiusconfig default (POPCORN_PLAYER_BORDER_RADIUS), set the player's corner radius. Without either, the Video.js skin keeps its 28px.
Fixed
- The field's preview in the Control Panel no longer shows dark corners: the video was rounded to the skin's 28px inside a box with 0.5rem corners.
1.0.0
First release. Requires Statamic 6.34 or later and PHP 8.3 or later; tested on Statamic 6.42.
Added
- Popcorn Video fieldtype (
popcorn) for Mux videos: upload from the computer straight to Mux, send a video from the asset library, or choose one already in the Mux account. - Choose from Assets (off by default, turned on per field), in Statamic's own asset browser. The server sends the file to Mux, so private containers and sites Mux cannot reach work too.
- Browse Mux in a grid or table, with search across the whole account and a remembered view.
- The title is kept in step with the Mux dashboard, and the field shows when Mux is still preparing a new video.
{{ popcorn:player }}and{{ popcorn:scripts }}tags for playing a video with Video.js and its Mux media element, which Mux recommends in place of Mux Player. The player is a block element, so a rounded box around it rounds all four corners.- A
PopcornVideoGraphQL type. - The
use popcornpermission. - Mux Data tracking and its cookie are off by default.
POPCORN_TRACKINGandPOPCORN_TRACKING_COOKIESturn them on, and a template can turn tracking on for one player once a visitor has consented. The README explains what Mux receives either way and has privacy policy wording for both. Previews in the Control Panel are never tracked. - The front-end player is built into the add-on and served from the site by
{{ popcorn:scripts }}, so visitors' browsers contact no one but Mux.POPCORN_PLAYER_CDNloads it from a CDN instead. The README covers US privacy law (CIPA, VPPA, CCPA) and how to hold back every request until a visitor presses play. THIRD-PARTY-NOTICES.md, regenerated bynpm run build, carries the licences of the bundled packages. The README's privacy sections say plainly that they are information, not legal advice.- When Mux refuses an upload, for example because a free plan has reached its 10 videos, the field shows Mux's reason with advice, and never blames the access token.