Hello,
It didn’t work as you suggested, because in the multichannel selection module i didn’t get the query parameter in the method :
public void onHTTPSessionCreate(IHTTPStreamerSession httpSession)
or in other words, how can I pass the selected index to the MediaReaderListener ( because the actual channel selection is done
in the onMediaReaderOpen method, for adaptive smil streaming, you need more different index to select within the same file name with multiple bitrates channels )
If the client request with following url http://wozaip:1935/vod/smil:sample.smil/playlist.m3u8, where can I get the query string? It seems
it didn’t go to method onHTTPSessionCreate(IHTTPStreamerSession httpSession) if I implement the IMediaReaderActionNotify.
anyways, if it works, how can i combine the different bitrates with the same file name in the smil file, for example :
<smil>
<head/>
<body>
<switch>
<video src="mp4:sample.mp4?audioindex=0" system-bitrate="100000" width="200" height="300">
<param name="videoCodecId" value="avc1.66.30" valuetype="data" />
<param name="audioCodecId" value="mp4a.40.2" valuetype="data" />
</video>
<video src="mp4:sample.mp4?audioindex=1" system-bitrate="20000" width="200" height="300">
<param name="videoCodecId" value="avc1.66.30" valuetype="data" />
<param name="audioCodecId" value="mp4a.40.2" valuetype="data" />
</video>
</switch>
</body>
</smil>
Hello,
Can you use a smil file similar to this?
<smil>
<head/>
<body>
<switch>
<video src="mp4:sample.mp4" system-bitrate="100000" width="200" height="300">
<param name="videoCodecId" value="avc1.66.30" valuetype="data" />
<param name="audioCodecId" value="mp4a.40.2" valuetype="data" />
</video>
</switch>
</body>
</smil>
Assuming that your SMIL file is named sample.smil, can you use this HLS streaming request?
http://172.16.18.52:1935/vod/smil.sample.smil/playlist.m3u8?audioindex=0
This way, the query string should be passed to Wowza.
Zoran