Looks like i can get information about alternatives only from first element from variants array.
Playlist example:
#EXTM3U
#EXT-X-VERSION:5
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="Audio 0",DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="ger",URI="audio_3/playlist.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="Audio 1",DEFAULT=NO,AUTOSELECT=YES,LANGUAGE="ger",URI="audio_4/playlist.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=997142,CODECS="avc1.4d0029",AUDIO="audio"
track_0_800/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=1880000,CODECS="avc1.4d0029",AUDIO="audio"
track_1_1600/playlist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=2736607,CODECS="avc1.4d0029",AUDIO="audio"
track_2_2500/playlist.m3u8
{
"Variants": [
{
"URI": "track_0_800/playlist.m3u8",
"Chunklist": null,
"ProgramId": 0,
"Bandwidth": 997142,
"Codecs": "avc1.4d0029",
"Resolution": "",
"Audio": "audio",
"Video": "",
"Subtitles": "",
"Captions": "",
"Name": "",
"Iframe": false,
"Alternatives": [
{
"GroupId": "audio",
"URI": "audio_3/playlist.m3u8",
"Type": "AUDIO",
"Language": "ger",
"Name": "Audio 0",
"Default": true,
"Autoselect": "YES",
"Forced": "",
"Characteristics": "",
"Subtitles": ""
},
{
"GroupId": "audio",
"URI": "audio_4/playlist.m3u8",
"Type": "AUDIO",
"Language": "ger",
"Name": "Audio 1",
"Default": false,
"Autoselect": "YES",
"Forced": "",
"Characteristics": "",
"Subtitles": ""
}
]
},
{
"URI": "track_1_1600/playlist.m3u8",
"Chunklist": null,
"ProgramId": 0,
"Bandwidth": 1880000,
"Codecs": "avc1.4d0029",
"Resolution": "",
"Audio": "audio",
"Video": "",
"Subtitles": "",
"Captions": "",
"Name": "",
"Iframe": false,
"Alternatives": null
},
{
"URI": "track_2_2500/playlist.m3u8",
"Chunklist": null,
"ProgramId": 0,
"Bandwidth": 2736607,
"Codecs": "avc1.4d0029",
"Resolution": "",
"Audio": "audio",
"Video": "",
"Subtitles": "",
"Captions": "",
"Name": "",
"Iframe": false,
"Alternatives": null
}
],
"Args": "",
"CypherVersion": ""
}
This is correct behaviour, shouldn't we have information about alternatives for each variant?
Looks like i can get information about alternatives only from first element from variants array.
Playlist example:
Dumped Variants from
masterpl := p.(*m3u8.MasterPlaylist)This is correct behaviour, shouldn't we have information about alternatives for each variant?