Skip to main content
Participant
May 29, 2009 5:36 PM UTC
Question

Send PHP Command To Unload Live Stream

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Jun 4, 2009 3:08 PM UTC

    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.

    Translate
    Jun 4, 2009 4:43 AM UTC

    Why do you want to use PHP instead of ActionScript?

    Jody

    Translate