Try something like this (it worked for me):
   
  -----------------------------------------------------------------------------
  var ns:NetStream = new NetStream(nc);
ns.onStatus = function(info) 
  { 
   if (info.code == "NetStream.Play.Stop") 
      ns.seek(0);
}; 
  
// attach the netStream object to the video object
videoContainer.attachVideo(ns);
ns.play(streamName+".flv");
ns.pause();
  // listen for the button click
playButton.addEventListener("click", this);
   
  function click():Void
{
 ns.pause();
  }
  -----------------------------------------------------------------------

κ Óñ»¢ <[EMAIL PROTECTED]> wrote:
  Hi Guys,
First,thanks for your helps!
In client,I used flowplayer.In server,I use red5.I choosed 
ns.seek(0) and ns.play() as the implementation of replay without red5.It 
works fine.But it do not work with red5.I wonder why?Are there difference 
between local stream and server stream?In my opinion,it is waste to relink 
and play again.Are thery any away like ns.seek(0) and ns.play.
thanks for help!
yours 
tiger

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn 


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


 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to