Last active
November 26, 2015 18:55
-
-
Save pupunzi/02a31481eb7c59490fd1 to your computer and use it in GitHub Desktop.
Random YTPlayer video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var videos = ["VuaJAgx0x_4", "3ovA7zeviRo", "u9k1FaMIYTs", "bkCg84XgBUg", "UJQmV8aPNao"]; | |
var rndVideo = videos[Math.floor(Math.random() * videos.length)]; | |
</script> | |
<div class="player" data-property="{videoURL:rndVideo,containment:'body',autoPlay:true, mute:true, startAt:0,opacity:1,ratio:'4/3', addRaster:true}">My video</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment