The "autoplay" setting of individual file references in the Media content element is not respected.
Steps to Reproduce
Add a media content element to a page
Add a video media element
Enable the autoplay option
View the page
Expected behavior
The video element has the "autoplay" attribute and autoplays.
Actual behavior
The video element has no "autoplay" attribute and doesn't autoplay.
Screenshots
Additional information
Bootstrap Package defines globally for all videos whether autoplay is enabled or not. This makes no sense to me and breaks the "individual autoplay" feature for sys_file_references.
Unfortunately Bootstrap Package always sets this additionalConfig. You can either set it to 1 or 0 with the constant plugin.bootstrap_package_contentelements.media.additionalConfig.autoplay.
Bug Report
Prerequisites
Description
The "autoplay" setting of individual file references in the Media content element is not respected.
Steps to Reproduce
Expected behavior
The video element has the "autoplay" attribute and autoplays.
Actual behavior
The video element has no "autoplay" attribute and doesn't autoplay.
Screenshots
Additional information
Bootstrap Package defines globally for all videos whether autoplay is enabled or not. This makes no sense to me and breaks the "individual autoplay" feature for sys_file_references.
TYPO3's VideoTagRenderer checks if autoplay is passed as an option / additionalConfig (e.g. in
<f:media>
). If not, is uses the file reference's autoplay option: https://github.com/TYPO3/typo3/blob/28d3a8c5e0b2e60cefdccf89cf47e6ce31bed5e3/typo3/sysext/core/Classes/Resource/Rendering/VideoTagRenderer.php#L67Unfortunately Bootstrap Package always sets this additionalConfig. You can either set it to 1 or 0 with the constant
plugin.bootstrap_package_contentelements.media.additionalConfig.autoplay
.Workaround
Unset the value in setup.typoscript: