提供FMS(FCS)服务端获取flv时间长度和删除flv文件的方法

只要在main.asc里添加下列代码
//=====================================================================;
function getStreamLength(name) {
return Stream.length(name);;
}
//=====================================================================;
function clearStream(name) {
trace("clearStream("+name+");");
var stream = Stream.get(name);
return stream.clear();
}
//=====================================================================;
//设置Client.prototype;
//=====================================================================;
Client.prototype.getStreamLength = getStreamLength;
Client.prototype.clearStream = clearStream;