From 1e42ca8037cffd7e0c5327f407fe1ed3201f2cf1 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Tue, 6 Jun 2023 19:07:10 +0100 Subject: [PATCH] feat: adds WebRTC (camera-streamer) support (#1107) Signed-off-by: Pedro Lamas --- .../settings/cameras/CameraConfigDialog.vue | 3 +- src/components/widgets/camera/CameraItem.vue | 79 ++++++++++++++++++- src/locales/en.yaml | 1 + src/store/cameras/types.ts | 2 +- 4 files changed, 82 insertions(+), 3 deletions(-) diff --git a/src/components/settings/cameras/CameraConfigDialog.vue b/src/components/settings/cameras/CameraConfigDialog.vue index 9aa7bc8902..da75a0bf3a 100644 --- a/src/components/settings/cameras/CameraConfigDialog.vue +++ b/src/components/settings/cameras/CameraConfigDialog.vue @@ -4,7 +4,7 @@ :title="(camera.id != '') ? $t('app.general.label.edit_camera') : $t('app.general.label.add_camera')" :cancel-button-text="camera.source === 'config' ? $t('app.general.btn.close') : $t('app.general.btn.cancel')" :save-button-text="(camera.id !== '') ? $t('app.general.btn.save') : $t('app.general.btn.add')" - max-width="500" + max-width="600" :disabled="camera.source === 'config'" @save="handleSave" > @@ -83,6 +83,7 @@ { text: $t('app.setting.camera_type_options.mjpegadaptive'), value: 'mjpegstreamer-adaptive' }, { text: $t('app.setting.camera_type_options.mjpegstream'), value: 'mjpegstreamer' }, { text: $t('app.setting.camera_type_options.hlsstream'), value: 'hlsstream' }, + { text: $t('app.setting.camera_type_options.webrtc_camera_streamer'), value: 'webrtc-camerastreamer' }, { text: $t('app.setting.camera_type_options.video'), value: 'ipstream' }, { text: $t('app.setting.camera_type_options.iframe'), value: 'iframe' } ]" diff --git a/src/components/widgets/camera/CameraItem.vue b/src/components/widgets/camera/CameraItem.vue index a65959f5f0..75f9031b21 100644 --- a/src/components/widgets/camera/CameraItem.vue +++ b/src/components/widgets/camera/CameraItem.vue @@ -13,7 +13,7 @@ >