[Solved]vlc.playlist is undefined?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

[Solved]vlc.playlist is undefined?

Postby djstava » 30 Mar 2010 07:12

Hi,all

I compiled vlc and plugins from git source,with
./configure --enable-faad --enable-run-as-root --enable-realrtsp --enable-mozilla --enable-live555 --with-live555-tree=/home/djstava/live --enable-lirc --enable-lua

Code: Select all

<html> <head><title>Demo of VLC mozilla plugin</title></head> <body> <h1 align="center">Demo of Firefox VLC Plugin</h1> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="1024" height="800" border="0" id="vlc"> </embed> <script language="Javascript"> var vlc=document.getElementById("vlc"); var id=vlc.playlist.add("rtsp://127.0.0.1:8554/demo1.ts"); vlc.playlist.playItem(id);
but error console shows: vlc.playlist is undefined.Firefox 3.5.8

Help.
djstava
Last edited by djstava on 31 Mar 2010 11:01, edited 1 time in total.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: vlc.playlist is undefined?

Postby djstava » 30 Mar 2010 10:47

vlc cannot see the ffmpeg libs
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
sudo ldconfig


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 25 guests