public SmcErr Unload()
{
NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
logEx.Trace("Enter: T28181IvsVideoMonitor.Unload().");
SmcErr err = new CgwError();
//停止定时器
this.updateCameraTimer.Stop();
int result = sipStack.SIP_SDK_UNREGISTER();
//释放所有实况通道,释放NETSOURCE资源
result += sipStack.IVS_NETSOURCE_UnInit();
result += sipStack.SIP_SDK_UnInit();
result += rtpAdapter.ESDK_RTP_UnInit();
if (result == CgwConst.IVS_SDK_SUCCESS_TAG)
{
logEx.Info("Unload T28181video monitor success.Monitor id:{0}.", this.monitorId);
}
else
{
err.SetErrorNo(CgwError.MONITOR_UDLOAD_FAILED);
logEx.Error("Unload T28181video monitor failed.Monitor id:{0}.", this.monitorId);
}
return err;
}