fix: suspend OTG live transfer on exit
This commit is contained in:
@ -145,9 +145,10 @@ final class WiredCameraTransferViewModel {
|
||||
connectionManager.start()
|
||||
}
|
||||
|
||||
/// 页面消失时解绑 UI delegate,保留底层设备缓存。
|
||||
/// 页面消失时解绑 UI delegate,并暂停边拍边传轮询,保留底层设备缓存。
|
||||
func stop() {
|
||||
connectionManager.unbindDelegate()
|
||||
connectionManager.suspendLiveTransfer()
|
||||
}
|
||||
|
||||
/// 主动断开相机连接。
|
||||
|
||||
Reference in New Issue
Block a user