Release Notes / Version 10.2104
Table Of Contents
The mediaelement brick now utilizes the Webpack code splitting feature. This means that the corresponding MediaElement player is now only loaded if needed. As loading is asynchronous the functions
audioAsMediaElement
and
videoAsMediaElement
now return a Promise which is fulfilled as soon the elements are ready to use.
Update Steps:
In case you didn't load the MediaElement player yourself in your custom scripts and relied on the mediaelement brick to always load the corresponding package (which is not recommended) you need to add an import statement to your JavaScript:
import "mediaelement/full"; import "mediaelement/build/renderers/dailymotion"; import "mediaelement/build/renderers/twitch"; import "mediaelement/build/renderers/vimeo"; import "mediaelement/build/renderers/facebook";
(CMS-18765)