Skip to main content
Known Participant
July 13, 2011
Answered

switching audio tracks

  • July 13, 2011
  • 1 reply
  • 2474 views

Hi:

Anyone knows how to switch audio track in real time? For example, show the audio tracks and choose one of them.

Thanks in advance

    This topic has been closed for replies.
    Correct answer Graeme Bull

    It´s a very big file. Video plays withouth issues but I only listen the audio track 1. This is perfect. I only want to know if would be possible force FMS to stream the file with the audio track 2 or another audio track different. The video have 2 audio track (is a movie in spanish and english). Now we always listen in spanish. Could we listen the otrher track and stream the movie in english??

    Thanks


    Essentially what you are asking is if FMS can stream out and the Flash Player can play a stream that has more than one audio track. No, it can't. The second thing you might be asking is if you can play two streams at the same time. The video stream with the audio muted and another audio track stream. Yes, you can. The problem with that though is that it is difficult to get the streams to sync up just right. There is no way to combine the streams either on the server side to make sure they are synced.

    In the end, what you want to do is either not possible or slightly difficult and may not give you the results you would want.

    1 reply

    Participating Frequently
    July 14, 2011

    Can you elaborate your question please - I am not getting what is your use case like? Sorry for asking but I need to know your exact use case to answer you properly.

    alferto82Author
    Known Participant
    July 14, 2011

    Hi:

    I´m doing a web player using flex and I would like to chenge the track in this player. The idea is show a list of audio track and choose one to listen it with the video. I´m actually using "video on demand" and the RTMP protocol. Is this possible?

    Thanks

    Participating Frequently
    July 14, 2011

    Yes very much - looks like simple use case. Its just that when you select new audio file to play, you just need to use same netstream which you were using to play earlier audio track but just pass the reset parameter to reset earlier play so that your new audio will start streaming. Does that help?