public bool VideoClose() { bool bolResult = false; if (SoundState == Enum_VideoPlaySoundState.SoundOpen) { //关闭音频 CloseSound(); } SDK_DaHua.CLIENT_StopSaveRealData(intPlayID); VideoRecordStatus = false; SDK_DaHua.CLIENT_StopRealPlay(intPlayID); SDK_DaHua.CLIENT_Logout(intLoginID); VideoPlayState = Enum_VideoPlayState.NotInPlayState; VideoPlayCallback(new VideoPlayCallbackValue { evType = Enum_VideoPlayEventType.VideoClose }); SDKState.DHVideoSDK_Release(); return(bolResult); }