I have a simple example:
1) one user publish video on FCS
2) one user play video from FCS
This is the client code:
//--->>>USER PUBLISH VIDEO<<<---//
//SETUP CAMERA
client_cam = Camera.get();
client_cam.setMode(288,216,3);
client_cam.setQuality(20480,75);
client_cam.setKeyFrameInterval(3);
//CONNECT TO FCS
function doConnect() { ;
client_nc=new NetConnection(); &n bsp;
client_nc.connect("rtmp://192. 168.1.11/test", "OutVideo");
Live_video.attachVideo(client_ cam);
}
//PUBLISH VIDEO
function StartVideoPublish() { ;
out_ns=new NetStream(_root.client_nc); &nb sp;
out_ns.attachVideo(client_cam) ;
out_ns.publish("VideoLive");&n bsp;
}
doConnect();
StartVideoPublish();
//--->>>USER PLAY VIDEO<<<---//
//CONNECT TO FCS
function doConnect() { ;
client_nc=new NetConnection();
client_nc.connect("rtmp://192. 168.1.11/test", "InVideo"); & nbsp;
}
//PLAY VIDEO
function StartVideoPlay() {
in_ns=new NetStream(_root.client_nc);
Live_vc.attachVideo(in_ns);&nb sp; &nb sp;
in_ns.play("VideoLive");
}
doConnect();
StartVideoPlay();
In the section Streams of app_inspector i will see:
VideoLive 2 &n bsp; 140071888 playing live
VideoLive 1 &n bsp; 139290024 publishing
This is my question:
Can i stop 'playing live' from server side with command like
application.clearStreams or similar ???
P.S: i have suppose a break connection of client that play the streams; In
this case it is NOT possibile use the method client.call that can run a client
code like in_ns.receiveVideo(false)