Results 1 to 4 of 4

Thread: Selecting audio track for http streaming

  1. #1
    Join Date
    Jan 2011
    Posts
    15

    Default Selecting audio track for http streaming

    Hello

    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.

  2. #2
    Join Date
    Jan 2011
    Posts
    15

    Default

    Sorry, I just noticed that there is different thread with basically the same problem: http://www.wowza.com/forums/showthre...erActionNotify . Romano's hack is ugly as well, but probably more robust than mine.

  3. #3

    Default

    This problem should be fixed in Wowza Media Server version 3.0.4 which is due out in a day or so.

    Charlie

  4. #4
    Join Date
    Jan 2011
    Posts
    15

    Default

    Thanks. I upgraded to 3.0.4 and it works without any workarounds.

Similar Threads

  1. Keeping track of users playing live streams (HTTP streaming)
    By gauravmishra in forum Wowza Streaming Server Java API
    Replies: 2
    Last Post: 09-26-2014, 01:55 PM
  2. Can I switch audio track during VOD streaming?
    By lincoln in forum Video On Demand Streaming Discussion
    Replies: 12
    Last Post: 09-06-2012, 03:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •