Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Bad NPObject as private data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bad NPObject as private data



Hi --

For anyone who can help ... I'm using Javascript to control the Quicktime player in Firefox 2.0.0.4.

I am trying to get sound to play ... with no visible control. The code I'm executing is *very* simple, but if I execute it enough, I get an error from the player: "Bad NPObject as private data". And then the player won't work anymore until I reload the page.

Has anyone seen this before?? Is there a fix?? (It smells like a memory corruption problem.)

Here's my code:

(in <head>: )

<embed id="bgSound1" src="placeholder.wav" width="0" height="0" autostart="false" enablejavascript="true">

(in <script>: )

function playSound(uri) {
  try {
    var domBgSound = document.getElementById("bgSound1");
    domBgSound.Stop();
    domBgSound.SetURL(uri);
    domBgSound.Play();
  }
  catch (soundErr) {
    alert("The error occurred! " + soundErr);
  }
}

Thanks!




_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.