public int GetCurrentVideoDev(byte[] device)//该函数用于获取当前视频设备 { try { LogManager.SystemLog.Debug(string.Format("Start UC_SDK_GetCurrentVideoDev")); int iRet = UCInterface.UC_SDK_GetCurrentVideoDev(device); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("Start UC_SDK_GetCurrentVideoDev error {0}", iRet)); return(iRet); } LogManager.SystemLog.Debug(string.Format("End UC_SDK_GetCurrentVideoDev")); return(iRet); } catch (Exception ex) { LogManager.SystemLog.Debug(ex.ToString()); return(-1); } }