delete stream from FMS SSAS

删除FMS应用中的流
本文提供了一段简短的SSAS代码片段,用于在FMS应用程序中删除流。通过客户端原型定义了一个名为delStream的函数,该函数接受流名称和服务器客户端ID作为参数,并在成功或失败时发送相应的消息。

delete stream from FMS SSAS
this is a short SSAS code snippet, which can be used to delete streams in a FMS Application:

Client.prototype.delStream = function (streamName, serverClientId){
s = Stream.get (streamName);
if (s){
    s.onStatus = function (info){
        if (info.code == "NetStream.Clear.Success") {
            trace ("*Stream " + streamName + "deleted.*");
            var msg = "deleted " + streamName ;
                // Print out status message in the application console
            trace ("Sending this message: " + msg + Client.name);
           // Call the client function, 'message,' and pass it the 'msg'
           serverClientId.call ("msgFromSrvr", false, msg);
       }
       if (info.code == "NetStream.Clear.Failure"){
           trace ("*Failure to delete stream " + streamName*);
       }
   };
   //actual clear function
   s.clear ();
}
}this is the client side code to launch the function:
client_nc.call("delStream", "deleteResult", streamName, uId);

Technorati 标签: FMS

转载于:https://www.cnblogs.com/AndySong/archive/2009/05/13/1456206.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值