Manolo R.G. wrote:
Dan Rossi escribió:
  
//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);
}
    
Sorry i don't has flex installed but i guess the loop is created by your 
own flash code since you're calling close and play in a loop.
I don't read the whole red5 source but i guess it will start playing by 
its own (unless you close it explicitly). If not i suppose you could 
call ISubscriberStream.play().

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

  
Hi, i just tried not closing the stream first before trying to switch to the new stream, it doesnt switch but stays on the currently played stream.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to