Hi,
I want to create hls playlist with alternate rendition which hasn’t uri attribute in EXT-X-MEDIA tag
I use code
MediaListRendition mediaListRendition = new MediaListRendition();
WMSProperties properties = mediaListRendition.getProperties(true);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_GROUP_ID, "aac");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_NAME, "English");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_LANGUAGE, "eng");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_URI, "");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_TAG, HTTPStreamerCupertinoIndexPlaylist.SMIL_TAG_TYPE_MEDIA);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_DEFAULT, HTTPStreamerCupertinoIndexPlaylist.SMIL_VALUE_YES);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_AUTOSELECT, HTTPStreamerCupertinoIndexPlaylist.SMIL_VALUE_YES);
mediaListSegment.addRendition(mediaListRendition);
to create something like this
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES
But in result I have
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES,URI="chunklist_b0.m3u8"
If I replace empty string with something else
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_URI, "NONEMPTYSTRING");
it appears in result
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES,URI="NONEMPTYSTRING"