public void StopRecord(int deviceId) { int ret = SDKApi.EagleControl_StopRecord(DeviceId); if (ret == 0) { IsRecording = false; } else { IsRecording = true; } }