Releases: astehlik/typo3-extension-mediaoembed
v13.4.1
v12.0.0
v11.0.1
v11.0.0
v3.0.0
Panopto and more
Panopto support
You can now embed videos from your Panopto instance. A default provider is configured that handles the integration of the demo instance.
To use your own instance, simply adjust the URLs of the demo config:
plugin.tx_mediaoembed.settings.providers.panopto {
endpoint = https://my.custom.panopto.com
urlRegexes.10 = #https?://my\.custom\.panopto\.com/Panopto/Pages/(Embed|Viewer)\.aspx.+#i
}
For a better Usability, the URL input field can convert the embed code generated in Panopto (iframe) to the final URL.
The parameters provided in the URL are respected. When an URL without parameters is entered by the user (by simply copying the URL from the browser) configurable default parameters are used, as you can see in the TypoScript config.
Aria labels for iframes
For better accessibility iframes now get an aria-label attribute based on the title of the video (if available) or the media URL.
This is done by a new processors structure that can easily be extended for your needs. Have a look at the TypoScript on how it is done.
Configurable aspect ratio
Not all platforms might deliver the correct dimensions of their media. E.g. Panopto does not support Oembed at all and a custom template is used for rendering the iframe.
To fix this, a new field was added for configuring the aspect ratio of the media element.
The field is filled automatically, when an iframe with with and height attributes is pasted into the URL field.
Configurable direct links
It can now be configured in the provider settings, if a direct link to the embedded media should be displayed (overriding the default).
This config would disable the direct link for Panoto videos, even if the global setting is to show them:
plugin.tx_mediaoembed.settings.providers.panopto {
displayDirectLink = 0
}
Full Changelog
See v2.0.0...v3.0.0
v2.0.0
New features
- Improved privacy for YouTube embedding by using the https://www.youtube-nocookie.com by default
- Improved responsive video handling by using the width / height returned by the API and adjusting
the padding for Bootstrap'sembed-responsive
to match the aspect ratio of the video - A new setting is added to the backend to disable playing related YouTube videos
Under the hood
- TYPO3 10 LTS compatibility
- An new response processor concept is introduced that allows flexible manipulation of the returned embed code.
SeeNocookieProcessor and
PlayRelatedProcessor` for examples. - Improved testing and code quality checking