本地视频延迟优化+视频的获取链路播放

This commit is contained in:
2026-10-13 12:40:16 +08:00
parent 9671798f29
commit e4f7cc7a90
25 changed files with 6438 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/// 局域网内通过 ONVIF WS-Discovery 发现的摄像头信息。
class OnvifCamera {
final String ip;
final int port;
final String xAddr; // ONVIF device_service 地址
final String manufacturer;
final String model;
const OnvifCamera({
required this.ip,
required this.port,
required this.xAddr,
this.manufacturer = '',
this.model = '',
});
/// 列表展示:IP · 型号
String get displayName {
final m = model.isNotEmpty
? model
: (manufacturer.isNotEmpty ? manufacturer : '未知型号');
return '$ip · $m';
}
OnvifCamera copyWith({String? manufacturer, String? model}) => OnvifCamera(
ip: ip,
port: port,
xAddr: xAddr,
manufacturer: manufacturer ?? this.manufacturer,
model: model ?? this.model,
);
@override
String toString() => 'OnvifCamera($ip:$port, model=$model, xAddr=$xAddr)';
}