接入声网四路视频
This commit is contained in:
@@ -11,6 +11,7 @@ import '../theme/pv_colors.dart';
|
||||
import 'pv_local_rtsp_video.dart';
|
||||
import 'pv_usb_camera_video.dart';
|
||||
import 'pv_video_fit_box.dart';
|
||||
import 'pv_camera_view.dart';
|
||||
|
||||
/// 实时视频区:底层播放 WebRTC 流,上层叠加设计稿中的信息浮层。
|
||||
///
|
||||
@@ -100,6 +101,9 @@ class PvVideoArea extends StatelessWidget {
|
||||
|
||||
/// 各链路的原始视频层(组件内部自己等比居中)。
|
||||
Widget _buildLayer() {
|
||||
if (videoSource.hasDirectionalViews) {
|
||||
return PvSwitchableCameraView(source: videoSource, fit: videoFit);
|
||||
}
|
||||
if (videoSource == PvVideoSource.usbCamera) return const PvUsbCameraVideo();
|
||||
if (videoSource == PvVideoSource.localRtsp) return const PvLocalRtspVideo();
|
||||
if (streamUrl.isNotEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user