获取光标位于视频控制栏

时间:2015-08-14 16:33:54

标签: javascript html5-video projekktor

当他将鼠标悬停在控制栏上时,我需要获取用户鼠标光标指向的位置。我该怎么做?

1 个答案:

答案 0 :(得分:2)

The event "seek" does the job ;) you should add a listner to your instance player :

player.addListener('seek', seekListener);

Then define this function:

var seekListener=function(Obj) {    
   $('#mouseclick').html(myPlayer.getPosition())
}