mbakthav / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

How to fix the Error: Error calling method on NPObject! #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. opening the html file
2. pressing the created button
3.

What is the expected output? What do you see instead?
I am expecting to play an mp4 video
Nothing played ,I get
Error: Error calling method on NPObject!

What version of the product are you using? On what operating system?

Latest version. On firefox 3.0.16

Please provide any additional information below.

Here is a sample code from the html file.

//javascript code

function start(m)
{
  var m;
 m = document.embeds["myFlashMovie"];

 m.PlayAt(20);
} 

//////////////

<body scroll="no" bgcolor="#000000">

<embed src="test.MP4" name="myFlashMovie" id='koko' autostart=false
loop=false allowscriptaccess=always
type="application/x-mplayer2" width="840" height="631"
bgcolor="#000000"></embed>
<form>
   <input type="button" name="play" value="Play at" onclick="start()" />
<br />
</form>

Original issue reported on code.google.com by geo.a...@gmail.com on 4 Jan 2010 at 4:33

Attachments:

GoogleCodeExporter commented 8 years ago
Use this sample page to help with your javascript

http://mplayerplug-in.sourceforge.net/testing/testvid.html

The PlayAt() function is not connected. I'll see if I can correct that.

Original comment by kdeko...@gmail.com on 26 Jan 2010 at 3:00

GoogleCodeExporter commented 8 years ago
Should be fixed in SVN now.

Original comment by kdeko...@gmail.com on 26 Jan 2010 at 11:02