robertdoo / flv-flash-fullscreen-video-player

Automatically exported from code.google.com/p/flv-flash-fullscreen-video-player
0 stars 0 forks source link

click event is not called when clicking the video #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here is the skemeton of my html document:

<html>
<head>
<script type="text/javascript">
  var playervars = {
    'video': "myvideo.flv",
    'islive': true,
    'autoscale': false,
    'smoothing': false
  };

  var params = { scale: "noscale", allowfullscreen: "false", salign: "tl", bgcolor: "#ffffff", base: "."};      
  var attributes = { align: "left" };

  swfobject.embedSWF(
    "/static/flv/flvplayer.swf",
    "videoCanvas",
    "300", "200", "9.0.28",
    "/static/flv/expressInstall.swf", playervars, params, attributes
  );

  $(function() {
    $(".video").live('click', function() {
      alert('hello');
    });
  });
</script>

<body>
<span class="video">
 <div id="videoCanvas"></div>
</span>
</body>
</html>

The 'click' event is not called when clicking the video. According to your docs 
it should. Anything wrong in my code. 

Original issue reported on code.google.com by luc.jean@gmail.com on 30 May 2012 at 9:52