QuickTime movie disappearing from Javascript when scrolled offscreen in Firefox?

Posted by c-had on Stack Overflow See other posts from Stack Overflow or by c-had
Published on 2010-03-17T13:37:45Z Indexed on 2010/03/17 13:41 UTC
Read the original article Hit count: 139

Filed under:
|
|
|

I have a web page I'm creating that uses Javascript to control an embedded QuickTime player. I add the QuickTime movie to the page using the AC_QuickTime.js file from Apple (as described here - http://developer.apple.com/mac/library/documentation/QuickTime/Conceptual/QTScripting_HTML/QTScripting_HTML_Document/ScriptingHTML.html#//apple_ref/doc/uid/TP40001525-2-SW1 ). Everything seems to be working fine - I can call methods on the QuickTime movie and control its playback (as well as get the current timestamp).

The problem is that in Firefox, when I scroll down such that the QuickTime player is no longer visible, I get the following error every time I try to call a method on the QuickTime movie:

Error calling method on NPObject!

This does not occur in Safari. Why is this happening, and is there any way to work around this?

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript