Manolo R.G. wrote:
Dan Rossi escribió: 
  
I see whats happening, each time ns.play is run, it will trigger this 
method, therefore its looping, as when im invoking the onBroadcast 
method its attemtping to play the live stream.
    
Do you mean you're callin ns.play(...) on flash client's onBroadcast method?

  

Sorry i should have supplied the code, im using flex, which is why i thought it would have not been worth sending, here you go, excuse the formatting its windows new lines.

//onBroadcast callback when broadcaster starts publishing

public function onBroadcast(streamName:String):void

{

    play(streamName);   

    isLive = true;

    ns.bufferTime = rebufferTime;

    currentBufferTime = rebufferTime;

    log.debug("Broadcaster Publishing on stream: " + streamName);

}

public function play(streamName:String):void

{

    ns.close();

    ns.play(streamName);

    log.info("Playing stream: " + streamName);

}
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to