Unlike the regular embed code, the advanced embed code uses a script that you will notice it appended to the beginning of the embed code. You can either enable Advanced code manually, or some features will enable it by default and you cannot turn it off unless you disable the feature. More info on that below.
What Does The Code Look Like
Here is an example of our regular, default embed code:
<div style="position:relative; width:1px; min-width:100%;padding-bottom:56.25%;"><iframe allow="autoplay" class="spotlightr" allowtransparency="true" style="width:1px; min-width:100%; height: 100%; position:absolute" allowfullscreen="true" src="https://billzimm.cdn.spotlightr.com/watch/MTIzNzI5OA==?fallback=true" frameborder="0" scrolling="no" name="videoPlayerframe"> </iframe></div>
And here is what the Advanced code looks like:
<script src="https://billzimm.cdn.spotlightr.com/assets/spotlightr.js"></script><iframe allow="autoplay" class="video-player-container spotlightr" data-playerid="MTIzNzI5OA==" allowtransparency="true" style="max-width:100%" name="videoPlayerframe" allowfullscreen="true" src="https://billzimm.cdn.spotlightr.com/watch/MTIzNzI5OA==" watch-type="" url-params="" frameborder="0" scrolling="no"> </iframe>
How To Turn It On
You can enable it in your Publish options:
Once enabled you will see 2 other options:
Floating Video - This will make your video be always present and playing even if the viewer is scrolling down the page. The video player will just move itself into the corner of the page and will "float" down the page along side other content the viewer is viewing.
Adjustable Player Size - By default, Spotlightr videos expand to the size of the element the video is placed. That means that the video will get bigger or smaller depending on the size of the screen (fully responsive). That is why this option is enabled by default.
If you disable this option, you will be allowed to edit the actual size of the player shown on your web page in addition to selecting one of the predefined resolutions and aspect ratios. Keep in mind this will mean your video is no longer fully responsive.
Otherwise if left activated, which it is by default, the video player will resize to the element in which it is embedded. You can find more on this feature in this article.
Features That Require Advanced Code
Some options that, when turned on, will turn on the Advanced code by default. And when you go to your Publish options you will see it's automatically turned on. If Advanced Code is selected automatically when you open Publishing options, you won't be able to turn it off unless you turn off one of these features:
iOS default video player is not being used on full-screen (you are forcing the Spotlightr player to be used on iOS in full screen). Remember there is a global setting for this as well as individual video setting for this. More info here.
You will need to adjust those settings before you can turn off the Advanced Code.
There are also a few features that require you to turn on the Advanced code manually before they will work. Those are: