vlc.playlist is undefined

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 08:53

I am getting an error in browser error console as "vlc.playlist is undefined"
The code is:

Code: Select all

<html> <title>VLC Mozilla test</title> <body> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc" src="Peguin.MPG"> </embed> <script language="Javascript"> function play() { alert("play"); var vlc = document.getElementById("vlc"); vlc.playlist.play(); } function pause() { var vlc = document.getElementById("vlc"); vlc.playlist.pause(); } function addlist() { var vlc = document.getElementById("vlc"); vlc.playlist.add("Peguin.MPG"); } </script> <br><br> <input type="button" value="add" onclick="addlist()"> <input type="button" value="play" onclick="play()"> <input type="button" value="pause" onclick="pause()"> </body> </html>
When i press the play button nothing happens and error console shows playlist is undefined
I am using firefox 3.0.4

Plugin used: VLC Multimedia Plug-in
File name: nswrapper_32_32.libvlcplugin.so
Version 0.9.9 Grishenko

sbraheem
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 16:59

Re: vlc.playlist is undefined

Postby sbraheem » 01 Jul 2009 09:08

Hi

How about using

Code: Select all

target="Peguin.MPG"
instead

Hope that helps.
VLC control with BST Player - http://oss.bramosystems.com/bst-player

p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

Re: vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 09:23

sbraheem, thanks for the reply
ok now the file is playing..

But when i click on play, the error console still shows vlc.playlist is undefined

p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

Re: vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 09:57

ok this is working on vlc plugin 0.8.6. But not on vlc plugin 0.9.9

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: vlc.playlist is undefined

Postby thannoy » 01 Jul 2009 10:09

And what about not using nswrapper? (I don't know how to deactivate it)

p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

Re: vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 11:08

thannoy: no idea regarding nswrapper. is it related to javascript playlist.play() etc. functions?

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: vlc.playlist is undefined

Postby thannoy » 01 Jul 2009 11:11

If I am not wrong (google can inform you more):

nswrapper is a "meta mozilla plugin" (my own naming :) ) to run other plugins as a sub process instead of as a thread in the browser. Its main usage is to not crash the browser if the plugin crash and support 32 bits plugin on a 64 bit browser (useful for abode flash 32bit on a full 64bit installed system since there is/was no 64 bit support)

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: vlc.playlist is undefined

Postby thannoy » 01 Jul 2009 11:24

What is you Linux distribution? Which version?

You can try to google "nswrapper deactivate plugin youLinuxDistro" for example.

p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

Re: vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 11:27

Fedora 10

p3c0
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2009 08:35

Re: vlc.playlist is undefined

Postby p3c0 » 01 Jul 2009 12:16

I tried the code in ffox with plugin version 0.9.3 that is without nswrapper and everything is working fine


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests