Skip to content

1.1.0

Latest

Choose a tag to compare

@dereuromark dereuromark released this 25 Aug 16:44
aa200fa

MediaEmbed 1.1 adds provider-generated oEmbed HTML as a first-class rendering path and introduces an optional privacy-friendly click-to-load iframe placeholder.

Highlights

  • Adds oEmbed-only providers that do not expose a static iframe URL.
  • Adds MediaEmbed::oEmbedHtml() for retrieving provider-generated rich embed markup.
  • Adds ProviderConfig::hasOEmbedSupport() and ProviderCollection::withOEmbedSupport().
  • Allows custom oEmbed-only providers through inline configuration, PHP/JSON provider files, and provider loaders.
  • Adds EmbedCodeUnavailableException with an actionable oEmbedHtml() alternative when iframe-specific methods are used for oEmbed-only providers.
  • Adds MediaObject::getPlaceholderEmbedCode() and MediaObject::placeholderScript() for optional GDPR-style click-to-load iframe rendering.
  • Keeps placeholder activation CSP-friendly, event-delegated, and free of inline event handlers.

New Providers

  • Tumblr
  • Bluesky
  • Flickr
  • Speaker Deck

The bundled provider list now contains 46 providers: 45 active and 1 legacy.

Security

oEmbedHtml() returns markup controlled by the remote provider. Render it only for trusted providers or sanitize it according to your application policy. Existing public-URL checks, redirect validation, response-size limits, caching, and HTTP-client injection remain in effect.

Backward Compatibility

The release is additive for existing integrations. The new ProviderConfig constructor argument is appended, preserving positional calls, and existing iframe rendering remains unchanged. The bundled provider count and URL matching intentionally expand with the new providers.

Full Changelog: 1.0.0...1.1.0