HTTP Intf: Titles/Chapters/Languages/Subtitles (Help needed)

Want to help the VideoLAN project? Designers, testers, translators, please come...
This is NOT about GETTING some help.
Forum rules
Please read the forum's rules carefully before posting. This forum should not be used to post VLC usage related questions.
ooswald
New Cone
New Cone
Posts: 8
Joined: 09 Jul 2007 18:47

HTTP Intf: Titles/Chapters/Languages/Subtitles (Help needed)

Postby ooswald » 19 Feb 2009 00:42

I'd like to extend the web interface with the ability to easily switch between DVD Titles, Chapters, Languages and Subtitles and need some kickstart hints.

I'm planning
- to add requests/mediainfo.xml which provides extended information on the currently playing medium such as a list of all DVD chapters, available languages, etc. (I might as well integrate this into status.xml)
- to extend js/functions.js with the code to parse/call above xml structure
- to add corresponding drop down lists and other controls to dialogs/main

To do so, I need your help by pointing me into the right direction concerning the information gathering on the current medium; and the activation of a specific language/subtitle/... I couldn't find anything related to VLC 0.9.8a in the docs - or was I simply using the wrong search terms?

ooswald
New Cone
New Cone
Posts: 8
Joined: 09 Jul 2007 18:47

Re: HTTP Intf: Titles/Chapters/Languages/Subtitles (Help needed)

Postby ooswald » 19 Feb 2009 01:36

Finally found what I need:

Code: Select all

<root> ... <programs> <vlc id="foreach" param1="item" param2="program" /> <title name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </programs> <titles> <vlc id="foreach" param1="item" param2="title" /> <title name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </titles> <chapters> <vlc id="foreach" param1="item" param2="chapter" /> <chapter name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </chapters> <audiostreams> <vlc id="foreach" param1="item" param2="audio-es" /> <audiostream name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </audiostreams> <videostreams> <vlc id="foreach" param1="item" param2="video-es" /> <videostream name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </videostreams> <subtitles> <vlc id="foreach" param1="item" param2="spu-es" /> <subtitle name="<vlc id="value" param1="item.name xml_encode" />" id="<vlc id="value" param1="item.id xml_encode" />" selected="<vlc id="value" param1="item.selected" />" /> <vlc id="end" /> </subtitles> </root>
But I'm stuck on activating any of the items in program, title, chapter, audio-es, video-es and spu-es... vlc_var_set ?


Return to “Contribute and help the VideoLAN project”

Who is online

Users browsing this forum: No registered users and 35 guests