Skip to content

fix(amp-slikeplayer): add amp param to video URL and fullscreen/GDPR support#40521

Open
SlikeTech wants to merge 3 commits into
ampproject:mainfrom
SlikeTech:main
Open

fix(amp-slikeplayer): add amp param to video URL and fullscreen/GDPR support#40521
SlikeTech wants to merge 3 commits into
ampproject:mainfrom
SlikeTech:main

Conversation

@SlikeTech

@SlikeTech SlikeTech commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the amp-slikeplayer extension:

  • Append &amp=1 to the player iframe src in layoutCallback() (both default and config code paths) so the player can detect it is running inside an AMP context.
  • Resolve the player iframe origin and use it as an explicit postMessage target instead of '*'.
  • Implement fullscreenEnter() / fullscreenExit() overrides using #core/dom/fullscreen.
  • Add GDPR/consent support to amp-slikeplayer.

Files

  • extensions/amp-slikeplayer/0.1/amp-slikeplayer.js

Test

  • Verified the player loads inside AMP with the amp=1 parameter present in the iframe URL.

SlikeTech and others added 3 commits March 27, 2026 15:48
Integrate AMP consent framework so the Slike player iframe can request
and receive consent data via postMessage, enabling cleo-player to handle
personalisation and analytics decisions based on user consent state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erwinmombay

Copy link
Copy Markdown
Member

@danielrozenberg looks like bundle size has been running for a day now AMP bundle-size / ampproject/bundle-size Started 1d 44m 11s ago i cant seem to find a way to restart these

@danielrozenberg

Copy link
Copy Markdown
Member

Looks like CircleCI hasn't started on this PR at all which is why the bundle size check hasn't started (or finished) - I want to see if closing and reopening this PR will cause it to run CircleCI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants