http interface and subtitles
Posted: 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
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:
what does mean "(use the number from the stream)"???
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"
}
}
the doc says:
Code: Select all
> select the sibtitle track (use the number from the stream)
?command=subtitle_track&val=<val>