Skip to content

Instantly share code, notes, and snippets.

@MaxPower15
Created September 19, 2012 16:39
Show Gist options
  • Save MaxPower15/3750671 to your computer and use it in GitHub Desktop.
Save MaxPower15/3750671 to your computer and use it in GitHub Desktop.
Turnstile example starting at nth video in playlist
<div id="wistia_1d35830d05" class="wistia_embed" style="width:947px;height:360px;" data-video-width="640" data-video-height="360">&nbsp;</div>
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/concat/E-v1%2Cplaylist-v1%2Cplaylist-v1-bento%2CrequireEmail-v1.js"></script>
<script>
wistiaPlaylist = Wistia.playlist("1d35830d05", {
version: "v1",
theme: "bento",
videoOptions: {
autoPlay: true,
videoWidth: 640,
videoHeight: 360
},
media_0_0: {
autoPlay: false,
controlsVisibleOnLoad: false
}
});
Wistia.plugin.requireEmail(wistiaPlaylist, {
version: "v1",
topText: "Enter your email address\nto view this video.",
sectionIndex: 0,
videoIndex: 3
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment