feat: 完善机巢图传、拍摄阶段与任务交互

- 完善双路 RTC 接收、首帧切换及拍摄结束后的本地播放释放
- 对齐无人机状态枚举与正常拍完返航标记,新增到达后本地倒计时
- 补充准备页电量与前往回执,进入任务时移除准备页路由
- 对齐拍摄中和拍摄完成原型布局,移除详情按钮
- 补充隔离测试、接口记录与项目约定

验证:最近 157 项相关模拟器隔离测试通过,Release 无签名编译通过;未调用真实飞控或图传。
This commit is contained in:
2026-11-03 16:43:23 +08:00
parent 0ed0077ec4
commit 54210925f0
33 changed files with 3242 additions and 205 deletions
@@ -6,6 +6,13 @@ enum DroneDockShootingTaskEntry {
/// 使用已有任务读取状态;Release 注入已授权的真实控制,Debug 保持只读。
static func makeController(taskID: Int, order: DroneDockHomeOrder,
context: DroneDockHomeContext) -> UIViewController {
makeController(taskID: taskID, order: order, context: context, coverURL: nil)
}
/// 准备页携带封面及召唤回执;其它入口不推断前往阶段,等 shooting 返回。
static func makeController(taskID: Int, order: DroneDockHomeOrder,
context: DroneDockHomeContext, coverURL: URL?,
initialSummonReceipt: DroneDockShootResponse? = nil) -> UIViewController {
let client = NetworkServices.shared.apiClient
let realtime = DroneDockShootingRealtimeSession(taskID: taskID,
ticketService: DroneDockSocketTokenAPI(client: client),
@@ -22,7 +29,8 @@ enum DroneDockShootingTaskEntry {
startService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockStartShootAPI(client: client),
commandService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockCommandAPI(client: client),
resummonService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockShootAPI(client: client),
initialSummonReceipt: initialSummonReceipt,
currentContext: { DroneDockHomeViewController.currentContext() }
), liveViewModel: live, realtimeSession: realtime)
), liveViewModel: live, coverURL: coverURL, realtimeSession: realtime)
}
}