flowplayer_foot.php 800 Bytes
Newer Older
nextime's avatar
nextime committed
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
<script src="/resources/flowplayer/flowplayer.min.js"></script>
<script>
$('.flowplayer video').each(
   function() {
      //$(this).attr('duration', 0);
      console.debug($(this));
   }
);
/*
$('.flowplayer video').on('timeupdate',
   function() {
     // $(this).attr('duration', 0);
     console.debug($(this));
   }
);
*/

$('.flowplayer').on('ready',
   function() {
      //$(this).attr('duration', 0);
      console.debug($(this));
   }
);
flowplayer(function (api, root) {
   api.bind("ready", function (e, api, video) {
      console.debug(video.duration);
      
      
      //if(typeof video.duration == "undefined" || video.duration =="Infinity")
      //   video.duration=0;
   });
   api.bind("error", function (e, api, video) {
      console.debug("error");
   });
}); 

</script>