Files
flutterApp/lib/features/pv_control/presentation/models/pv_video_source.dart

19 lines
703 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// pv_control 页面支持的视频链路枚举(多源可扩展)。
///
/// 新增一种链路只需三步:
/// ① 在这里加一个枚举值;
/// ② 在 pv_control_page 的 `_wrapVideoProvider` 注册对应 cubit(若需要);
/// ③ 在 PvVideoArea / PvManualControlView 的视频层加一个渲染分支。
///
/// 切换 UI 暂不做,由页面字段 `_videoSource` 指定当前链路。
enum PvVideoSource {
/// 云端 WebRTC 流(原始方案,走 webrtc:// 地址)。
webrtc,
/// 本地以太网 RTSP:ONVIF 自动发现 + ExoPlayer 拉流,卡死自动重拉。
localRtsp,
/// USB 摄像头(UVC 采集卡,PlatformView 低延迟直显)。
usbCamera,
}