1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<a
href="video.mp4"
style="display:block;width:425px;height:300px;"
class="player"
id="lighty">
</a>
<script language="JavaScript">
var info = document.getElementById("info");
flowplayer("lighty", "http://releases.flowplayer.org/swf/flowplayer-3.2.15.swf", {
// enable secure streaming plugin
plugins: {
secure: {
// path to latest version
url: "http://releases.flowplayer.org/swf/flowplayer.securestreaming-3.2.8.swf",
// Timestamp from the server
timestamp: '<?php echo sprintf("%08x", time());?>',
// identical to lighttpd.conf / secdownload.secret
token: 'jKUR9GkP'
}
},
clip: {
// make the video clip use our secure streaming plugin
urlResolvers: 'secure',
baseUrl: 'http://www.monsite.com/prive/secure',
onStart: function(clip) {
info.innerHTML = '<p style="overflow:auto;">' + clip.url + '</p>';
}
}
});
</script> |
Partager