Skip to content

Instantly share code, notes, and snippets.

@pupunzi
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pupunzi/3520aa9c52bf5baa4f34 to your computer and use it in GitHub Desktop.
Save pupunzi/3520aa9c52bf5baa4f34 to your computer and use it in GitHub Desktop.
ytube vid test// source http://jsbin.com/jolocipalo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ytube vid test</title>
<link href="https://rawgit.com/pupunzi/jquery.mb.YTPlayer/master/css/YTPlayer.css" media="all" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://rawgit.com/pupunzi/jquery.mb.YTPlayer/master/inc/jquery.mb.YTPlayer.min.js"></script>
</head>
<body>
<div id="bgndVideo" class="player"
data-property="{containment:'body',showControls:true, autoPlay:true, mute:true, startAt:0, opacity:1, videoURL:'r1xohS2u69E'}">
</div>
<br><br><br>
<button onclick=" $('#bgndVideo').YTPMute()">mute</button>
<script>
$(function(){
$("#bgndVideo").mb_YTPlayer();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment