I tested solution from http://www.wowza.com/forums/content....terface&page=2 and it works ok with RTMP streaming. But how can it be adapted to HTTP (cupertino and sanjose)?
I tried implementing onHTTPSessionCreate and finding some object that gets passed from http session to onMediaReaderOpen. However IMediaStream object is completely different and IClient is null. What I want to achieve is to have different HTTP sessions playing the same VoD mp4 file with different audio tracks.
For now I found only extremely crude hack (which probably only worked by accident) that allows me to tie MediaReader to specific http session - onMediaReaderOpen and onHTTPSessionCreate seem to be always executed in the same thread, so I can put requested track ID in ThreadLocal variable. I really hope there is a better way.