http interface and subtitles

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
maxdev
New Cone
New Cone
Posts: 1
Joined: 12 Jul 2014 14:23

http interface and subtitles

Postby maxdev » 12 Jul 2014 14:46

Hi all, I'm developing an Android application to remote control VLC via http interface, I want to add a functionality to add a subtitle track and to select the subtitle track from the availables, but cannot find in the docs how to get a list of all subtitle tracks and the current selected track.

The only thing I've found is "information" from status.json

Code: Select all

"information":{ "chapter":0, "chapters":[], "title":0, "category":{ "Diffusione 0":{ "Codifica":"H264 - MPEG-4 AVC (part 10) (avc1)", "Tipo":"Video", "Immagini_al_secondo":"23.976023", "Formato_decodificato":"Planar 4:2:0 YUV", "Risoluzione":"720x400" }, "Diffusione 3":{ "Codifica":"Text subtitles with various tags (subt)", "Tipo":"Sottotitoli" }, "Diffusione 1":{ "Lingua":"Inglese", "Codifica":"MPEG AAC Audio (mp4a)", "Tipo":"Audio", "Estensione_AAC":"SBR", "Campionamento":"48000 Hz", "Canali":"Stereo" }, "Diffusione 2":{ "Codifica":"Text subtitles with various tags (subt)", "Tipo":"Sottotitoli" }, "meta":{ "showName":"Falling Skies -", "filename":"Falling Skies - S04E02.mp4", "title":"Falling Skies - S04E02", "encoded_by":"Lavf54.63.104", "episodeNumber":"02", "seasonNumber":"04" }, "Diffusione 4":{ "Codifica":"Text subtitles with various tags (subt)", "Tipo":"Sottotitoli" } }
but it has no ids and it's entry are translated by locale (like in "Diffusione", "Codifica", "Tipo") so it's very diffucult to parse...

the doc says:

Code: Select all

> select the sibtitle track (use the number from the stream) ?command=subtitle_track&val=<val>
what does mean "(use the number from the stream)"???

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 22 guests