Commit 448728d5 authored by 马乐's avatar 马乐

1.增加异常打印

parent b4c399e3
...@@ -133,8 +133,9 @@ class MainActivity : AppCompatActivity(),VideoCallback{ ...@@ -133,8 +133,9 @@ class MainActivity : AppCompatActivity(),VideoCallback{
} }
} }
} catch (e: CancellationException) { } catch (e: CancellationException) {
// e.printStackTrace() LogUtils.e("${e.message}")
coroutineContext[DmsCoroutineContext]?.spmCameraDevice?.stopPreview() coroutineContext[DmsCoroutineContext]?.spmCameraDevice?.stopPreview()
coroutineContext[DmsCoroutineContext]?.spmCameraDevice?.stopRecord(RecordSource.GENERAL_CAMERA)
smartPlatformManager.closeCameraDevice(coroutineContext[DmsCoroutineContext]?.spmCameraDevice) smartPlatformManager.closeCameraDevice(coroutineContext[DmsCoroutineContext]?.spmCameraDevice)
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() e.printStackTrace()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment