Skip to main content
Participating Frequently
February 22, 2010
Question

NetStreamPlayTransitions.SWITCH question.

  • February 22, 2010
  • 1 reply
  • 993 views

Hi,
I'm trying to use NetStreamPlayTransitions.SWITCH to create a multi angle view that switches between video streams. The issue I'm having is that NetStream.Play.TransitionComplete is called only after the buffer for the video before it is used up(this makes sense when using SWITCH to go between bandwidths but that's not what i'm using it for). Is there a way to force this switch before the buffer of the previous video is used up?

I've looked into SWAP but I can't really find any documentation on it. What I ideally would have happen is the next video in the array is triggered, that video is buffered and when there is enough to play it the stream switches to that one. SWITCH works really nice because there is no jump in switching when it's played but I just don't want the buffer to play out before the switch.

Is there a way of maybe clearing the buffer of the playing video before i call SWITCH so it transitions quickly?

    This topic has been closed for replies.

    1 reply

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 22, 2010

    Hi,

    I get your point. But this enhancement which you are asking for is planned for next FMS release, which enables you to switch between the stream faster. FOr now, you can set less bufferTime to minimise the impact.

    Regards,

    Janaki L

    Participating Frequently
    February 22, 2010

    i see.  is there a way to set a max buffer or clear the buffer after it's already loaded in?  the issue i'm having is that if the stream

    is paused then the buffer gets very large and the next transtions take a very long time.

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 22, 2010

    You can use the property "NetStream.maxPauseBufferTime" to restrict the growth of the buffer during Paused state.

    Regards,

    Janaki L