feat: 统一机巢加载体验并对齐到达态界面
工作台、准备页、任务首次读取和景区空境库复用应用通用 Loading;到达态按 Web 展示,保留倒计时及手动开拍权限。新增图传几何诊断,不改变 Fit 渲染或设备连接行为。 验证:App 与测试包无签名 build-for-testing 编译通过,git diff --check 通过。iPhone 11 当前 unavailable,真机回归待设备重连后执行。
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import Foundation
|
||||
|
||||
/// SDK 解码帧的原始尺寸和顺时针旋转角度,仅用于定位显示比例,不参与选流。
|
||||
struct DroneDockVideoFrameGeometry: Equatable, Sendable {
|
||||
let width: Int
|
||||
let height: Int
|
||||
let rotation: Int
|
||||
}
|
||||
|
||||
/// 某一路图传在离散事件时的显示几何;不含凭证、视频内容或设备控制信息。
|
||||
struct DroneDockLiveGeometry: Equatable, Sendable {
|
||||
let trigger: String
|
||||
let role: String
|
||||
let roomID: String
|
||||
let streamID: String
|
||||
let frame: DroneDockVideoFrameGeometry?
|
||||
let containerWidth: Double
|
||||
let containerHeight: Double
|
||||
let hostWidth: Double
|
||||
let hostHeight: Double
|
||||
let isSelected: Bool
|
||||
let sdkVersion: String?
|
||||
|
||||
/// 复用任务页诊断通道;缺失帧信息保留 null,不将未知旋转或尺寸伪造成零。
|
||||
var diagnosticFields: [String: Any] {
|
||||
["trigger": trigger, "role": role, "room_id": roomID, "stream_id": streamID,
|
||||
"frame_w": frame?.width as Any? ?? NSNull(), "frame_h": frame?.height as Any? ?? NSNull(),
|
||||
"rotation": frame?.rotation as Any? ?? NSNull(), "frame_unit": "px", "rotation_unit": "degree",
|
||||
"container_w": containerWidth, "container_h": containerHeight,
|
||||
"host_w": hostWidth, "host_h": hostHeight, "container_unit": "pt",
|
||||
"render_mode": "fit", "is_selected": isSelected, "sdk_version": sdkVersion as Any? ?? NSNull()]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user