Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户悬停在控制栏上时,我需要获取用户鼠标光标指向的位置。我该怎么做 ?
事件“seek”完成了这项工作;)您应该为您的实例播放器添加一个监听器:
player.addListener('seek', seekListener);
然后定义这个函数:
var seekListener=function(Obj) { $('#mouseclick').html(myPlayer.getPosition()) }