SDL has this spiffy little product called Media Manager. Media Manager is a tool for uploading and managing multimedia assets, and it does a really good job at working with video, in particular. With videos, you could upload a video in just about any format imaginable, and Media Manager would do some magic behind the scenes to convert that video to the right format for the right web browser. This makes it incredibly helpful, especially now that web browsers can play videos natively. But Media Manager was lacking on one thing: responsive videos.
But, quite happily, that’s not true any more.
The Old School Way
I presented on some Media Manager tips and tricks at the Tridion Developer Summit in Amsterdam last year. One of those tricks was how to make the videos responsive, which involved a small amount of CSS hackery with attribute selectors and overriding the dimensions. The only downside was that it didn’t work with fullscreen, so additional hackery was needed with some bizarre selectors to identify fullscreen, and then some tweaks to dimensions and controls.
The old school way amounted to some unusual CSS selectors, dimension overrides, and some techniques Rachel McCollin mentioned in a Smashing Magazine article.
The New School Way
SDL has some smart guys working for them, and they decided that all these CSS shenanigans were just a tad much. So they reduced the number of steps involved in making a Media Manager video responsive:
&responsive=trueto the distribution URL
So, if I’ve got this distribution URL
It now becomes this:
If you’ve got this script:
It becomes this:
And that means that this will play nicely, where ever I put it on a web page.
The big idea
SDL Media Manager is