luahttp status.[json/xml] doesn't have anything to define the currently selected audio/video/subtitle streams.
Details about all streams are available, and setting audio_track/video_track/subtitle_track are detailed from API version 2, but currently selected stream information is missing.
IMHO, ideally a
"current":"current"
tag would be added to the selected streams (as is done with the currently playing item in playlist.json), and
"audio_track":"Stream 0"
"video_track":"Stream 1"
"subtitle_track":"Stream 2"
tags would be added at either the root level, or under "information"
(preferably the latter).
Quick reference status.json output below for reference, where you can see what streams are available, but can not see which streams are selected:
{
"fullscreen":false,
"stats":{
"inputbitrate":0.63634830713272,
"sentbytes":0,
"lostabuffers":1,
"averagedemuxbitrate":0,
"readpackets":1853,
"demuxreadpackets":0,
"lostpictures":18,
"displayedpictures":20501,
"sentpackets":0,
"demuxreadbytes":143217424,
"demuxbitrate":0.49835073947906,
"playedabuffers":6712,
"demuxdiscontinuity":0,
"decodedaudio":6712,
"sendbitrate":0,
"readbytes":144188856,
"averageinputbitrate":0,
"demuxcorrupted":0,
"decodedvideo":5359
},
"aspectratio":"default",
"audiodelay":0,
"apiversion":3,
"time":3822,
"volume":66,
"length":10777,
"random":false,
"audiofilters":{
"filter_0":""
},
"rate":1,
"videoeffects":{
"hue":0,
"saturation":1,
"contrast":1,
"brightness":1,
"gamma":1
},
"state":"paused",
"loop":false,
"version":"2.0.6 Twoflower",
"position":0.3547026515007,
"information":{
"titles":[0],
"chapters":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],
"category":{
"Stream 0":{
"Frame_rate":"25",
"Decoded_format":"Planar 4:2:0 YUV",
"Codec":"MPEG-1/2 Video (mpgv)",
"Type":"Video",
"Language":"English",
"Resolution":"720x576"
},
"Stream 1":{
"Bitrate":"384 kb/s",
"Type":"Audio",
"Channels":"3F2R/LFE",
"Sample_rate":"48000 Hz",
"Language":"English",
"Codec":"A52 Audio (aka AC3) (a52 )"
},
"Stream 3":{
"Type":"Subtitle",
"Language":"ﻉﺮﺒﻳ",
"Codec":"DVD Subtitles (spu )"
},
"meta":{
"title":"King Kong",
"filename":"King Kong"
},
"Stream 4":{
"Type":"Subtitle",
"Language":"Islenska",
"Codec":"DVD Subtitles (spu )"
},
"Stream 2":{
"Type":"Subtitle",
"Language":"English",
"Codec":"DVD Subtitles (spu )"
}
}
},
"repeat":false,
"subtitledelay":0,
"equalizer":[]
}