0

I have some videos in a site, which has music playing in the background.

Once I start a Video, I want the Music to stop automatically. Not a big deal when I use a javscript based HTML5 Video plugin.

However, there is a flash fallback (flowplayer). And now I have no idea how to find out (from a javascript point of view) when the flowplayer is clicked. Is there a way to catch this event via javascript? Can I somehow find out, if the div containing the flowplayer is being clicked, even though the player sits on top?

Is there a JQuery way of doing this?

4

2 に答える 2

3

FlowplayerはjavascriptAPIを備えておりonStart、ビデオの再生を開始した瞬間にイベントをトリガーします。詳細については、http : //flowplayer.org/documentation/events/clip.htmlをご覧ください。

于 2011-02-23T09:33:35.850 に答える
1

<embed>タグまたは<object>サポートclickイベントかどうかを調査することから始めることができます。これは可能であるはずです。タグにIDを割り当てて、そこからトリガーすることもできます。

このSOの質問はあなたにアイデアを与えるかもしれません。

于 2011-02-23T09:28:13.763 に答える