Created
December 6, 2012 08:53
-
-
Save solisoft/4222963 to your computer and use it in GitHub Desktop.
kaltura basic ...
This file contains hidden or 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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Kaltura</title> | |
<script type="text/javascript" src="../lib/third-party/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="http://www.kaltura.com/p/1017902/sp/1126929100/embedIframeJs/uiconf_id/11098452/partner_id/1269291"></script> | |
</head> | |
<body> | |
<script> | |
var kdp; | |
$(function() { | |
mw.setConfig("KalturaSupport.LeadWithHTML5", true); | |
kWidget.embed({ | |
'targetId': "testaudio", | |
'wid': '_1269291', | |
'uiconf_id' : '11098452', | |
'entry_id' : '1_edlyc0gu', | |
'width': 200+"px", | |
'height': 200+"px", | |
'flashvars':{ | |
'externalInterfaceDisabled' : false, | |
'autoPlay' : false, | |
'EmbedPlayer.ControlsHeight': 0, | |
'EmbedPlayer.OverlayControls': false | |
}, | |
readyCallback: function( pID ){ | |
kdp = document.getElementById(pID); | |
} | |
}); | |
$("#play").on("click", function() { | |
kdp.sendNotification("doPlay"); | |
}); | |
$("#seek").on("click", function() { | |
kdp.sendNotification("doSeek", 7); | |
kdp.sendNotification("doPlay"); | |
}); | |
$("#stop").on("click", function() { | |
kdp.sendNotification("doStop"); | |
}); | |
}); | |
</script> | |
<div id='testaudio'></div> | |
<a href="#" id="play">Play</a> | | |
<a href="#" id="seek">Seek at 7s then Play</a> | | |
<a href="#" id="stop">Stop</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment