将 otg_swift OTG 引擎迁入 Core/CameraOTG,并接入旅拍有线传图与历史导入。

恢复 USB 相机连接、边拍边传、三品牌驱动与 SwiftUI 历史导入页,通过适配层对接现有本地上传与 OSS 管道。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 11:22:07 +08:00
parent d7fec35715
commit be9c844bd3
50 changed files with 5721 additions and 20 deletions

View File

@ -0,0 +1,41 @@
import Foundation
/// MTP
struct SonyMTPHelpSection: Equatable, Identifiable {
var id: String { title }
let title: String
let body: String
}
/// MTP
enum SonyMTPHelpContent {
static let navigationTitle = "索尼 MTP 导入说明"
static let introduction = """
当前可能处于「电脑遥控PC Remote」等 USB 模式App 无法读取 SD 卡历史照片。\
若要使用「历史导入」浏览相机内已有照片,请先将相机切换为 MTP 模式。
"""
static let sections: [SonyMTPHelpSection] = [
SonyMTPHelpSection(
title: "1. USB 连接模式",
body: "进入相机菜单:设置 → USB 连接 → 选择「MTP」或「自动」优先 MTP"
),
SonyMTPHelpSection(
title: "2. 关闭遥控连接",
body: "关闭:网络 → 电脑遥控、智能手机连接。避免相机仍处于 PC Remote 传图状态。"
),
SonyMTPHelpSection(
title: "3. 保存目的地",
body: "静态影像保存目的地勿选「仅电脑」;建议「仅拍摄装置」或「电脑+拍摄装置」。"
),
SonyMTPHelpSection(
title: "4. 重新连接",
body: "修改设置后,拔插 USB 线,回到 App 重新连接相机,再点击「历史导入」。"
),
SonyMTPHelpSection(
title: "5. 说明",
body: "MTP 连接期间机身可能无法按快门。边拍边传请使用 PC Remote 模式,历史导入请使用 MTP 模式。"
)
]
}