HTML Interface does not show ID

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
americhanac
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Feb 2011 14:05

HTML Interface does not show ID

Postby americhanac » 13 Nov 2011 13:05

Hi,

I have been wracking my brains out with this one and would like to get some opinions.

Problem is that when playlist is initiated via script and HTTP module, the list is showing the LINK and not the ID TITLE.
Inside there are UDP addresses and my goal is to make it "readable" for human eyes.

Example (excerpt from real playlist with changed IP's) and without all headers and just targeting link:

Code: Select all

<title>Playlist</title> <trackList> <track> <title>CHANNEL</title> <location>udp://@[b]some.ip.number.here:port[/b]</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> <vlc:option>udp-caching=750</vlc:option> </extension> </track>
As I am just re-transmitting the input without transcoding and just changing module access, call is quite simple:

Code: Select all

vlc c:\xxx\xxxxxx.xspf --extraintf http --http-host=hostname:1234 :sout=#std{access=http,mux=ts,dst=xxx.xxx.xxx.xxx:xxx} :sout-keep :sout-mux-caching=2000
NOTE: --extraintf option is used just to troubleshoot

The outcome is:

In GUI (--extraintf) the CHANNEL name is correctly displayed. In http module however (accessed on port 1234 in this example) only udp://@some.ip.number.here:port is displayed.

I have tried to examine XML responsible for this display in http folder but it is beyond my ability to understand what should I replace to have TITLE tag displayed instead of link itself.

I have cca 30 differrent inputs and it is virtually impossible to have this sorted on any simple way .

Please help!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: HTML Interface does not show ID

Postby VLC_help » 13 Nov 2011 14:03

Have you tested VLC 1.2.0 nightly builds?

americhanac
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Feb 2011 14:05

Re: HTML Interface does not show ID

Postby americhanac » 13 Nov 2011 14:14

Hi,

at the time of posting I wasn't after your suggestion I did but still no difference, playlist is still displayed in form of links instead of TITLE :(

Any other suggestions?

americhanac
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Feb 2011 14:05

Re: HTML Interface does not show ID

Postby americhanac » 14 Nov 2011 01:43

ok... did it....

Few things needed changing including debuging (reading and experimenting with my VERY limited knowledge!) of functions.js in \http\js folder.

First, parametar TITLE is broken as it is not defined in playlist.xml located in \http\requests folder.

I've made an addition into leaf ID tags:

Code: Select all

title="<vlc id="value" param1="pl.title value xml_encode" />"
As it was not enough, I've looked further into java code...

Change done in Functions.js:

Located responsible parser in functions.js (find /* parse playlist.xml */ comment)
Change

Code: Select all

pl.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) ); var duration = elt.getAttribute( 'duration' ); if( duration > 0 ) pl.appendChild( document.createTextNode( " (" + format_time( elt.getAttribute( 'duration' ) / 1000000 ) + ")" ) ); pos.appendChild( pl );
to

Code: Select all

pl.appendChild( document.createTextNode( elt.getAttribute( 'title' ) + ( ' ' ) ) ); var duration = elt.getAttribute( 'id' ); if( duration > 0 ) pl.appendChild( document.createTextNode( elt.getAttribute( 'id' ) ) ); pos.appendChild( pl );
I have totaly replaced the duration routine to get what I need: Title from playlist and if no title show me at least something, otherwise there are plalist items but nothing is parsed so it cannot be clicked and therefore parsed for play.

This is not really solution for stationary files and duration lenghts HOWEVER, duration can be easily read on top of the http website and not necesssary to be there anyway - we can only play on file at the time.

I would greatly support the change to be implemented in next release of VLC, the grouond work is done and now someone who knows what they are doing should take over :)

P.S. Big help was from this thread: viewtopic.php?f=2&t=46258 but I read it in my own way :)

americhanac
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Feb 2011 14:05

Re: HTML Interface does not show ID

Postby americhanac » 24 Nov 2011 09:53

It's not a solution but a workaround.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests