Flash video still playing on DIV that is removed using jQuery (IE bug)

后端 未结 13 2239
你的背包
你的背包 2020-12-03 05:57

I have some jQuery tabs one of which holds a flash video. When I play the video in one tab and click to another in FF or Safari the video stops along with the sound, clicki

13条回答
  •  囚心锁ツ
    2020-12-03 06:23

    The most helpful thing you could do is the post which video player you're using. Youtube and Brightcove both have Javascript APIs that you can use to control the player. Like tahdhaze says here, the best thing to do would be to stop the player on the window.onBlur event, and start it again when it gains focus.

    Using CSS to stop the video from playing is at best tricky, at worst a hack... use the Flash-Javascript bridge API that comes with the player.

提交回复
热议问题