Videos embedded using the iframe embed code will resize correctly on websites that resize content dynamically (known as responsive web design). At this time, vidgets embedded on a responsive website will not resize when the browser/device size changes.
Arpeggio Player
width="640px"
to width="100%"
height="360px"
<script type="text/javascript" src="//static.cdn-ec.viddler.com/js/arpeggio/v3/build/main-built.js"></script>
<div class="viddler-auto-embed" data-video-id="7c1804e8" data-width="640" data-height="360"></div>
will become:
<script type="text/javascript" src="//static.cdn-ec.viddler.com/js/arpeggio/v3/build/main-built.js"></script>
<div class="viddler-auto-embed" data-video-id="7c1804e8" data-width="100%"></div>
Legacy Player
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<!-- Change the url pointing to it (http://yourwebsite/folder/file) -->
<script src="http://yourwebsite.com/folder/jquery.fitvids.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
// Basic FitVids Test
$(".flex-video").fitVids({ customSelector: "iframe[src^='//www.viddler.com/']"});
// ]]></script>
Here's an example of this in action: http://info.viddler.com/responsive-video-website-example
Tools
FitVid.js (Github) - Our team has used and recommends FitVid.js for enabling the responsive sizing of Viddler videos within your website.
CSS Media Queries - Media Queries are the standard for creating responsive websites. You can customise your site and how it handles the sizing of videos using these code standards.
Comments
1 comment
Hi there, would be helpful to actually see a 'how to video' on this. Thanks!
Please sign in to leave a comment.