Skip to main content
Participant
May 29, 2009
Question

Send PHP Command To Unload Live Stream

  • May 29, 2009
  • 2 replies
  • 838 views

Is there anyway that i could send a php command to unload a live stream?

For instance i would like to click a logout button that would then tell the server that im logging off that live stream.. Any help here would be great!

**EDIT**

Here is what i have in my SWF file now..

Stage.scaleMode = "exactFit";

     

     var nc:NetConnection = new NetConnection();

     nc.connect("rtmp://MY.IP/live/"+ confid);

     var ns:NetStream = new NetStream(nc);

mycam = Camera.get();

     mymic = Microphone.get();

     myvid.attachVideo(mycam);

     mycam.setQuality(84500,0);

     mymic.setRate(11);

     ns.attachAudio(mymic);

     ns.attachVideo(mycam);

ns.publish(+ uname);

I am sending flashvars to fill in the variables. And this is actionscript 2 because i havent ventured to AS3.

Thanks

    This topic has been closed for replies.

    2 replies

    June 4, 2009

    What exactly are you trying to accomplish? Simply by breaking the connection, the client will stop publishing. Is there something else you need to have happen?

    Assuming that there are no users subscribing to the stream, the stream will be automatically garbage collected after a bit of time... you don't absolutely need to programatically unload the stream.

    June 4, 2009

    Why do you want to use PHP instead of ActionScript?

    Jody