fix: suspend OTG live transfer on exit

This commit is contained in:
2026-07-08 09:32:35 +08:00
parent 92fcad7ac9
commit e9f593643f
4 changed files with 94 additions and 38 deletions
@@ -145,9 +145,10 @@ final class WiredCameraTransferViewModel {
connectionManager.start()
}
/// 页面消失时解绑 UI delegate,保留底层设备缓存。
/// 页面消失时解绑 UI delegate,并暂停边拍边传轮询,保留底层设备缓存。
func stop() {
connectionManager.unbindDelegate()
connectionManager.suspendLiveTransfer()
}
/// 主动断开相机连接。