web interface playlist

*nix specific usage questions
hplus

web interface playlist

Postby hplus » 02 Apr 2006 15:48

I have a problem with the 0.8.5, the web interface doesnt display the playlist,
i can sometimes manage to have the paylist displayed by reloading many times but most of the time, the playlist is empty.
i have a "?" displayed instead of the root item of the playlist....
does anybody have the same problem ?

Guest

Postby Guest » 25 May 2006 10:20

same here - on all new versions since 0.8.4a (which works ok)
my guess: weird encoding ow filename on playlist.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 25 May 2006 15:16

Does the /requests/playlist.xml file display alright? Do you have any javascript errors detected by your browser? (how long is your playlist?)

(btw, if you want to use the old playlist, it is still available in /old/ )
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jshall
New Cone
New Cone
Posts: 1
Joined: 13 Jan 2009 17:02
VLC version: 0.9.4
Operating System: Windows/Linux
Location: Indiana, USA

Re: web interface playlist

Postby jshall » 13 Jan 2009 17:08

I realize this is an old one, but I've experienced the same problem in recent versions as well. It appears that /requests/playlist.xml does not properly encode '&' characters (perhaps others too) causing an xml parsing error.

Has anyone found a workaround to this or submitted a ticket to Trac?

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: web interface playlist

Postby Rémi Denis-Courmont » 13 Jan 2009 22:14

Not that I know
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

schnorginator
Cone that earned his stripes
Cone that earned his stripes
Posts: 114
Joined: 16 Oct 2008 12:57

Re: web interface playlist

Postby schnorginator » 28 Feb 2009 21:33

I realize this is an old one, but I've experienced the same problem in recent versions as well. It appears that /requests/playlist.xml does not properly encode '&' characters (perhaps others too) causing an xml parsing error.
I can confirm this, if you have filenames with '&' in the name the playlist will not load because it is not & encoded, and this is why the webinterface is not displaying the current songname too.
a workaround would be to install apache, change the path in the .js file to the apache-server, and on-request (localhost:80/newplaylist.xml.php): load the playlist.xml from localhost:8080/requests/playlist.xml and replace &->&
OR:
change the functions.js to load the xml-file as textfile, replace &->& and parse the string as xml-file.

schnorginator
Cone that earned his stripes
Cone that earned his stripes
Posts: 114
Joined: 16 Oct 2008 12:57

Re: web interface playlist

Postby schnorginator » 28 Feb 2009 22:34

Here my quick&dirty workaround (tested in ff3 and ie7)
1. Open "VideoLAN\VLC\http\js\functions.js"
2. replace line 540 (var answer = req.responseXML.documentElement;) by this rows:
var answer = null;
var rtext = req.responseText.replace(/&(?!amp;)/g,"&");
if (window.ActiveXObject) {
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML(rtext);
answer = xmlDoc.documentElement;
} else if (window.DOMParser) {
parser=new DOMParser();
xmlDoc=parser.parseFromString(rtext,"text/xml");
answer = xmlDoc.documentElement;
}


3. replace
if( ! elt.parentNode ) break;
elt = elt.parentNode.nextSibling;
pos = pos.parentNode;

by this:
if( ! elt.parentNode ) break;
elt = elt.parentNode.nextSibling;
if (pos) {
pos = pos.parentNode;
} else {
return;
}


4. save file and F5 in browser

dye
New Cone
New Cone
Posts: 4
Joined: 15 Mar 2009 23:16

Re: web interface playlist

Postby dye » 15 Mar 2009 23:23

I am having a similar problem, but for album titles that have quotes (") in them, fairly common for classical music:


Error: not well-formed
Source File: http://musicserver:8080/requests/playlist.xml
Line: 3625, Column: 85
Source Code:
<node id="444" name="Munch, Charles, Boston Symphony Orchestra - Symphony No.6 "Pathetique", Romeo and Juliet" ro="rw" >

An chance of a general fix getting into the pipeline? Is there a bug # for these problems?

--Ken

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: web interface playlist

Postby Jean-Baptiste Kempf » 16 Mar 2009 00:59

You have to escape "
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

schnorginator
Cone that earned his stripes
Cone that earned his stripes
Posts: 114
Joined: 16 Oct 2008 12:57

Re: web interface playlist

Postby schnorginator » 17 Mar 2009 09:48

You have to escape "
Haha you are funny man,
1. its not that easy to replace " by \" like &->& in javascript.
2. the devs have to wake up, these escape bugs can be fixed in 5 minutes but no one feels responsible to it.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: web interface playlist

Postby xtophe » 17 Mar 2009 15:26

2. the devs have to wake up, these escape bugs can be fixed in 5 minutes but no one feels responsible to it.
Users have to wake up, these escape bugs can be fixed in 5 minutes and patches sent to vlc-devel@ in 2 mins.
Xtophe

Omala
New Cone
New Cone
Posts: 1
Joined: 12 Jan 2010 23:23

Re: web interface playlist

Postby Omala » 12 Jan 2010 23:35

2. the devs have to wake up, these escape bugs can be fixed in 5 minutes but no one feels responsible to it.
Users have to wake up, these escape bugs can be fixed in 5 minutes and patches sent to vlc-devel@ in 2 mins.
Oh wow, another question I went searching for an answer to, just to find a wise 'donkey' remark as an answer. Which could easily be beaten by wit from the World of Warcraft forums.

bravo.

Listen, if you chose to take on the responsibility of "Big Kahuna", you should probably own up to it instead of acting as though you're too good for everyone. It's no wonder people are desperately seeking a VLC replacement. It's a shame this lump of dung is the best thing going right now. I know 5 year olds who have more interest in what they start. I look forward to the next project that steps up.

You could care less though, you're officially non-profit.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests