Page 1 of 1

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

Posted: 19 Feb 2009 00:42
by ooswald
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?

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

Posted: 19 Feb 2009 01:36
by ooswald
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 ?