@camera.ui/server 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/assets/{404-DRRPa9Hr.js → 404-ekmIpFW1.js} +1 -1
- package/dist/interface/assets/{About-Db5MifHo.js → About-CvajU0JT.js} +1 -1
- package/dist/interface/assets/Adminpanel-DrKaMQqd.js +1 -0
- package/dist/interface/assets/Automation-Dn1ZXmhy.js +2 -0
- package/dist/interface/assets/AutomationImport-U7r6BcW_.js +2 -0
- package/dist/interface/assets/{AutomationStore-Ca07W8uH.js → AutomationStore-DZBtLuIs.js} +2 -2
- package/dist/interface/assets/{AutomationStoreDetail-DmFvT2az.js → AutomationStoreDetail-BXpOtPMl.js} +2 -2
- package/dist/interface/assets/{Automations-Dr8K-cDz.js → Automations-DGHcWJ0h.js} +2 -2
- package/dist/interface/assets/Camera-CVJ-46dw.js +2 -0
- package/dist/interface/assets/Camera-Da5zEitE.css +1 -0
- package/dist/interface/assets/{CameraConsole-BcvP76iJ.js → CameraConsole-DPI9LjVK.js} +1 -1
- package/dist/interface/assets/Cameras-2kM76WUB.css +1 -0
- package/dist/interface/assets/Cameras-DsZ7VINe.js +652 -0
- package/dist/interface/assets/Camview-Lnxd3oe8.js +1 -0
- package/dist/interface/assets/Config-B1ZKVfMn.js +2 -0
- package/dist/interface/assets/ConfigActionCameraControl-BHKVJQqx.js +1 -0
- package/dist/interface/assets/{ConfigActionDelay-DTjjadCG.js → ConfigActionDelay-BS1vLvDQ.js} +1 -1
- package/dist/interface/assets/ConfigActionHttp-BKlRdtJr.js +1 -0
- package/dist/interface/assets/{ConfigActionImageInput-DY8RQJ2h.js → ConfigActionImageInput-DveJ7oK8.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotification-CJL8uNR-.js → ConfigActionNotification-Cn3qFFiK.js} +1 -1
- package/dist/interface/assets/ConfigActionOutput-Bg6d4zFD.js +1 -0
- package/dist/interface/assets/{ConfigActionPlugin-D5oE8oXm.js → ConfigActionPlugin-u-_sCQs9.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-CJ-mk6eS.js → ConfigActionSensor-Cx1Q9VtS.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-DCCiYu-s.js → ConfigActionSnapshot-DN4UC9jz.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-F28sicqK.js → ConfigActionVariable-Yufao52p.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-BJhRgP7t.js → ConfigConditionIfElse-X9Sf0RwG.js} +1 -1
- package/dist/interface/assets/ConfigConditionSensorState-DQkz0FC6.js +1 -0
- package/dist/interface/assets/{ConfigConditionSwitch-BKToCaFK.js → ConfigConditionSwitch-B4OICWxL.js} +1 -1
- package/dist/interface/assets/ConfigConditionTime-DRhAEuuC.js +1 -0
- package/dist/interface/assets/{ConfigTriggerDetection-BWd3QqYf.js → ConfigTriggerDetection-CzI4hgRA.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerGeofence-BoT9t-8V.js → ConfigTriggerGeofence-RUlZmXAo.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerManual-Bt62nmi8.js → ConfigTriggerManual-Jjh7ZhyC.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-oBDIqAMo.js → ConfigTriggerSchedule-Dr6ALguI.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-BlTHlstZ.js → ConfigTriggerSensor-DLxdw9Fd.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem--nEg_iQ0.js → ConfigTriggerSystem-DYDpUWwi.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-83rLUOjQ.js → ConfigTriggerWebhook-DiW3cwjT.js} +1 -1
- package/dist/interface/assets/Console-B55HKp9M.js +1 -0
- package/dist/interface/assets/{CuiActionButton-CNjL01gn.js → CuiActionButton-iNuXCl7_.js} +1 -1
- package/dist/interface/assets/{CuiAvatar-BDT9c-UI.js → CuiAvatar-B1PdXoLS.js} +1 -1
- package/dist/interface/assets/{CuiBBoxPlayground-CMnBcPwI.js → CuiBBoxPlayground-BJYeyVTF.js} +1 -1
- package/dist/interface/assets/{CuiBottomSheet-h5sjwTf4.js → CuiBottomSheet-B57WDcr5.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-Da0yy5zi.js +1 -0
- package/dist/interface/assets/CuiCameraCard-Dix4Iyrv.js +1 -0
- package/dist/interface/assets/{CuiCameraPipCard-DElQvAB0.js → CuiCameraPipCard-BAOlD5uq.js} +1 -1
- package/dist/interface/assets/CuiCameraRecordings-ET-hbDL9.js +1 -0
- package/dist/interface/assets/{CuiCameraShares-Cw-Mffg8.js → CuiCameraShares-CMzYmZt7.js} +1 -1
- package/dist/interface/assets/CuiCameraSnapshot-BcJfNxnj.js +1 -0
- package/dist/interface/assets/CuiCameraTable-CmyHU7oP.js +2 -0
- package/dist/interface/assets/{CuiDataTable-C5qi7zpz.js → CuiDataTable-Cd1jvrN0.js} +1 -1
- package/dist/interface/assets/{CuiFloatingButton-Pmur2pAJ.js → CuiFloatingButton-B3_fNyCP.js} +1 -1
- package/dist/interface/assets/{CuiImage-DVoYtgtl.js → CuiImage-BupeZIam.js} +1 -1
- package/dist/interface/assets/{CuiMarkdownContent-ecpe3mHA.js → CuiMarkdownContent-B4fVlO8h.js} +1 -1
- package/dist/interface/assets/CuiMarkdownContent-CMPFzD-0.js +1 -0
- package/dist/interface/assets/{CuiMenu-B7AhQbgB.js → CuiMenu-C-rnBf9W.js} +1 -1
- package/dist/interface/assets/{CuiPluginCard-BBV_hV1R.css → CuiPluginCard-C9zsmIaC.css} +1 -1
- package/dist/interface/assets/CuiPluginCard-Cs3gCugA.js +2 -0
- package/dist/interface/assets/{CuiPluginCategoryChip-nEwIiKiK.js → CuiPluginCategoryChip-D_ICXcvd.js} +1 -1
- package/dist/interface/assets/{CuiPluginOAuthButton-CJGsl-89.js → CuiPluginOAuthButton-B1e0NCmA.js} +2 -2
- package/dist/interface/assets/{CuiPluginTrustBadge-DExKttfC.js → CuiPluginTrustBadge-CuxXssET.js} +1 -1
- package/dist/interface/assets/{CuiQRCode-DkRZ5hfS.js → CuiQRCode-46CN267y.js} +1 -1
- package/dist/interface/assets/{CuiRecordingsGrid-lcLty5PV.css → CuiRecordingsGrid-DRBC07wN.css} +1 -1
- package/dist/interface/assets/CuiRecordingsGrid-FObjS4y5.js +1 -0
- package/dist/interface/assets/CuiSchema-BvjMb-mO.js +1 -0
- package/dist/interface/assets/{CuiTopNavbarItem-w21c3xtQ.js → CuiTopNavbarItem-CmnJEc_r.js} +1 -1
- package/dist/interface/assets/{CuiTopbarSlot-CYPUqVPx.js → CuiTopbarSlot-T_pdxsit.js} +1 -1
- package/dist/interface/assets/Faces-DHk9Jq3T.js +1 -0
- package/dist/interface/assets/FirstSteps-Bb3XOidA.js +1 -0
- package/dist/interface/assets/{Instances-FeIAnJix.js → Instances-CXPH9NdC.js} +1 -1
- package/dist/interface/assets/Logs-jN6cBnCk.js +6 -0
- package/dist/interface/assets/{Menu-Gqs2UiSW.js → Menu-BhWV3vKB.js} +1 -1
- package/dist/interface/assets/{OAuthDeviceFlow-hNJ_UrdG.js → OAuthDeviceFlow-XfU0jZ6x.js} +1 -1
- package/dist/interface/assets/Plugin-BF0VMRby.js +1 -0
- package/dist/interface/assets/Plugin-DbSiTjYn.css +1 -0
- package/dist/interface/assets/{PluginConsole-Bwd5Mktk.js → PluginConsole-DoeboO_n.js} +1 -1
- package/dist/interface/assets/PluginDetail-C2UBJlKS.js +2 -0
- package/dist/interface/assets/{PluginSchema-D92qcqf9.js → PluginSchema-BD-rLvro.js} +1 -1
- package/dist/interface/assets/PluginSearch-CTIiYmP4.js +1 -0
- package/dist/interface/assets/PluginSearch-NnCJ7vG2.js +2 -0
- package/dist/interface/assets/{Plugins-gxyxkQ5i.js → Plugins-BLtk8Off.js} +1 -1
- package/dist/interface/assets/Recordings-CMO0UwaS.js +1 -0
- package/dist/interface/assets/{Settings-D2LHMohy2.js → Settings-BAVtA47G2.js} +1 -1
- package/dist/interface/assets/SettingsAccount-Iz4WalaS.js +1 -0
- package/dist/interface/assets/SettingsAccount-NUdKG4ow.js +1 -0
- package/dist/interface/assets/SettingsAppearance-Ck1O2w3P.js +1 -0
- package/dist/interface/assets/{SettingsAppearance--Eidr-fz.js → SettingsAppearance-SLzxaqjN.js} +1 -1
- package/dist/interface/assets/SettingsBackup-CPC0aLD3.js +1 -0
- package/dist/interface/assets/SettingsNotifications-DB4CcddP.js +2 -0
- package/dist/interface/assets/SettingsRecordings-C15sTnLd.js +1 -0
- package/dist/interface/assets/SettingsRemote-5nVdezk3.js +1 -0
- package/dist/interface/assets/SettingsSystem-FqKuLssS.js +2 -0
- package/dist/interface/assets/SettingsUsers-CCp_3xlV.js +1 -0
- package/dist/interface/assets/Terminal-BHvfL8kE.js +4 -0
- package/dist/interface/assets/{VariableInput-DdVw4SIR.js → VariableInput-BnNttSx9.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-SJPd5c8d.js → VariableSuggestions-BbT0U9F0.js} +1 -1
- package/dist/interface/assets/VersionsHandler-jleSwMVy.js +7 -0
- package/dist/interface/assets/{Workers-DWSJsRko.js → Workers-ELW90lll.js} +2 -2
- package/dist/interface/assets/{account-CMuSWY7R.js → account-DqyKcqe6.js} +1 -1
- package/dist/interface/assets/ace-6JpPWRIj.js +1 -0
- package/dist/interface/assets/{ace.config-D884GuRj.js → ace.config-BnKJ0Xjj.js} +1 -1
- package/dist/interface/assets/{alert-circle-BBVlWmUb.js → alert-circle-DeKKKwiu.js} +1 -1
- package/dist/interface/assets/{alert-outline-MJaaWeWU.js → alert-outline-C4_42ECn.js} +1 -1
- package/dist/interface/assets/{api-Cv3vt1pa.js → api-BRin642H.js} +1 -1
- package/dist/interface/assets/api-ByvWBLH3.js +2 -0
- package/dist/interface/assets/api-dcK5urq7.css +2 -0
- package/dist/interface/assets/{arrow-left-Bzo6lbMk.js → arrow-left-DroMCfOc.js} +1 -1
- package/dist/interface/assets/{arrow-right-outline-DU6p5Mjp.js → arrow-right-outline-CvgD4nuT.js} +1 -1
- package/dist/interface/assets/auth-D5gzm869.js +1 -0
- package/dist/interface/assets/{automation-BjkFcQH9.js → automation-BjZc8WL7.js} +1 -1
- package/dist/interface/assets/{automations-irBgx9Ew.js → automations-B9KDzbWq.js} +1 -1
- package/dist/interface/assets/automations-CmA6Yx5B.js +1 -0
- package/dist/interface/assets/{back-filled-DI8fXlRr.js → back-filled-LVLhJP7G.js} +1 -1
- package/dist/interface/assets/{bell-Xdsks-42.js → bell-_E2Lq4ub.js} +1 -1
- package/dist/interface/assets/{bell-outline-Cy3lRQBX.js → bell-outline-CHhIZudN.js} +1 -1
- package/dist/interface/assets/{bell-ring-DR_BFore.js → bell-ring-DgLkBDcU.js} +1 -1
- package/dist/interface/assets/{bug-BkbVdwX_.js → bug-Eq4PDwA4.js} +1 -1
- package/dist/interface/assets/{cameras-DxjpuzW1.js → cameras-CYwpMvA8.js} +1 -1
- package/dist/interface/assets/{cameras.schema-7ex1wBck.js → cameras.schema-neefhBQz.js} +1 -1
- package/dist/interface/assets/{cctv-D8gURS6i.js → cctv-BZIDJlxZ.js} +1 -1
- package/dist/interface/assets/{cctv-izLKpHLU.js → cctv-DbFrrwEm.js} +1 -1
- package/dist/interface/assets/{check-vQdlfVb0.js → check-COWE52r_.js} +1 -1
- package/dist/interface/assets/{check-circle-pC6Mk9ok.js → check-circle-CAbOGJc_.js} +1 -1
- package/dist/interface/assets/{chevron-down-5hhpriLd.js → chevron-down-Bu7d-Y9N.js} +1 -1
- package/dist/interface/assets/{chevron-right-B8jZK42K.js → chevron-right-90_Zn7fJ.js} +1 -1
- package/dist/interface/assets/{circular-connection-CShziQTj.js → circular-connection-Fq-Vqe3X.js} +1 -1
- package/dist/interface/assets/{clock-outline-C1Qoi42Q.js → clock-outline-CqPKrGj2.js} +1 -1
- package/dist/interface/assets/{close-CunDSika.js → close-BTPBtoEq.js} +1 -1
- package/dist/interface/assets/{close-circle-ClO0DCH3.js → close-circle-BAE2M1UZ.js} +1 -1
- package/dist/interface/assets/{cloud-check-DH_MvuMa.js → cloud-check-C2zK34QI.js} +1 -1
- package/dist/interface/assets/{cloud-outline-C6S72e1A.js → cloud-outline-64fdhdhh.js} +1 -1
- package/dist/interface/assets/{cloud-outline-CNhBvx4x.js → cloud-outline-BooRVJGO.js} +1 -1
- package/dist/interface/assets/cloudHandoff-CdYAKJPM.js +1 -0
- package/dist/interface/assets/{cog-Bgvz011z.js → cog-BOiZ8Brk.js} +1 -1
- package/dist/interface/assets/{cog-outline-uZ6J7_NJ.js → cog-outline-CXjehRoX.js} +1 -1
- package/dist/interface/assets/{config-DwlSsbcP.js → config-BLaep_I5.js} +1 -1
- package/dist/interface/assets/{copy-16-filled-I80UlDbg.js → copy-16-filled-DfOe7jyi.js} +1 -1
- package/dist/interface/assets/{copy-B4-Xsyae.js → copy-D1B4K3K8.js} +1 -1
- package/dist/interface/assets/{delete-BdZ-cqP2.js → delete-BEupTYe7.js} +1 -1
- package/dist/interface/assets/{deviceId-I24oaPe6.js → deviceId-B7SNJduj.js} +1 -1
- package/dist/interface/assets/{dist-D7Ztbw2o.js → dist-PhgrarGW.js} +1 -1
- package/dist/interface/assets/{download-C1GMtykU.js → download-BKGJ_BFg.js} +1 -1
- package/dist/interface/assets/{download-CNVBKEUL.js → download-DLRWZxWu.js} +1 -1
- package/dist/interface/assets/esm-2cKQcsYl.js +1 -0
- package/dist/interface/assets/esm-BC-ykYHP.js +1 -0
- package/dist/interface/assets/esm-BQAccPYQ2.js +1 -0
- package/dist/interface/assets/esm-B_RAh7V8.js +1 -0
- package/dist/interface/assets/esm-BsEkUnid.js +1 -0
- package/dist/interface/assets/esm-C1u--4jU.js +1 -0
- package/dist/interface/assets/esm-Cmrq9Tli.js +1 -0
- package/dist/interface/assets/esm-CrZMuT0_.js +1 -0
- package/dist/interface/assets/esm-CxS-x_QY.js +1 -0
- package/dist/interface/assets/esm-D-xtFbBs.js +1 -0
- package/dist/interface/assets/esm-D6PR9MbI.js +1 -0
- package/dist/interface/assets/esm-DTxHX_m3.js +1 -0
- package/dist/interface/assets/esm-Dzks7cY7.js +1 -0
- package/dist/interface/assets/esm-nCaFxJ36.js +1 -0
- package/dist/interface/assets/{eventIcons-GmV5zC8O.js → eventIcons-OxuOsPp8.js} +1 -1
- package/dist/interface/assets/{face-recognition-CS2Rf6Zc.js → face-recognition-CPwwcApe.js} +1 -1
- package/dist/interface/assets/{github-BrijWwqw.js → github-CWr5rTTh.js} +1 -1
- package/dist/interface/assets/{grid-fill-vdgMWTlf.js → grid-fill-DepYpY1i.js} +1 -1
- package/dist/interface/assets/{hasPermission-Cz0dkfyp.js → hasPermission-FP_aMe9r.js} +1 -1
- package/dist/interface/assets/{home-By41XQGy.js → home-DTNk2yog.js} +1 -1
- package/dist/interface/assets/{information-outline-Kgo_4wPg.js → information-outline-BaVRQ1WL.js} +1 -1
- package/dist/interface/assets/{instances-D6wHW9_0.js → instances-DWzDpyhw.js} +1 -1
- package/dist/interface/assets/{lightbulb-outline-XVFprQ8f.js → lightbulb-outline-DPjpJn5F.js} +1 -1
- package/dist/interface/assets/main-7zIUc9Mt.css +1 -0
- package/dist/interface/assets/main-eaoHjmUh.js +3 -0
- package/dist/interface/assets/{microphone-GG_JO-aa.js → microphone-DJsihw9n.js} +1 -1
- package/dist/interface/assets/{motion-sensor-BvWcG84o.js → motion-sensor-D9ErhY-p.js} +1 -1
- package/dist/interface/assets/native-BK8vZMAo.js +1 -0
- package/dist/interface/assets/native-Z2MQ5D82.js +1 -0
- package/dist/interface/assets/{nodeDefinitions-BSLOZMDt.js → nodeDefinitions-kqqBPelM.js} +1 -1
- package/dist/interface/assets/{notifications-DLNUbEKC.js → notifications-Dae9EImK.js} +1 -1
- package/dist/interface/assets/{play-solid-BtIose8X.js → play-solid-cginGSgT.js} +1 -1
- package/dist/interface/assets/plugin-DHenq6mQ.js +1 -0
- package/dist/interface/assets/{plugins-D-tGC0mr.js → plugins-bWz9yaCS.js} +1 -1
- package/dist/interface/assets/{plus-CPMfvO5i.js → plus-CJ2GnX_q.js} +1 -1
- package/dist/interface/assets/{plus-BKTSMYeY.js → plus-CJzoaVfR.js} +1 -1
- package/dist/interface/assets/{power-M2I2_fCM.js → power-CH_DVgfm.js} +1 -1
- package/dist/interface/assets/{puzzle-filled-C2Lcmza4.js → puzzle-filled-BsJvAZrD.js} +1 -1
- package/dist/interface/assets/{refresh-rounded-B-PvjcAK.js → refresh-rounded-D9PcUR6I.js} +1 -1
- package/dist/interface/assets/{ring-resize-CdUkE4zr.js → ring-resize-QxO72Hs5.js} +1 -1
- package/dist/interface/assets/{round-alt-arrow-left-bold-MIf6gSgD.js → round-alt-arrow-left-bold-C57m543l.js} +1 -1
- package/dist/interface/assets/{round-restart-alt-CaOjUTav.js → round-restart-alt-C6zOLIvt.js} +1 -1
- package/dist/interface/assets/{router-Cbt2STjH.js → router-jxQ55Ssp.js} +2 -2
- package/dist/interface/assets/{routerState-_BXrxePY.js → routerState-D1WXHNt5.js} +1 -1
- package/dist/interface/assets/{search-CHjonsLq.js → search-BgYt2zqA.js} +1 -1
- package/dist/interface/assets/{server-ACfR-bOw.js → server-Uk7xnHXH.js} +1 -1
- package/dist/interface/assets/{settings-CJjCbQsx.js → settings-DHy64jsU.js} +1 -1
- package/dist/interface/assets/shares-Cz4zuZa_.js +1 -0
- package/dist/interface/assets/{shield-check-oKTXgAfr.js → shield-check-0hUJRszq.js} +1 -1
- package/dist/interface/assets/{source-branch-aFYjLKkc.js → source-branch-Dv9Du0bc.js} +1 -1
- package/dist/interface/assets/{terminal-B8qmxarl.js → terminal-CNEjR0aR.js} +1 -1
- package/dist/interface/assets/{theme-CDU91XW5.js → theme-GXDCnY_7.js} +1 -1
- package/dist/interface/assets/{trash-2-rEVmOxCl.js → trash-2-CAa4rD_d.js} +1 -1
- package/dist/interface/assets/{trash-fill-DfnCMe3h.js → trash-fill-Br00Vept.js} +1 -1
- package/dist/interface/assets/{trash2-BvyW-bOK.js → trash2-tuK9V5bO.js} +1 -1
- package/dist/interface/assets/{types-Ds4g4ynm.js → types-BpBkaZ8S.js} +1 -1
- package/dist/interface/assets/{types-Blh_1COV.js → types-jpiqSoyF.js} +1 -1
- package/dist/interface/assets/{ui-SZnjYe2F.js → ui-DzCa9zWL.js} +1 -1
- package/dist/interface/assets/{upload-DkFN5YK-.js → upload-DAasFa9r.js} +1 -1
- package/dist/interface/assets/{useAppVersion-Bo_n0OVQ.js → useAppVersion-CqnE2uYa.js} +1 -1
- package/dist/interface/assets/useBackupRestore-Dm7jUOC-.js +1 -0
- package/dist/interface/assets/{useBiometricCredentials-XyEQbPBo.js → useBiometricCredentials-DJqfT1lk.js} +1 -1
- package/dist/interface/assets/useCameraOptions-Dv3QCMBK.js +1 -0
- package/dist/interface/assets/{useCuiCameraDrawer-CebQFNWX.js → useCuiCameraDrawer-D1zCpVbQ.js} +1 -1
- package/dist/interface/assets/{useCuiDialog-ClphnG79.js → useCuiDialog-C02Or5oR.js} +2 -2
- package/dist/interface/assets/{useFileDownload-CdDprX3v.js → useFileDownload-CwxydJkw.js} +1 -1
- package/dist/interface/assets/{useLogsSocket-DKU0kKe_.js → useLogsSocket-CunaH_T7.js} +2 -2
- package/dist/interface/assets/{useServerRestart-CgCmTap7.js → useServerRestart-BQO5FbNN.js} +1 -1
- package/dist/interface/assets/{useSharedComposables-BcUR_c17.js → useSharedComposables-BrdI_nDH.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-BTa-XXZJ.js → useStreamStatus-e7l-QLmI.js} +1 -1
- package/dist/interface/assets/{useUpdateChannel-WznJBL9L.js → useUpdateChannel-CW45dNAk.js} +1 -1
- package/dist/interface/assets/useUserOptions-EhjyVt4P.js +1 -0
- package/dist/interface/assets/users.schema-4d5Hcv-l.js +1 -0
- package/dist/interface/assets/vendor-ClrOISZp.js +22 -0
- package/dist/interface/assets/{vendor-ace-DdrK3_G3.js → vendor-ace-BlP3GAWI.js} +4 -4
- package/dist/interface/assets/vendor-cameraui-E9E7fP4y.js +1978 -0
- package/dist/interface/assets/{vendor-capacitor-Cmm68VPg.js → vendor-capacitor-DWVJM4o8.js} +2 -2
- package/dist/interface/assets/vendor-chart-Cn72DQnu.js +3 -0
- package/dist/interface/assets/{vendor-core-_UeC1YMQ.js → vendor-core-D2PMTaN3.js} +1 -1
- package/dist/interface/assets/{vendor-dnd-BAVhbK8Q.js → vendor-dnd-B9-e5xxH.js} +1 -1
- package/dist/interface/assets/{vendor-draggabilly-C56V4WL_.js → vendor-draggabilly-CPB8E5_r.js} +1 -1
- package/dist/interface/assets/{vendor-leaflet-_2Z0GiOD.js → vendor-leaflet-BMMJO5Nd.js} +1 -1
- package/dist/interface/assets/{vendor-markdown-D8dkSMBf.js → vendor-markdown-D7EhExwE.js} +2 -2
- package/dist/interface/assets/{vendor-primevue-BXMgwPEu.js → vendor-primevue-Ba4XR6PC.js} +301 -301
- package/dist/interface/assets/vendor-vueflow-Ci6VMxDa.js +26 -0
- package/dist/interface/assets/vendor-xterm-IIYDrBG1.js +142 -0
- package/dist/interface/assets/view-grid-Bs5Mc3pI.js +1 -0
- package/dist/interface/assets/view-grid-CWZLWCco.css +1 -0
- package/dist/interface/assets/web-1H50tiqZ.js +1 -0
- package/dist/interface/assets/web-BBRAFu75.js +1 -0
- package/dist/interface/assets/web-BQqZ-0se.js +1 -0
- package/dist/interface/assets/web-BgDADYuL.js +1 -0
- package/dist/interface/assets/web-BjKL51lK-DF7_OzmH.js +1 -0
- package/dist/interface/assets/web-C3oASmFS.js +1 -0
- package/dist/interface/assets/web-CQIOnZbD.js +1 -0
- package/dist/interface/assets/web-CW6kIZQg.js +1 -0
- package/dist/interface/assets/web-CXLWILCn.js +1 -0
- package/dist/interface/assets/web-Cz9RS9vK.js +1 -0
- package/dist/interface/assets/web-D7_BjGke.js +1 -0
- package/dist/interface/assets/web-Dn-uR4FN.js +1 -0
- package/dist/interface/assets/web-GsFXaCFL.js +1 -0
- package/dist/interface/assets/web-kh2rHftO.js +1 -0
- package/dist/interface/assets/{webhook-nx5ZDIQ-.js → webhook-BCBlzc3z.js} +1 -1
- package/dist/interface/assets/workbox-window.prod.es5-CQTy-jf8.js +1 -0
- package/dist/interface/assets/{zoom-in-wM6G8w-4.js → zoom-in-CKM5nWQX.js} +1 -1
- package/dist/interface/index.html +85 -83
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +16 -9
- package/dist/server/requirements.txt +2 -2
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/manager/__init__.py +3 -0
- package/dist/server/src/api/controllers/remote.controller.d.ts +1 -0
- package/dist/server/src/api/controllers/remote.controller.js +9 -2
- package/dist/server/src/api/controllers/remote.controller.js.map +1 -1
- package/dist/server/src/api/database/index.d.ts +2 -1
- package/dist/server/src/api/database/index.js +22 -3
- package/dist/server/src/api/database/index.js.map +1 -1
- package/dist/server/src/api/middlewares/authValidation.middleware.js +1 -1
- package/dist/server/src/api/middlewares/authValidation.middleware.js.map +1 -1
- package/dist/server/src/api/services/backup.service.d.ts +4 -0
- package/dist/server/src/api/services/backup.service.js +35 -4
- package/dist/server/src/api/services/backup.service.js.map +1 -1
- package/dist/server/src/api/services/remote.service.d.ts +0 -1
- package/dist/server/src/api/services/remote.service.js +6 -13
- package/dist/server/src/api/services/remote.service.js.map +1 -1
- package/dist/server/src/api/types/index.d.ts +1 -0
- package/dist/server/src/camera/decoder/audio-source.d.ts +2 -0
- package/dist/server/src/camera/decoder/audio-source.js +12 -0
- package/dist/server/src/camera/decoder/audio-source.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-coordinator.js +16 -2
- package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
- package/dist/server/src/camera/decoder/frame-source.d.ts +2 -0
- package/dist/server/src/camera/decoder/frame-source.js +23 -2
- package/dist/server/src/camera/decoder/frame-source.js.map +1 -1
- package/dist/server/src/camera/streaming/fmp4-session.js +9 -0
- package/dist/server/src/camera/streaming/fmp4-session.js.map +1 -1
- package/dist/server/src/camera/streaming/rtp-session.js +0 -13
- package/dist/server/src/camera/streaming/rtp-session.js.map +1 -1
- package/dist/server/src/go2rtc/index.js +0 -1
- package/dist/server/src/go2rtc/index.js.map +1 -1
- package/dist/server/src/manager/discoveryManager.js +2 -0
- package/dist/server/src/manager/discoveryManager.js.map +1 -1
- package/dist/server/src/plugins/plugin.js +2 -2
- package/dist/server/src/plugins/plugin.js.map +1 -1
- package/dist/server/src/plugins/runtime/node/child.js +2 -2
- package/dist/server/src/plugins/runtime/node/child.js.map +1 -1
- package/dist/server/src/plugins/runtime/node/index.js +2 -0
- package/dist/server/src/plugins/runtime/node/index.js.map +1 -1
- package/dist/server/src/plugins/runtime/python/child.py +6 -3
- package/dist/server/src/remote/tunnel/client.js +0 -1
- package/dist/server/src/remote/tunnel/client.js.map +1 -1
- package/dist/server/src/rpc/interfaces/discovery.d.ts +1 -0
- package/dist/server/src/services/config/index.d.ts +1 -0
- package/dist/server/src/services/config/index.js +2 -0
- package/dist/server/src/services/config/index.js.map +1 -1
- package/package.json +16 -9
- package/dist/interface/assets/Adminpanel-ByDZ8Xpn.js +0 -1
- package/dist/interface/assets/Automation-BqJ8PyPa.js +0 -2
- package/dist/interface/assets/AutomationImport-BvuLSZcZ.js +0 -2
- package/dist/interface/assets/Camera-BG8K5bH_.css +0 -1
- package/dist/interface/assets/Camera-Bu1U8Oal.js +0 -2
- package/dist/interface/assets/Cameras-54LaZPN3.css +0 -1
- package/dist/interface/assets/Cameras-Dwr5fbzg.js +0 -652
- package/dist/interface/assets/Camview-F0vVBWeZ.js +0 -1
- package/dist/interface/assets/Config-CIAVylkc.js +0 -2
- package/dist/interface/assets/ConfigActionCameraControl-C1dsQnYF.js +0 -1
- package/dist/interface/assets/ConfigActionHttp-IFqZaHDZ.js +0 -1
- package/dist/interface/assets/ConfigActionOutput-Butmz0jI.js +0 -1
- package/dist/interface/assets/ConfigConditionSensorState-B6MdgPfo.js +0 -1
- package/dist/interface/assets/ConfigConditionTime-ChXeDbZB.js +0 -1
- package/dist/interface/assets/Console-2sHljg8h.js +0 -1
- package/dist/interface/assets/CuiBottomSheet-WuxFsOrw.js +0 -1
- package/dist/interface/assets/CuiCameraCard-Bip9OIZO.js +0 -1
- package/dist/interface/assets/CuiCameraRecordings-Bf5IG7OM.js +0 -1
- package/dist/interface/assets/CuiCameraSnapshot-BS-_U34M.js +0 -1
- package/dist/interface/assets/CuiCameraTable-DY_unr4m.js +0 -2
- package/dist/interface/assets/CuiMarkdownContent-5LJK4h8V.js +0 -1
- package/dist/interface/assets/CuiPluginCard-B5PhaGoF.js +0 -2
- package/dist/interface/assets/CuiRecordingsGrid-mFXSsuG8.js +0 -1
- package/dist/interface/assets/CuiSchema-BSv1nUun.js +0 -1
- package/dist/interface/assets/Faces-DLpVsIkY.js +0 -1
- package/dist/interface/assets/FirstSteps-BDDy9x_6.js +0 -1
- package/dist/interface/assets/Logs-CIUyuGwj.js +0 -6
- package/dist/interface/assets/Plugin-BKItJas0.js +0 -1
- package/dist/interface/assets/Plugin-DHhrlRqP.css +0 -1
- package/dist/interface/assets/PluginDetail-BBh5y9qU.js +0 -2
- package/dist/interface/assets/PluginSearch-BN3U3NY6.js +0 -2
- package/dist/interface/assets/PluginSearch-nHAFKMX0.js +0 -1
- package/dist/interface/assets/Recordings-B3Xw23vh.js +0 -1
- package/dist/interface/assets/SettingsAccount-DUN1oTTn.js +0 -1
- package/dist/interface/assets/SettingsAccount-b4eVxI3M.js +0 -1
- package/dist/interface/assets/SettingsAppearance-CLVMmnR_.js +0 -1
- package/dist/interface/assets/SettingsBackup-DUYVdKjD.js +0 -1
- package/dist/interface/assets/SettingsNotifications-xYOuLZsr.js +0 -2
- package/dist/interface/assets/SettingsRecordings-BQDf4Zeg.js +0 -1
- package/dist/interface/assets/SettingsRemote-BXr1HLHm.js +0 -1
- package/dist/interface/assets/SettingsSystem-DAjNwp4I.js +0 -2
- package/dist/interface/assets/SettingsUsers-DJ-eMMWe.js +0 -1
- package/dist/interface/assets/Terminal-P3yVGG8s.js +0 -4
- package/dist/interface/assets/VersionsHandler-DcZ3RtHV.js +0 -7
- package/dist/interface/assets/ace-DQ1lNH50.js +0 -1
- package/dist/interface/assets/api-CKqAhmSC.css +0 -2
- package/dist/interface/assets/api-Ex2VUVD1.js +0 -2
- package/dist/interface/assets/auth-W-JA6GOD.js +0 -1
- package/dist/interface/assets/automations-d_B5L3sO.js +0 -1
- package/dist/interface/assets/backup-BT-P0duG.js +0 -1
- package/dist/interface/assets/cloudHandoff-Cu1sRatW.js +0 -1
- package/dist/interface/assets/esm-0fUwrSGA2.js +0 -1
- package/dist/interface/assets/esm-50afX45o.js +0 -1
- package/dist/interface/assets/esm-B0VLR4af.js +0 -1
- package/dist/interface/assets/esm-BfZLgtrg.js +0 -1
- package/dist/interface/assets/esm-Bnmu7wlp.js +0 -1
- package/dist/interface/assets/esm-CG1dvQ4U.js +0 -1
- package/dist/interface/assets/esm-CZTaj2CB.js +0 -1
- package/dist/interface/assets/esm-CxRM74Bx.js +0 -1
- package/dist/interface/assets/esm-DBpRougC.js +0 -1
- package/dist/interface/assets/esm-DQ7OYRdT.js +0 -1
- package/dist/interface/assets/esm-DVYEXBOA.js +0 -1
- package/dist/interface/assets/esm-DdCbmz73.js +0 -1
- package/dist/interface/assets/esm-DiryHoSP.js +0 -1
- package/dist/interface/assets/esm-DyoMjqMI.js +0 -1
- package/dist/interface/assets/main-BjuXWRyJ.css +0 -1
- package/dist/interface/assets/main-C-WCGnJh.js +0 -3
- package/dist/interface/assets/native-Dg-M0-9s.js +0 -1
- package/dist/interface/assets/native-DyQXBqB9.js +0 -1
- package/dist/interface/assets/plugin-_eNpRpqe.js +0 -1
- package/dist/interface/assets/shares-Ut3rTZUx.js +0 -1
- package/dist/interface/assets/useCameraOptions-C3-ZVV2A.js +0 -1
- package/dist/interface/assets/useUserOptions-DffxmIf7.js +0 -1
- package/dist/interface/assets/users.schema-BcwArBbH.js +0 -1
- package/dist/interface/assets/vendor-c9Zhw4pk.js +0 -22
- package/dist/interface/assets/vendor-cameraui-zHth8Pa5.js +0 -1978
- package/dist/interface/assets/vendor-chart-CTk1N5fJ.js +0 -3
- package/dist/interface/assets/vendor-vueflow-CJdb-8KZ.js +0 -26
- package/dist/interface/assets/vendor-xterm-BRN-hOYD.js +0 -145
- package/dist/interface/assets/view-grid-CX0RwdlE.js +0 -1
- package/dist/interface/assets/view-grid-D04t817d.css +0 -1
- package/dist/interface/assets/web-B9o4PkxX.js +0 -1
- package/dist/interface/assets/web-BDuGOqy7.js +0 -1
- package/dist/interface/assets/web-BUVPtx3X.js +0 -1
- package/dist/interface/assets/web-B_hO9nzV.js +0 -1
- package/dist/interface/assets/web-BjKL51lK-CV2GxIDK.js +0 -1
- package/dist/interface/assets/web-CCgyqWSl.js +0 -1
- package/dist/interface/assets/web-Cm_fnqV2.js +0 -1
- package/dist/interface/assets/web-CsSSdPVW.js +0 -1
- package/dist/interface/assets/web-D2AMa4qD.js +0 -1
- package/dist/interface/assets/web-D2vwufvW.js +0 -1
- package/dist/interface/assets/web-D86U7zR6.js +0 -1
- package/dist/interface/assets/web-DilWncpX.js +0 -1
- package/dist/interface/assets/web-OjqOEI0k.js +0 -1
- package/dist/interface/assets/web-mrIKbnbx.js +0 -1
- package/dist/interface/assets/workbox-window.prod.es5-CsKLpYYC.js +0 -1
- /package/dist/interface/assets/{error-256-DLKVOU2S.png → logo-512-DLKVOU2S.png} +0 -0
|
@@ -1,652 +0,0 @@
|
|
|
1
|
-
import{F as e,Ki as t,O as n,hn as r,mn as i,vn as a,zr as o}from"./vendor-cameraui-zHth8Pa5.js";import{$ as s,At as c,D as l,J as u,Q as d,S as f,X as p,Y as m,Z as h,a as g,et as _,f as v,tt as y}from"./api-Ex2VUVD1.js";import{$n as ee,$t as b,An as x,Cr as S,En as C,Er as w,F as T,Hn as E,I as D,Ln as O,P as k,Rn as te,Sr as A,Tr as ne,Vn as re,Zn as j,an as ie,ar as M,br as N,dn as P,fn as F,fr as ae,lr as I,mn as L,mr as R,nr as z,on as oe,pn as B,pr as se,rr as V,un as H,ur as U,vn as W,xn as G,yn as K,zn as q}from"./vendor-c9Zhw4pk.js";import{n as ce,r as le}from"./vendor-zod-XsuaxHRY.js";import{C as ue,D as de,E as fe,F as pe,G as me,I as he,P as ge,S as _e,T as ve,U as ye,k as be,w as xe,y as Se}from"./vendor-primevue-BXMgwPEu.js";import{t as Ce}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as we}from"./useSharedComposables-BcUR_c17.js";import{t as Te}from"./close-CunDSika.js";import{t as Ee}from"./cctv-izLKpHLU.js";import{t as De}from"./CuiFloatingButton-Pmur2pAJ.js";import{t as Oe}from"./hasPermission-Cz0dkfyp.js";import{t as ke}from"./cameras-DxjpuzW1.js";import{n as Ae}from"./useCuiCameraDrawer-CebQFNWX.js";import{t as je}from"./useCuiDialog-ClphnG79.js";import{n as Me,r as Ne,t as Pe}from"./CuiSchema-BSv1nUun.js";import{t as Fe}from"./plus-BKTSMYeY.js";import{a as Ie,r as Le}from"./cameras.schema-7ex1wBck.js";import{t as Re}from"./CuiDataTable-C5qi7zpz.js";import{t as ze}from"./ring-resize-CdUkE4zr.js";import{t as Be}from"./plus-CPMfvO5i.js";var Ve={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function He(e,t){return q(),L(`svg`,Ve,[...t[0]||=[P(`path`,{fill:`currentColor`,d:`m19.07 4.93l-1.41 1.41A8 8 0 0 1 20 12a8 8 0 0 1-8 8a8 8 0 0 1-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12a6 6 0 0 0 6 6a6 6 0 0 0 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12a4 4 0 0 1-4 4a4 4 0 0 1-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-.74-.4-1.38-1-1.72V2h-1A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-2.76-1.12-5.26-2.93-7.07`},null,-1)]])}var Ue=U({name:`mdi-radar`,render:He}),We={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ge(e,t){return q(),L(`svg`,We,[...t[0]||=[P(`path`,{fill:`currentColor`,d:`M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5`},null,-1)]])}var Ke=U({name:`mdi-eye`,render:Ge}),qe={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Je(e,t){return q(),L(`svg`,qe,[...t[0]||=[P(`path`,{fill:`currentColor`,d:`M11.83 9L15 12.16V12a3 3 0 0 0-3-3zm-4.3.8l1.55 1.55c-.05.21-.08.42-.08.65a3 3 0 0 0 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53a5 5 0 0 1-5-5c0-.79.2-1.53.53-2.2M2 4.27l2.28 2.28l.45.45C3.08 8.3 1.78 10 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.43.42L19.73 22L21 20.73L3.27 3M12 7a5 5 0 0 1 5 5c0 .64-.13 1.26-.36 1.82l2.93 2.93c1.5-1.25 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-4 .7l2.17 2.15C10.74 7.13 11.35 7 12 7`},null,-1)]])}var Ye=U({name:`mdi-eye-off`,render:Je}),Xe={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ze(e,t){return q(),L(`svg`,Xe,[...t[0]||=[P(`path`,{fill:`currentColor`,d:`M12.5 9q-.275 0-.425-.25t0-.5L15 3.175q.2-.325.5-.387t.65.112q1.725.775 3.05 2.162T21.25 8.2q.125.325-.038.563T20.7 9zm-3.575 1.225l-3-5.2q-.2-.325-.1-.65t.4-.525Q7.425 3 8.888 2.5T12 2q.375 0 .825.038t.75.087q.35.05.463.3t-.063.55L9.8 10.225q-.15.25-.437.25t-.438-.25M2.85 14q-.275 0-.5-.187t-.275-.463t-.062-.6T2 12q0-1.575.513-3.137T4.1 5.9q.275-.35.638-.35t.562.375l4.2 7.325q.15.25-.012.5T9.05 14zm5 7.1q-1.65-.8-3.025-2.175T2.75 15.8q-.125-.325.05-.562T3.325 15h8.15q.275 0 .425.25t0 .5l-2.875 5.025q-.2.325-.5.425t-.675-.1M12 22q-.35 0-.788-.038t-.762-.087q-.35-.05-.475-.3t.05-.55l4.125-7.2q.15-.25.5-.25t.5.25l2.95 5.125q.175.275.113.6t-.413.6q-1.15.85-2.687 1.35T12 22m6.775-3.875l-4.25-7.375q-.15-.25.013-.5t.437-.25h6.175q.275 0 .5.188t.275.462t.062.6T22 12q0 1.575-.513 3.163T19.9 18.125q-.2.275-.575.288t-.55-.288`},null,-1)]])}var Qe=U({name:`material-symbols-camera-rounded`,render:Ze}),$e={viewBox:`0 0 12 12`,width:`1.2em`,height:`1.2em`};function et(e,t){return q(),L(`svg`,$e,[...t[0]||=[P(`path`,{fill:`currentColor`,d:`M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 0 1 1.06 1.06L6.53 8.78a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06`},null,-1)]])}var tt=U({name:`fluent-chevron-down12-filled`,render:et}),nt="#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/seydx/go2rtc#source-bubble)_\n",rt='#### Source: CUI\n\nThis source can be used to stream dynamically generated, go2rtc compatible, URLs. The source is just a placeholder for a `https://` URL.\n\n```yaml\nstreams:\n camera1: cui://192.168.1.123:34567/some-identifier-if-you-want\n```\n\nThe URL will be changed to `https://192.168.1.123:34567/some-identifier-if-you-want` and the response must be like this:\n\n```json\n{\n {\n "streamUrl": "rtsp://192.168.1.1:554/stream",\n }\n}\n```\n\nGo2rtc will then use the `streamUrl` to stream the video. The `streamUrl` can be any URL that is compatible with go2rtc. The response must be a valid JSON object with the `streamUrl` key.\n',it=`#### Source: Doorbird
|
|
2
|
-
|
|
3
|
-
[Doorbird](https://www.doorbird.com/) proprietary camera protocol with **two way audio** support.
|
|
4
|
-
|
|
5
|
-
\`\`\`yaml
|
|
6
|
-
streams:
|
|
7
|
-
video-audio:
|
|
8
|
-
- rtsp://user:pass@123.123.123.123:554/mpeg/media.amp
|
|
9
|
-
- doorbird://user:pass@123.123.123.123?media=audio
|
|
10
|
-
two-way:
|
|
11
|
-
- rtsp://user:pass@123.123.123.123:554/mpeg/media.amp
|
|
12
|
-
- doorbird://user:pass@123.123.123.123?media=audio
|
|
13
|
-
- doorbird://user:pass@123.123.123.123
|
|
14
|
-
mjpeg-video:
|
|
15
|
-
- doorbird://user:pass@123.123.123.123?media=video
|
|
16
|
-
\`\`\`
|
|
17
|
-
|
|
18
|
-
_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-doorbird)_
|
|
19
|
-
`,at="#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/seydx/go2rtc#source-dvrip)_\n",ot=`#### Source: Echo
|
|
20
|
-
|
|
21
|
-
Some sources may have a dynamic link. And you will need to get it using a bash or python script. Your script should echo a link to the source. RTSP, FFmpeg or any of the [supported sources](https://github.com/seydx/go2rtc#module-streams).
|
|
22
|
-
|
|
23
|
-
**Docker** and **Hass Add-on** users has preinstalled \`python3\`, \`curl\`, \`jq\`.
|
|
24
|
-
Check examples in [wiki](https://github.com/seydx/go2rtc/wiki/Source-Echo-examples).
|
|
25
|
-
|
|
26
|
-
\`\`\`yaml
|
|
27
|
-
streams:
|
|
28
|
-
apple_hls: echo:python3 hls.py https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html
|
|
29
|
-
\`\`\`
|
|
30
|
-
|
|
31
|
-
_Source: [Go2Rtc Echo](https://github.com/seydx/go2rtc#source-echo)_
|
|
32
|
-
`,st=`#### Source: Exec
|
|
33
|
-
|
|
34
|
-
Exec source can run any external application and expect data from it. Two transports are supported - **pipe** and **RTSP**.
|
|
35
|
-
|
|
36
|
-
If you want to use **RTSP** transport - the command must contain the \`{output}\` argument in any place. On launch, it will be replaced by the local address of the RTSP server.
|
|
37
|
-
|
|
38
|
-
**pipe** reads data from app stdout in different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**. Also pipe can write data to app stdin in two formats: **PCMA** and **PCM/48000**.
|
|
39
|
-
|
|
40
|
-
The source can be used with:
|
|
41
|
-
|
|
42
|
-
- [FFmpeg](https://ffmpeg.org/) - go2rtc ffmpeg source just a shortcut to exec source
|
|
43
|
-
- [FFplay](https://ffmpeg.org/ffplay.html) - play audio on your server
|
|
44
|
-
- [GStreamer](https://gstreamer.freedesktop.org/)
|
|
45
|
-
- [Raspberry Pi Cameras](https://www.raspberrypi.com/documentation/computers/camera_software.html)
|
|
46
|
-
- any your own software
|
|
47
|
-
|
|
48
|
-
\`\`\`yaml
|
|
49
|
-
streams:
|
|
50
|
-
stream: exec:ffmpeg -re -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {output}
|
|
51
|
-
picam_h264: exec:libcamera-vid -t 0 --inline -o -
|
|
52
|
-
picam_mjpeg: exec:libcamera-vid -t 0 --codec mjpeg -o -
|
|
53
|
-
pi5cam_h264: exec:libcamera-vid -t 0 --libav-format h264 -o -
|
|
54
|
-
canon: exec:gphoto2 --capture-movie --stdout#killsignal=2#killtimeout=5
|
|
55
|
-
play_pcma: exec:ffplay -fflags nobuffer -f alaw -ar 8000 -i -#backchannel=1
|
|
56
|
-
play_pcm48k: exec:ffplay -fflags nobuffer -f s16be -ar 48000 -i -#backchannel=1
|
|
57
|
-
\`\`\`
|
|
58
|
-
|
|
59
|
-
_Source: [Go2Rtc Exec](https://github.com/seydx/go2rtc#source-exec)_
|
|
60
|
-
`,ct=`#### Source: Expr
|
|
61
|
-
|
|
62
|
-
[Expr](https://github.com/antonmedv/expr) - expression language and expression evaluation for Go.
|
|
63
|
-
|
|
64
|
-
- [language definition](https://expr.medv.io/docs/Language-Definition) - takes best from JS, Python, Jinja2 syntax
|
|
65
|
-
- your expression should return a link of any supported source
|
|
66
|
-
- expression supports multiple operation, but:
|
|
67
|
-
- all operations must be separated by a semicolon
|
|
68
|
-
- all operations, except the last one, must declare a new variable (\`let s = "abc";\`)
|
|
69
|
-
- the last operation should return a string
|
|
70
|
-
- go2rtc supports additional functions:
|
|
71
|
-
- \`fetch\` - JS-like HTTP requests
|
|
72
|
-
- \`match\` - JS-like RegExp queries
|
|
73
|
-
|
|
74
|
-
## Examples
|
|
75
|
-
|
|
76
|
-
**Two way audio for Dahua VTO**
|
|
77
|
-
|
|
78
|
-
\`\`\`yaml
|
|
79
|
-
streams:
|
|
80
|
-
dahua_vto: |
|
|
81
|
-
expr: let host = "admin:password@192.168.1.123";
|
|
82
|
-
fetch("http://"+host+"/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Audio.Compression=G.711A&Encode[0].MainFormat[0].Audio.Frequency=8000").ok
|
|
83
|
-
? "rtsp://"+host+"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" : ""
|
|
84
|
-
\`\`\`
|
|
85
|
-
|
|
86
|
-
**dom.ru**
|
|
87
|
-
|
|
88
|
-
You can get credentials via:
|
|
89
|
-
|
|
90
|
-
- https://github.com/alexmorbo/domru (file \`/share/domru/accounts\`)
|
|
91
|
-
- https://github.com/ad/domru
|
|
92
|
-
|
|
93
|
-
\`\`\`yaml
|
|
94
|
-
streams:
|
|
95
|
-
dom_ru: |
|
|
96
|
-
expr: let camera = "99999999"; let token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; let operator = 99;
|
|
97
|
-
fetch("https://myhome.novotelecom.ru/rest/v1/forpost/cameras/"+camera+"/video", {
|
|
98
|
-
headers: {Authorization: "Bearer "+token, Operator: operator}
|
|
99
|
-
}).json().data.URL
|
|
100
|
-
\`\`\`
|
|
101
|
-
|
|
102
|
-
**Parse HLS files from Apple**
|
|
103
|
-
|
|
104
|
-
Same example in two languages - python and expr.
|
|
105
|
-
|
|
106
|
-
\`\`\`yaml
|
|
107
|
-
streams:
|
|
108
|
-
example_python: |
|
|
109
|
-
echo:python -c 'from urllib.request import urlopen; import re
|
|
110
|
-
|
|
111
|
-
# url1 = "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8"
|
|
112
|
-
html1 = urlopen("https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html").read().decode("utf-8")
|
|
113
|
-
url1 = re.search(r"https.+?m3u8", html1)[0]
|
|
114
|
-
|
|
115
|
-
# url2 = "gear1/prog_index.m3u8"
|
|
116
|
-
html2 = urlopen(url1).read().decode("utf-8")
|
|
117
|
-
url2 = re.search(r"^[a-z0-1/_]+\\.m3u8$", html2, flags=re.MULTILINE)[0]
|
|
118
|
-
|
|
119
|
-
# url3 = "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear1/prog_index.m3u8"
|
|
120
|
-
url3 = url1[:url1.rindex("/")+1] + url2
|
|
121
|
-
|
|
122
|
-
print("ffmpeg:" + url3 + "#video=copy")'
|
|
123
|
-
|
|
124
|
-
example_expr: |
|
|
125
|
-
expr:
|
|
126
|
-
|
|
127
|
-
let html1 = fetch("https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html").text;
|
|
128
|
-
let url1 = match(html1, "https.+?m3u8")[0];
|
|
129
|
-
|
|
130
|
-
let html2 = fetch(url1).text;
|
|
131
|
-
let url2 = match(html2, "^[a-z0-1/_]+\\\\.m3u8$", "m")[0];
|
|
132
|
-
|
|
133
|
-
let url3 = url1[:lastIndexOf(url1, "/")+1] + url2;
|
|
134
|
-
|
|
135
|
-
"ffmpeg:" + url3 + "#video=copy"
|
|
136
|
-
\`\`\`
|
|
137
|
-
|
|
138
|
-
## Comparsion
|
|
139
|
-
|
|
140
|
-
| expr | python | js |
|
|
141
|
-
| ---------------------------- | -------------------------- | ------------------------------ |
|
|
142
|
-
| let x = 1; | x = 1 | let x = 1 |
|
|
143
|
-
| {a: 1, b: 2} | {"a": 1, "b": 2} | {a: 1, b: 2} |
|
|
144
|
-
| let r = fetch(url, {method}) | r = request(method, url) | r = await fetch(url, {method}) |
|
|
145
|
-
| r.ok | r.ok | r.ok |
|
|
146
|
-
| r.status | r.status_code | r.status |
|
|
147
|
-
| r.text | r.text | await r.text() |
|
|
148
|
-
| r.json() | r.json() | await r.json() |
|
|
149
|
-
| r.headers | r.headers | r.headers |
|
|
150
|
-
| let m = match(text, "abc") | m = re.search("abc", text) | let m = text.match(/abc/) |
|
|
151
|
-
|
|
152
|
-
_Source: [Go2Rtc Expr](https://github.com/seydx/go2rtc#source-expr)_
|
|
153
|
-
`,lt="#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/seydx/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/seydx/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/seydx/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/seydx/go2rtc#source-ffmpeg-device)_\n",ut=`#### Source: GoPro
|
|
154
|
-
|
|
155
|
-
Supported models: HERO9, HERO10, HERO11, HERO12.
|
|
156
|
-
Supported OS: Linux, Mac, Windows, [HassOS](https://www.home-assistant.io/installation/)
|
|
157
|
-
|
|
158
|
-
The other camera models have different APIs. I will try to add them in the next versions.
|
|
159
|
-
|
|
160
|
-
## Config
|
|
161
|
-
|
|
162
|
-
- USB-connected cameras create a new network interface in the system
|
|
163
|
-
- Linux users do not need to install anything
|
|
164
|
-
- Windows users should install the [network driver](https://community.gopro.com/s/article/GoPro-Webcam)
|
|
165
|
-
- if the camera is detected but the stream does not start - you need to disable firewall
|
|
166
|
-
|
|
167
|
-
1. Discover camera address: WebUI > Add > GoPro
|
|
168
|
-
2. Add camera to config
|
|
169
|
-
|
|
170
|
-
\`\`\`yaml
|
|
171
|
-
streams:
|
|
172
|
-
hero12: gopro://172.20.100.51
|
|
173
|
-
\`\`\`
|
|
174
|
-
|
|
175
|
-
## Useful links
|
|
176
|
-
|
|
177
|
-
- https://gopro.github.io/OpenGoPro/
|
|
178
|
-
|
|
179
|
-
_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_
|
|
180
|
-
`,dt=`#### Source: Hass
|
|
181
|
-
|
|
182
|
-
Support import camera links from [Home Assistant](https://www.home-assistant.io/) config files:
|
|
183
|
-
|
|
184
|
-
- [Generic Camera](https://www.home-assistant.io/integrations/generic/), setup via GUI
|
|
185
|
-
- [HomeKit Camera](https://www.home-assistant.io/integrations/homekit_controller/)
|
|
186
|
-
- [ONVIF](https://www.home-assistant.io/integrations/onvif/)
|
|
187
|
-
- [Roborock](https://github.com/humbertogontijo/homeassistant-roborock) vacuums with camera
|
|
188
|
-
|
|
189
|
-
\`\`\`yaml
|
|
190
|
-
hass:
|
|
191
|
-
config: '/config' # skip this setting if you Hass Add-on user
|
|
192
|
-
|
|
193
|
-
streams:
|
|
194
|
-
generic_camera: hass:Camera1 # Settings > Integrations > Integration Name
|
|
195
|
-
aqara_g3: hass:Camera-Hub-G3-AB12
|
|
196
|
-
\`\`\`
|
|
197
|
-
|
|
198
|
-
**WebRTC Cameras**
|
|
199
|
-
|
|
200
|
-
Any cameras in WebRTC format are supported. But at the moment Home Assistant only supports some [Nest](https://www.home-assistant.io/integrations/nest/) cameras in this fomat.
|
|
201
|
-
|
|
202
|
-
The Nest API only allows you to get a link to a stream for 5 minutes. So every 5 minutes the stream will be reconnected.
|
|
203
|
-
|
|
204
|
-
\`\`\`yaml
|
|
205
|
-
streams:
|
|
206
|
-
# link to Home Assistant Supervised
|
|
207
|
-
hass-webrtc1: hass://supervisor?entity_id=camera.nest_doorbell
|
|
208
|
-
# link to external Hass with Long-Lived Access Tokens
|
|
209
|
-
hass-webrtc2: hass://192.168.1.123:8123?entity_id=camera.nest_doorbell&token=eyXYZ...
|
|
210
|
-
\`\`\`
|
|
211
|
-
|
|
212
|
-
_Source: [Go2Rtc Hass](https://github.com/seydx/go2rtc#source-hass)_
|
|
213
|
-
`,ft=`#### Source: HomeKit
|
|
214
|
-
|
|
215
|
-
**Important:**
|
|
216
|
-
|
|
217
|
-
- You can use HomeKit Cameras **without Apple devices** (iPhone, iPad, etc.), it's just a yet another protocol
|
|
218
|
-
- HomeKit device can be paired with only one ecosystem. So, if you have paired it to an iPhone (Apple Home) - you can't pair it with Home Assistant or go2rtc. Or if you have paired it to go2rtc - you can't pair it with iPhone
|
|
219
|
-
- HomeKit device should be in same network with working [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) between device and go2rtc
|
|
220
|
-
|
|
221
|
-
go2rtc support import paired HomeKit devices from [Home Assistant](#source-hass). So you can use HomeKit camera with Hass and go2rtc simultaneously. If you using Hass, I recommend pairing devices with it, it will give you more options.
|
|
222
|
-
|
|
223
|
-
You can pair device with go2rtc on the HomeKit page. If you can't see your devices - reload the page. Also try reboot your HomeKit device (power off). If you still can't see it - you have a problems with mDNS.
|
|
224
|
-
|
|
225
|
-
If you see a device but it does not have a pair button - it is paired to some ecosystem (Apple Home, Home Assistant etc). You need to delete device from that ecosystem, and it will be available for pairing. If you cannot unpair device, you will have to reset it.
|
|
226
|
-
|
|
227
|
-
**Important:**
|
|
228
|
-
|
|
229
|
-
- HomeKit audio uses very non-standard **AAC-ELD** codec with very non-standard params and specification violation
|
|
230
|
-
- Audio can't be played in \`VLC\` and probably any other player
|
|
231
|
-
- Audio should be transcoded for using with MSE, WebRTC, etc.
|
|
232
|
-
|
|
233
|
-
Recommended settings for using HomeKit Camera with WebRTC, MSE, MP4, RTSP:
|
|
234
|
-
|
|
235
|
-
\`\`\`
|
|
236
|
-
streams:
|
|
237
|
-
aqara_g3:
|
|
238
|
-
- hass:Camera-Hub-G3-AB12
|
|
239
|
-
- ffmpeg:aqara_g3#audio=aac#audio=opus
|
|
240
|
-
\`\`\`
|
|
241
|
-
|
|
242
|
-
RTSP link with "normal" audio for any player: \`rtsp://192.168.1.123:8554/aqara_g3?video&audio=aac\`
|
|
243
|
-
|
|
244
|
-
**This source is in active development!** Tested only with [Aqara Camera Hub G3](https://www.aqara.com/eu/product/camera-hub-g3) (both EU and CN versions).
|
|
245
|
-
|
|
246
|
-
_Source: [Go2Rtc HomeKit](https://github.com/seydx/go2rtc#source-homekit)_
|
|
247
|
-
`,pt=`#### Source: HTTP
|
|
248
|
-
|
|
249
|
-
Support Content-Type:
|
|
250
|
-
|
|
251
|
-
- **HTTP-FLV** (\`video/x-flv\`) - same as RTMP, but over HTTP
|
|
252
|
-
- **HTTP-JPEG** (\`image/jpeg\`) - camera snapshot link, can be converted by go2rtc to MJPEG stream
|
|
253
|
-
- **HTTP-MJPEG** (\`multipart/x\`) - simple MJPEG stream over HTTP
|
|
254
|
-
- **MPEG-TS** (\`video/mpeg\`) - legacy [streaming format](https://en.wikipedia.org/wiki/MPEG_transport_stream)
|
|
255
|
-
|
|
256
|
-
Source also support HTTP and TCP streams with autodetection for different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**.
|
|
257
|
-
|
|
258
|
-
\`\`\`yaml
|
|
259
|
-
streams:
|
|
260
|
-
# [HTTP-FLV] stream in video/x-flv format
|
|
261
|
-
http_flv: http://192.168.1.123:20880/api/camera/stream/780900131155/657617
|
|
262
|
-
|
|
263
|
-
# [JPEG] snapshots from Dahua camera, will be converted to MJPEG stream
|
|
264
|
-
dahua_snap: http://admin:password@192.168.1.123/cgi-bin/snapshot.cgi?channel=1
|
|
265
|
-
|
|
266
|
-
# [MJPEG] stream will be proxied without modification
|
|
267
|
-
http_mjpeg: https://mjpeg.sanford.io/count.mjpeg
|
|
268
|
-
|
|
269
|
-
# [MJPEG or H.264/H.265 bitstream or MPEG-TS]
|
|
270
|
-
tcp_magic: tcp://192.168.1.123:12345
|
|
271
|
-
|
|
272
|
-
# Add custom header
|
|
273
|
-
custom_header: 'https://mjpeg.sanford.io/count.mjpeg#header=Authorization: Bearer XXX'
|
|
274
|
-
\`\`\`
|
|
275
|
-
|
|
276
|
-
**PS.** Dahua camera has bug: if you select MJPEG codec for RTSP second stream - snapshot won't work.
|
|
277
|
-
|
|
278
|
-
_Source: [Go2Rtc Http](https://github.com/seydx/go2rtc#source-http)_
|
|
279
|
-
`,mt=`#### Source: ISAPI
|
|
280
|
-
|
|
281
|
-
This source type support only backchannel audio for Hikvision ISAPI protocol. So it should be used as second source in addition to the RTSP protocol.
|
|
282
|
-
|
|
283
|
-
\`\`\`yaml
|
|
284
|
-
streams:
|
|
285
|
-
hikvision1:
|
|
286
|
-
- rtsp://admin:password@192.168.1.123:554/Streaming/Channels/101
|
|
287
|
-
- isapi://admin:password@192.168.1.123:80/
|
|
288
|
-
\`\`\`
|
|
289
|
-
|
|
290
|
-
_Source: [Go2Rtc Isapi](https://github.com/seydx/go2rtc#source-isapi)_
|
|
291
|
-
`,ht=`#### Source: Ivideon
|
|
292
|
-
|
|
293
|
-
Support public cameras from service [Ivideon](https://tv.ivideon.com/).
|
|
294
|
-
|
|
295
|
-
\`\`\`yaml
|
|
296
|
-
streams:
|
|
297
|
-
quailcam: ivideon:100-tu5dkUPct39cTp9oNEN2B6/0
|
|
298
|
-
\`\`\`
|
|
299
|
-
|
|
300
|
-
_Source: [Go2Rtc Ivideon](https://github.com/seydx/go2rtc#source-ivideon)_
|
|
301
|
-
`,gt="#### Source: Kasa\n\n[TP-Link Kasa](https://www.kasasmart.com/) non-standard protocol [more info](https://medium.com/@hu3vjeen/reverse-engineering-tp-link-kc100-bac4641bf1cd).\n\n- `username` - urlsafe email, `alex@gmail.com` -> `alex%40gmail.com`\n- `password` - base64password, `secret1` -> `c2VjcmV0MQ==`\n\n```yaml\nstreams:\n kc401: kasa://username:password@192.168.1.123:19443/https/stream/mixed\n```\n\nTested: KD110, KC200, KC401, KC420WS, EC71.\n\n_Source: [Go2Rtc Kasa](https://github.com/seydx/go2rtc#source-kasa)_\n",_t=`#### Source: Nest
|
|
302
|
-
|
|
303
|
-
Currently only WebRTC cameras are supported.
|
|
304
|
-
|
|
305
|
-
For simplicity, it is recommended to connect the Nest/WebRTC camera to the [Home Assistant](#source-hass). But if you can somehow get the below parameters - Nest/WebRTC source will work without Hass.
|
|
306
|
-
|
|
307
|
-
\`\`\`yaml
|
|
308
|
-
streams:
|
|
309
|
-
nest-doorbell: nest:?client_id=***&client_secret=***&refresh_token=***&project_id=***&device_id=***
|
|
310
|
-
\`\`\`
|
|
311
|
-
|
|
312
|
-
_Source: [Go2Rtc Nest](https://github.com/seydx/go2rtc#source-nest)_
|
|
313
|
-
`,vt=`#### Source: ONVIF
|
|
314
|
-
|
|
315
|
-
The source is not very useful if you already know RTSP and snapshot links for your camera. But it can be useful if you don't.
|
|
316
|
-
|
|
317
|
-
**WebUI > Add** webpage support ONVIF autodiscovery. Your server must be on the same subnet as the camera. If you use docker, you must use "network host".
|
|
318
|
-
|
|
319
|
-
\`\`\`yaml
|
|
320
|
-
streams:
|
|
321
|
-
dahua1: onvif://admin:password@192.168.1.123
|
|
322
|
-
reolink1: onvif://admin:password@192.168.1.123:8000
|
|
323
|
-
tapo1: onvif://admin:password@192.168.1.123:2020
|
|
324
|
-
\`\`\`
|
|
325
|
-
|
|
326
|
-
_Source: [Go2Rtc Onvif](https://github.com/seydx/go2rtc#source-onvif)_
|
|
327
|
-
`,yt="#### Source: Ring\n\nThis source type support Ring cameras with [two way audio](#two-way-audio) support. If you have a `refresh_token` and `device_id` - you can use it in `go2rtc.yaml` config file. Otherwise, you can use the go2rtc interface and add your ring account (WebUI > Add > Ring). Once added, it will list all your Ring cameras.\n\n```yaml\nstreams:\n ring: ring:?device_id=XXX&refresh_token=XXX\n ring_snapshot: ring:?device_id=XXX&refresh_token=XXX&snapshot\n```\n\n_Source: [Go2Rtc Ring](https://github.com/seydx/go2rtc#source-ring)_\n",bt=`#### Source: Roborock
|
|
328
|
-
|
|
329
|
-
This source type support Roborock vacuums with cameras. Known working models:
|
|
330
|
-
|
|
331
|
-
- Roborock S6 MaxV - only video (the vacuum has no microphone)
|
|
332
|
-
- Roborock S7 MaxV - video and two way audio
|
|
333
|
-
- Roborock Qrevo MaxV - video and two way audio
|
|
334
|
-
|
|
335
|
-
Source support load Roborock credentials from Home Assistant [custom integration](https://github.com/humbertogontijo/homeassistant-roborock) or the [core integration](https://www.home-assistant.io/integrations/roborock). Otherwise, you need to log in to your Roborock account (MiHome account is not supported). Go to: go2rtc WebUI > Add webpage. Copy \`roborock://...\` source for your vacuum and paste it to \`go2rtc.yaml\` config.
|
|
336
|
-
|
|
337
|
-
If you have graphic pin for your vacuum - add it as numeric pin (lines: 123, 456, 789) to the end of the roborock-link.
|
|
338
|
-
|
|
339
|
-
_Source: [Go2Rtc Roborock](https://github.com/seydx/go2rtc#source-roborock)_
|
|
340
|
-
`,xt=`#### Source: RTMP
|
|
341
|
-
|
|
342
|
-
You can get stream from RTMP server, for example [Nginx with nginx-rtmp-module](https://github.com/arut/nginx-rtmp-module).
|
|
343
|
-
|
|
344
|
-
\`\`\`yaml
|
|
345
|
-
streams:
|
|
346
|
-
rtmp_stream: rtmp://192.168.1.123/live/camera1
|
|
347
|
-
\`\`\`
|
|
348
|
-
|
|
349
|
-
_Source: [Go2Rtc RTMP](https://github.com/seydx/go2rtc#source-rtmp)_
|
|
350
|
-
`,St=`#### Source: RTSP
|
|
351
|
-
|
|
352
|
-
\`\`\`yaml
|
|
353
|
-
streams:
|
|
354
|
-
sonoff_camera: rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0
|
|
355
|
-
dahua_camera:
|
|
356
|
-
- rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
|
|
357
|
-
- rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=1
|
|
358
|
-
amcrest_doorbell:
|
|
359
|
-
- rtsp://username:password@192.168.1.123:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
|
|
360
|
-
unifi_camera: rtspx://192.168.1.123:7441/fD6ouM72bWoFijxK
|
|
361
|
-
glichy_camera: ffmpeg:rtsp://username:password@192.168.1.123/live/ch00_1
|
|
362
|
-
\`\`\`
|
|
363
|
-
|
|
364
|
-
**Recommendations**
|
|
365
|
-
|
|
366
|
-
- **Amcrest Doorbell** users may want to disable two way audio, because with an active stream you won't have a call button working. You need to add \`#backchannel=0\` to the end of your RTSP link in YAML config file
|
|
367
|
-
- **Dahua Doorbell** users may want to change backchannel [audio codec](https://github.com/AlexxIT/go2rtc/issues/52)
|
|
368
|
-
- **Reolink** users may want NOT to use RTSP protocol at all, some camera models have a very awful unusable stream implementation
|
|
369
|
-
- **Ubiquiti UniFi** users may want to disable HTTPS verification. Use \`rtspx://\` prefix instead of \`rtsps://\`. And don't use \`?enableSrtp\` [suffix](https://github.com/AlexxIT/go2rtc/issues/81)
|
|
370
|
-
- **TP-Link Tapo** users may skip login and password, because go2rtc support login [without them](https://drmnsamoliu.github.io/video.html)
|
|
371
|
-
- If your camera has two RTSP links - you can add both of them as sources. This is useful when streams has different codecs, as example AAC audio with main stream and PCMU/PCMA audio with second stream
|
|
372
|
-
- If the stream from your camera is glitchy, try using [ffmpeg source](#source-ffmpeg). It will not add CPU load if you won't use transcoding
|
|
373
|
-
- If the stream from your camera is very glitchy, try to use transcoding with [ffmpeg source](#source-ffmpeg)
|
|
374
|
-
|
|
375
|
-
**Other options**
|
|
376
|
-
|
|
377
|
-
Format: \`rtsp...#{param1}#{param2}#{param3}\`
|
|
378
|
-
|
|
379
|
-
- Add custom timeout \`#timeout=30\` (in seconds)
|
|
380
|
-
- Ignore audio - \`#media=video\` or ignore video - \`#media=audio\`
|
|
381
|
-
- Ignore two way audio API \`#backchannel=0\` - important for some glitchy cameras
|
|
382
|
-
- Use WebSocket transport \`#transport=ws...\`
|
|
383
|
-
|
|
384
|
-
**RTSP over WebSocket**
|
|
385
|
-
|
|
386
|
-
\`\`\`yaml
|
|
387
|
-
streams:
|
|
388
|
-
# WebSocket with authorization, RTSP - without
|
|
389
|
-
axis-rtsp-ws: rtsp://192.168.1.123:4567/axis-media/media.amp?overview=0&camera=1&resolution=1280x720&videoframeskipmode=empty&Axis-Orig-Sw=true#transport=ws://user:pass@192.168.1.123:4567/rtsp-over-websocket
|
|
390
|
-
# WebSocket without authorization, RTSP - with
|
|
391
|
-
dahua-rtsp-ws: rtsp://user:pass@192.168.1.123/cam/realmonitor?channel=1&subtype=1&proto=Private3#transport=ws://192.168.1.123/rtspoverwebsocket
|
|
392
|
-
\`\`\`
|
|
393
|
-
|
|
394
|
-
_Source: [Go2Rtc RTSP](https://github.com/seydx/go2rtc#source-rtsp)_
|
|
395
|
-
`,Ct=`#### Source: Tapo
|
|
396
|
-
|
|
397
|
-
[TP-Link Tapo](https://www.tapo.com/) proprietary camera protocol with **two way audio** support.
|
|
398
|
-
|
|
399
|
-
- stream quality is the same as [RTSP protocol](https://www.tapo.com/en/faq/34/)
|
|
400
|
-
- use the **cloud password**, this is not the RTSP password! you do not need to add a login!
|
|
401
|
-
- you can also use UPPERCASE MD5 hash from your cloud password with \`admin\` username
|
|
402
|
-
- some new camera firmwares requires SHA256 instead of MD5
|
|
403
|
-
|
|
404
|
-
\`\`\`yaml
|
|
405
|
-
streams:
|
|
406
|
-
# cloud password without username
|
|
407
|
-
camera1: tapo://cloud-password@192.168.1.123
|
|
408
|
-
# admin username and UPPERCASE MD5 cloud-password hash
|
|
409
|
-
camera2: tapo://admin:UPPERCASE-MD5@192.168.1.123
|
|
410
|
-
# admin username and UPPERCASE SHA256 cloud-password hash
|
|
411
|
-
camera3: tapo://admin:UPPERCASE-SHA256@192.168.1.123
|
|
412
|
-
\`\`\`
|
|
413
|
-
|
|
414
|
-
\`\`\`bash
|
|
415
|
-
echo -n "cloud password" | md5 | awk '{print toupper($0)}'
|
|
416
|
-
echo -n "cloud password" | shasum -a 256 | awk '{print toupper($0)}'
|
|
417
|
-
\`\`\`
|
|
418
|
-
|
|
419
|
-
_Source: [Go2Rtc Tapo](https://github.com/seydx/go2rtc#source-tapo)_
|
|
420
|
-
`,wt=`#### Source: Tuya
|
|
421
|
-
|
|
422
|
-
[Tuya](https://www.tuya.com/) proprietary camera protocol with **two way audio** support. Go2rtc supports \`Tuya Smart API\` and \`Tuya Cloud API\`.
|
|
423
|
-
|
|
424
|
-
**Tuya Smart API (recommended)**:
|
|
425
|
-
|
|
426
|
-
- Cameras can be discovered through the go2rtc web interface via Tuya Smart account (Add > Tuya > Select region and fill in email and password > Login).
|
|
427
|
-
- **Smart Life accounts are not supported**, you need to create a Tuya Smart account. If the cameras are already added to the Smart Life app, you need to remove them and add them again to the Tuya Smart app.
|
|
428
|
-
|
|
429
|
-
**Tuya Cloud API**:
|
|
430
|
-
|
|
431
|
-
- Requires setting up a cloud project in the Tuya Developer Platform.
|
|
432
|
-
- Obtain \`device_id\`, \`client_id\`, \`client_secret\`, and \`uid\` from [Tuya IoT Platform](https://iot.tuya.com/). [Here's a guide](https://xzetsubou.github.io/hass-localtuya/cloud_api/).
|
|
433
|
-
- Please ensure that you have subscribed to the \`IoT Video Live Stream\` service (Free Trial) in the Tuya Developer Platform, otherwise the stream will not work (Tuya Developer Platform > Service API > Authorize > IoT Video Live Stream).
|
|
434
|
-
|
|
435
|
-
**Configuring the stream:**
|
|
436
|
-
|
|
437
|
-
- Use \`resolution\` parameter to select the stream (not all cameras support \`hd\` stream through WebRTC even if the camera has it):
|
|
438
|
-
- \`hd\` - HD stream (default)
|
|
439
|
-
- \`sd\` - SD stream
|
|
440
|
-
|
|
441
|
-
\`\`\`yaml
|
|
442
|
-
streams:
|
|
443
|
-
# Tuya Smart API: WebRTC main stream (use Add > Tuya to discover the URL)
|
|
444
|
-
tuya_main:
|
|
445
|
-
- tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX
|
|
446
|
-
|
|
447
|
-
# Tuya Smart API: WebRTC sub stream (use Add > Tuya to discover the URL)
|
|
448
|
-
tuya_sub:
|
|
449
|
-
- tuya://protect-us.ismartlife.me?device_id=XXX&email=XXX&password=XXX&resolution=sd
|
|
450
|
-
|
|
451
|
-
# Tuya Cloud API: WebRTC main stream
|
|
452
|
-
tuya_webrtc:
|
|
453
|
-
- tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX
|
|
454
|
-
|
|
455
|
-
# Tuya Cloud API: WebRTC sub stream
|
|
456
|
-
tuya_webrtc_sd:
|
|
457
|
-
- tuya://openapi.tuyaus.com?device_id=XXX&uid=XXX&client_id=XXX&client_secret=XXX&resolution=sd
|
|
458
|
-
\`\`\`
|
|
459
|
-
|
|
460
|
-
_Source: [Go2Rtc Tuya](https://github.com/seydx/go2rtc#source-tuya)_
|
|
461
|
-
`,Tt=`#### Source: Xiaomi
|
|
462
|
-
|
|
463
|
-
This source allows you to view cameras from the [Xiaomi Mi Home](https://home.mi.com/) ecosystem.
|
|
464
|
-
|
|
465
|
-
**Important:**
|
|
466
|
-
|
|
467
|
-
1. **Not all cameras are supported**. There are several P2P protocol vendors in the Xiaomi ecosystem.
|
|
468
|
-
Currently, the **CS2** vendor is supported. However, the **TUTK** vendor is not supported.
|
|
469
|
-
2. Each time you connect to the camera, you need internet access to obtain encryption keys.
|
|
470
|
-
3. Connection to the camera is local only.
|
|
471
|
-
|
|
472
|
-
**Features:**
|
|
473
|
-
|
|
474
|
-
- Multiple Xiaomi accounts supported
|
|
475
|
-
- Cameras from multiple regions are supported for a single account
|
|
476
|
-
- Two-way audio is supported
|
|
477
|
-
- Cameras with multiple lenses are supported
|
|
478
|
-
|
|
479
|
-
## Setup
|
|
480
|
-
|
|
481
|
-
1. Goto go2rtc WebUI > Add > Xiaomi > Login with username and password
|
|
482
|
-
2. Receive verification code by email or phone if required.
|
|
483
|
-
3. Complete the captcha if required.
|
|
484
|
-
4. If everything is OK, your account will be added and you can load cameras from it.
|
|
485
|
-
|
|
486
|
-
**Example**
|
|
487
|
-
|
|
488
|
-
\`\`\`yaml
|
|
489
|
-
xiaomi:
|
|
490
|
-
1234567890: V1:***
|
|
491
|
-
|
|
492
|
-
streams:
|
|
493
|
-
xiaomi1: xiaomi://1234567890:cn@192.168.1.123?did=9876543210&model=isa.camera.hlc7
|
|
494
|
-
\`\`\`
|
|
495
|
-
|
|
496
|
-
## Configuration
|
|
497
|
-
|
|
498
|
-
You can change camera's quality: \`subtype=hd/sd/auto\`
|
|
499
|
-
|
|
500
|
-
\`\`\`yaml
|
|
501
|
-
streams:
|
|
502
|
-
xiaomi1: xiaomi://***&subtype=sd
|
|
503
|
-
\`\`\`
|
|
504
|
-
|
|
505
|
-
You can use second channel for Dual cameras: \`channel=1\`
|
|
506
|
-
|
|
507
|
-
\`\`\`yaml
|
|
508
|
-
streams:
|
|
509
|
-
xiaomi1: xiaomi://***&channel=1
|
|
510
|
-
\`\`\`
|
|
511
|
-
`,Et=`# Yandex
|
|
512
|
-
|
|
513
|
-
Source for receiving stream from new [Yandex IP camera](https://alice.yandex.ru/smart-home/security/ipcamera).
|
|
514
|
-
|
|
515
|
-
## Get Yandex token
|
|
516
|
-
|
|
517
|
-
1. Install HomeAssistant integration [YandexStation](https://github.com/AlexxIT/YandexStation).
|
|
518
|
-
2. Copy token from HomeAssistant config folder: \`/config/.storage/core.config_entries\`, key: \`"x_token"\`.
|
|
519
|
-
|
|
520
|
-
## Get device ID
|
|
521
|
-
|
|
522
|
-
1. Open this link in any browser: https://iot.quasar.yandex.ru/m/v3/user/devices
|
|
523
|
-
2. Copy ID of your camera, key: \`"id"\`.
|
|
524
|
-
|
|
525
|
-
## Config examples
|
|
526
|
-
|
|
527
|
-
\`\`\`yaml
|
|
528
|
-
streams:
|
|
529
|
-
yandex_stream: yandex:?x_token=XXXX&device_id=XXXX
|
|
530
|
-
yandex_snapshot: yandex:?x_token=XXXX&device_id=XXXX&snapshot
|
|
531
|
-
yandex_snapshot_custom_size: yandex:?x_token=XXXX&device_id=XXXX&snapshot=h=540
|
|
532
|
-
\`\`\`
|
|
533
|
-
|
|
534
|
-
_Source: [Go2Rtc Yandex](https://github.com/AlexxIT/go2rtc/tree/master/internal/yandex)_
|
|
535
|
-
`,Dt=`#### Source: WebRTC
|
|
536
|
-
|
|
537
|
-
This source type support four connection formats.
|
|
538
|
-
|
|
539
|
-
**whep**
|
|
540
|
-
|
|
541
|
-
[WebRTC/WHEP](https://datatracker.ietf.org/doc/draft-murillo-whep/) - is replaced by [WebRTC/WISH](https://datatracker.ietf.org/doc/charter-ietf-wish/02/) standard for WebRTC video/audio viewers. But it may already be supported in some third-party software. It is supported in go2rtc.
|
|
542
|
-
|
|
543
|
-
**go2rtc**
|
|
544
|
-
|
|
545
|
-
This format is only supported in go2rtc. Unlike WHEP it supports asynchronous WebRTC connection and two way audio.
|
|
546
|
-
|
|
547
|
-
**openipc**
|
|
548
|
-
|
|
549
|
-
Support connection to [OpenIPC](https://openipc.org/) cameras.
|
|
550
|
-
|
|
551
|
-
**wyze**
|
|
552
|
-
|
|
553
|
-
Supports connection to [Wyze](https://www.wyze.com/) cameras, using WebRTC protocol. You can use [docker-wyze-bridge](https://github.com/mrlt8/docker-wyze-bridge) project to get connection credentials.
|
|
554
|
-
|
|
555
|
-
**kinesis**
|
|
556
|
-
|
|
557
|
-
Supports [Amazon Kinesis Video Streams](https://aws.amazon.com/kinesis/video-streams/), using WebRTC protocol. You need to specify signalling WebSocket URL with all credentials in query params, \`client_id\` and \`ice_servers\` list in [JSON format](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer).
|
|
558
|
-
|
|
559
|
-
\`\`\`yaml
|
|
560
|
-
streams:
|
|
561
|
-
webrtc-whep: webrtc:http://192.168.1.123:1984/api/webrtc?src=camera1
|
|
562
|
-
webrtc-go2rtc: webrtc:ws://192.168.1.123:1984/api/ws?src=camera1
|
|
563
|
-
webrtc-openipc: webrtc:ws://192.168.1.123/webrtc_ws#format=openipc#ice_servers=[{"urls":"stun:stun.kinesisvideo.eu-north-1.amazonaws.com:443"}]
|
|
564
|
-
webrtc-wyze: webrtc:http://192.168.1.123:5000/signaling/camera1?kvs#format=wyze
|
|
565
|
-
webrtc-kinesis: webrtc:wss://...amazonaws.com/?...#format=kinesis#client_id=...#ice_servers=[{...},{...}]
|
|
566
|
-
\`\`\`
|
|
567
|
-
|
|
568
|
-
**PS.** For \`kinesis\` sources you can use [echo](#source-echo) to get connection params using \`bash\`/\`python\` or any other script language.
|
|
569
|
-
|
|
570
|
-
_Source: [Go2Rtc WebRTC](https://github.com/seydx/go2rtc#source-webrtc)_
|
|
571
|
-
`,Ot=`#### Source: WebTorrent
|
|
572
|
-
|
|
573
|
-
This source can get a stream from another go2rtc via [WebTorrent](#module-webtorrent) protocol.
|
|
574
|
-
|
|
575
|
-
\`\`\`yaml
|
|
576
|
-
streams:
|
|
577
|
-
webtorrent1: webtorrent:?share=huofssuxaty00izc&pwd=k3l2j9djeg8v8r7e
|
|
578
|
-
\`\`\`
|
|
579
|
-
|
|
580
|
-
_Source: [Go2Rtc Webtorrent](https://github.com/seydx/go2rtc#source-webtorrent)_
|
|
581
|
-
`,kt=`#### Source: Wyze
|
|
582
|
-
|
|
583
|
-
This source allows you to stream from [Wyze](https://wyze.com/) cameras using native P2P protocol without the Wyze app or SDK.
|
|
584
|
-
|
|
585
|
-
**Important:**
|
|
586
|
-
|
|
587
|
-
1. **Requires Wyze account**. You need to login once via the WebUI to load your cameras.
|
|
588
|
-
2. **Requires firmware with DTLS**. Only cameras with DTLS-enabled firmware are supported.
|
|
589
|
-
3. Internet access is only needed when loading cameras from your account. After that, all streaming is local P2P.
|
|
590
|
-
4. Connection to the camera is local only (direct P2P to camera IP).
|
|
591
|
-
|
|
592
|
-
**Features:**
|
|
593
|
-
|
|
594
|
-
- H.264 and H.265 video codec support
|
|
595
|
-
- AAC, G.711, PCM, and Opus audio codec support
|
|
596
|
-
- Two-way audio (intercom) support
|
|
597
|
-
- Resolution switching (HD/SD)
|
|
598
|
-
|
|
599
|
-
## Setup
|
|
600
|
-
|
|
601
|
-
1. Get your API Key from [Wyze Developer Portal](https://support.wyze.com/hc/en-us/articles/16129834216731)
|
|
602
|
-
2. Go to go2rtc WebUI > Add > Wyze
|
|
603
|
-
3. Enter your API ID, API Key, email, and password
|
|
604
|
-
4. Select cameras to add - stream URLs are generated automatically
|
|
605
|
-
|
|
606
|
-
**Example Config**
|
|
607
|
-
|
|
608
|
-
\`\`\`yaml
|
|
609
|
-
wyze:
|
|
610
|
-
user@email.com:
|
|
611
|
-
api_id: 'your-api-id'
|
|
612
|
-
api_key: 'your-api-key'
|
|
613
|
-
password: 'yourpassword' # or MD5 triple-hash with "md5:" prefix
|
|
614
|
-
|
|
615
|
-
streams:
|
|
616
|
-
wyze_cam: wyze://192.168.1.123?uid=WYZEUID1234567890AB&enr=xxx&mac=AABBCCDDEEFF&model=HL_CAM4&dtls=true
|
|
617
|
-
\`\`\`
|
|
618
|
-
|
|
619
|
-
## Stream URL Format
|
|
620
|
-
|
|
621
|
-
The stream URL is automatically generated when you add cameras via the WebUI:
|
|
622
|
-
|
|
623
|
-
\`\`\`
|
|
624
|
-
wyze://[IP]?uid=[P2P_ID]&enr=[ENR]&mac=[MAC]&model=[MODEL]&subtype=[hd|sd]&dtls=true
|
|
625
|
-
\`\`\`
|
|
626
|
-
|
|
627
|
-
| Parameter | Description |
|
|
628
|
-
| --------- | ----------------------------------------------- |
|
|
629
|
-
| \`IP\` | Camera's local IP address |
|
|
630
|
-
| \`uid\` | P2P identifier (20 chars) |
|
|
631
|
-
| \`enr\` | Encryption key for DTLS |
|
|
632
|
-
| \`mac\` | Device MAC address |
|
|
633
|
-
| \`model\` | Camera model (e.g., HL_CAM4) |
|
|
634
|
-
| \`dtls\` | Enable DTLS encryption (default: true) |
|
|
635
|
-
| \`subtype\` | Camera resolution: \`hd\` or \`sd\` (default: \`hd\`) |
|
|
636
|
-
|
|
637
|
-
## Configuration
|
|
638
|
-
|
|
639
|
-
### Resolution
|
|
640
|
-
|
|
641
|
-
You can change the camera's resolution using the \`subtype\` parameter:
|
|
642
|
-
|
|
643
|
-
\`\`\`yaml
|
|
644
|
-
streams:
|
|
645
|
-
wyze_hd: wyze://...&subtype=hd
|
|
646
|
-
wyze_sd: wyze://...&subtype=sd
|
|
647
|
-
\`\`\`
|
|
648
|
-
|
|
649
|
-
### Two-Way Audio
|
|
650
|
-
|
|
651
|
-
Two-way audio (intercom) is supported automatically. When a consumer sends audio to the stream, it will be transmitted to the camera's speaker.
|
|
652
|
-
`;function J(e){let t=e.url.join(``);switch(e.protocol){case`nest:`:case`ring:`:case`yandex:`:case`webtorrent:`:!t.startsWith(`?`)&&!t.startsWith(e.protocol)&&(t=`?${t}`)}return t.startsWith(e.protocol)?t:`${e.protocol}${t}`}function At(e){let t;for(let n of _)e.startsWith(n)&&(!t||n.length>t.length)&&(t=n);return t?{protocol:t,url:[e.slice(t.length)]}:{protocol:`rtsp://`,url:[e]}}function jt(e){return e.startsWith(`cui://`)&&e.includes(`/api/cameras/streams/`)}function Mt(e){return jt(J(e))}var Nt={class:`flex flex-col gap-6`},Pt={class:`flex gap-2 items-center w-full`},Ft={class:`flex gap-2 items-center w-full`},It={class:`text-color text-sm`},Lt={class:`flex flex-col gap-6`},Rt=[`for`],zt=[`for`],Bt={class:`w-full flex flex-col gap-2`},Vt={class:`flex items-center gap-4`},Ht={class:`flex flex-col field-switch-gap`},Ut=[`for`],Wt={class:`flex items-center gap-4`},Gt={class:`flex flex-col field-switch-gap`},Kt=[`for`],qt={class:`flex items-center gap-4`},Jt={class:`flex flex-col field-switch-gap`},Yt=[`for`],Xt={class:`flex flex-col gap-6`},Zt={class:`flex flex-col field-gap`},Qt=[`for`],$t={key:0,class:`w-full flex flex-row gap-2`},en={key:1},tn={class:`w-full flex flex-row my-1 gap-2`},nn=G({__name:`CuiCameraSources`,props:{sources:{},isLoading:{type:Boolean},allowAddRemoveSources:{type:Boolean,default:!1}},setup(e,{expose:t}){let i=new ke,a=e,c=je(),{t:l}=o(),{smBreakpoint:f}=we(),{mutateAsync:g,isPending:ee}=i.previewCameraQuery(),C=R([`high-resolution`,`mid-resolution`,`low-resolution`,`snapshot`]),E=R(a.sources.map((e,t)=>t)),D=R([]),O=H(()=>a.isLoading||ee.value);function te(e){return e.urls.some(Mt)}function ne(e){a.sources[e].urls.push({protocol:`rtsp://`,url:[]})}function j(e,t){a.sources[e].urls.splice(t,1)}function M(){a.sources.push({_id:v(8),name:``,role:null,urls:[{protocol:`rtsp://`,url:[]}],useForSnapshot:!1,hotMode:!0,preload:!0}),E.value=[a.sources.length]}function N(e){a.sources.splice(e,1)}function ae(e){let t,n,r;switch(e){case`bubble://`:t=[],n=Object.assign({"../../markdowns/bubble.md":nt});break;case`cui://`:t=[],n=Object.assign({"../../markdowns/cui.md":rt});break;case`doorbird://`:t=[],n=Object.assign({"../../markdowns/doorbird.md":it});break;case`dvrip://`:t=[],n=Object.assign({"../../markdowns/dvrip.md":at});break;case`echo:`:t=[],n=Object.assign({"../../markdowns/echo.md":ot});break;case`eseecloud://`:t=[],n=Object.assign({});break;case`exec:`:t=[],n=Object.assign({"../../markdowns/exec.md":st});break;case`expr:`:t=[],n=Object.assign({"../../markdowns/expr.md":ct});break;case`ffmpeg:`:t=u,n=Object.assign({"../../markdowns/ffmpeg.md":lt});break;case`flussonic://`:t=u,n=Object.assign({});break;case`gopro://`:t=u,n=Object.assign({"../../markdowns/gopro.md":ut});break;case`hass:`:t=[],n=Object.assign({"../../markdowns/hass.md":dt});break;case`homekit://`:t=m,n=Object.assign({"../../markdowns/homekit.md":ft});break;case`http://`:case`https://`:case`httpx://`:case`tcp://`:t=p,n=Object.assign({"../../markdowns/http.md":pt});break;case`isapi://`:t=[],n=Object.assign({"../../markdowns/isapi.md":mt});break;case`ivideon:`:t=[],n=Object.assign({"../../markdowns/ivideon.md":ht});break;case`kasa://`:t=[],n=Object.assign({"../../markdowns/kasa.md":gt});break;case`nest:`:t=h,n=Object.assign({"../../markdowns/nest.md":_t});break;case`onvif://`:t=[],n=Object.assign({"../../markdowns/onvif.md":vt});break;case`ring:`:t=d,n=Object.assign({"../../markdowns/ring.md":yt});break;case`roborock://`:t=[],n=Object.assign({"../../markdowns/roborock.md":bt});break;case`rtmp://`:t=[],n=Object.assign({"../../markdowns/rtmp.md":xt});break;case`rtsp://`:case`rtspx://`:t=s,n=Object.assign({"../../markdowns/rtsp.md":St});break;case`tapo://`:t=[],n=Object.assign({"../../markdowns/tapo.md":Ct});break;case`tuya://`:t=[],n=Object.assign({"../../markdowns/tuya.md":wt});break;case`xiaomi://`:t=[],n=Object.assign({"../../markdowns/xiaomi.md":Tt});break;case`yandex:`:t=[],n=Object.assign({"../../markdowns/yandex.md":Et});break;case`webrtc:`:t=y,n=Object.assign({"../../markdowns/webrtc.md":Dt});break;case`webtorrent:`:t=[],n=Object.assign({"../../markdowns/webtorrent.md":Ot});break;case`wyze://`:t=[],n=Object.assign({"../../markdowns/wyze.md":kt});break;default:t=[],n=void 0;break}return n&&(r=Object.values(n)[0]),{presets:t,md:r}}function se(e){D.value=e}function U(e,t){t.protocol=e}async function G(e,t){if(!(!e&&!t)){if(e){let t={url:J(e)};try{let e=await g({cameraData:t});c.openImageDialog({data:{title:l(`components.dialog.title.preview`),src:`data:image/jpeg;base64,${e}`,hideConfirmButton:!0}})}catch{}}else if(t){let e=ae(t);if(!e.md)return;c.openTextDialog({data:{title:l(`components.dialog.title.information`),hideConfirmButton:!0,contentText:e.md,markdown:!0}})}}}return t({newSource:M}),(t,i)=>{let a=ue,o=Te,s=r,c=fe,l=n,u=pe,d=he,p=be,m=ye,h=Me,g=ge,v=tt,y=_e,ee=Qe,M=de,R=ve,H=xe,ce=me;return q(),L(`div`,Nt,[K(H,{value:A(E),"onUpdate:value":i[1]||=e=>I(E)?E.value=e:null,multiple:``},{default:z(()=>[(q(!0),L(oe,null,re(e.sources,(n,r)=>(q(),F(R,{key:n._id,value:r,class:S({"border-b-0":r===e.sources.length-1})},{default:z(()=>[K(c,{class:S({"px-0 pt-0":r===0,"px-0":r!==0,"pb-5":r===e.sources.length-1})},{default:z(()=>[P(`div`,Pt,[P(`div`,Ft,[P(`span`,It,w(t.$t(`components.dialog.components.new_camera.source`)+`: `),1),K(a,{class:`text-color text-xs border-[1px] bg-primary-500/20 border-primary-500/30 py-2 px-3 rounded-full overflow-hidden`,label:n.name===``?t.$t(`components.dialog.components.new_camera.unknown`):n.name},null,8,[`label`])]),e.allowAddRemoveSources&&e.sources.length>1?(q(),F(s,{key:0,text:``,rounded:``,severity:`danger`,class:`cui-icon-md ml-auto mr-2`,loading:A(O),onClick:e=>N(r)},{icon:z(()=>[K(o,{width:`100%`,height:`100%`})]),_:1},8,[`loading`,`onClick`])):B(``,!0)])]),_:2},1032,[`class`]),K(M,{pt:{content:{class:{"px-0":!0,"pb-5":r===e.sources.length-1}}}},{default:z(()=>[P(`div`,Lt,[K(A(T),{modelValue:n.name,"onUpdate:modelValue":e=>n.name=e,modelModifiers:{trim:!0},name:`sources[${r}].name`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:e,errors:n})=>[P(`label`,{for:`sources[${r}].name`,class:`cui-label`},w(t.$t(`components.form.label.source_name`)),9,Rt),K(u,null,{default:z(()=>[K(l,x({ref_for:!0},e,{invalid:n.length>0,loading:A(O),type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].name`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),n.length?B(``,!0):(q(),F(d,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.source_name`)),1)]),_:1}))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`name`]),K(A(T),{"model-value":n.role,name:`sources[${r}].role`,as:`div`,class:`flex flex-col field-gap`},{default:z(({errors:i})=>[P(`label`,{for:`sources[${r}].role`,class:`cui-label`},w(t.$t(`components.form.label.source_role`)),9,zt),K(u,null,{default:z(()=>[K(p,{"model-value":n.role,options:A(C).filter(t=>!e.sources.some(e=>e.role===t&&e._id!==n._id)),invalid:i.length>0,loading:A(O),onValueChange:e=>n.role=e},null,8,[`model-value`,`options`,`invalid`,`loading`,`onValueChange`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].role`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),i.length?B(``,!0):(q(),F(d,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.source_role`)),1)]),_:1}))]),_:2},1032,[`model-value`,`name`]),P(`div`,Bt,[n.role!==`snapshot`&&e.sources.length>1?(q(),F(A(T),{key:0,"model-value":n.useForSnapshot,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${r}].useForSnapshot`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:z(({field:i,errors:a})=>[P(`div`,Vt,[P(`div`,Ht,[P(`label`,{for:`sources[${r}].useForSnapshot`,class:`cui-label-switch`},w(t.$t(`components.form.label.use_for_snapshot`)),9,Ut),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.use_for_snapshot`)),1)]),_:1}),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].useForSnapshot`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),K(m,x({"model-value":n.useForSnapshot},{ref_for:!0},i,{invalid:a.length>0,loading:A(O),disabled:e.sources.some(e=>(e.useForSnapshot||e.role===`snapshot`)&&e._id!==n._id),class:`ml-auto shrink-0`,onValueChange:e=>n.useForSnapshot=e}),null,16,[`model-value`,`invalid`,`loading`,`disabled`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`])):B(``,!0),n.role===`snapshot`?B(``,!0):(q(),F(A(T),{key:1,"model-value":n.hotMode,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${r}].hotMode`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:z(({field:e,errors:i})=>[P(`div`,Wt,[P(`div`,Gt,[P(`label`,{for:`sources[${r}].hotMode`,class:`cui-label-switch`},w(t.$t(`components.form.label.hot_mode`)),9,Kt),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.hot_mode`)),1)]),_:1}),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].hotMode`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),K(m,x({"model-value":n.hotMode},{ref_for:!0},e,{invalid:i.length>0,loading:A(O),class:`ml-auto shrink-0`,onValueChange:e=>n.hotMode=e}),null,16,[`model-value`,`invalid`,`loading`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`])),n.role===`snapshot`?B(``,!0):(q(),F(A(T),{key:2,"model-value":n.preload,value:!0,"unchecked-value":!1,type:`checkbox`,name:`sources[${r}].preload`,as:`div`,class:`flex flex-col field-gap cui-toggle-switch`},{default:z(({field:e,errors:i})=>[P(`div`,qt,[P(`div`,Jt,[P(`label`,{for:`sources[${r}].preload`,class:`cui-label-switch`},w(t.$t(`components.form.label.preload`)),9,Yt),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-switch-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.preload`)),1)]),_:1}),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].preload`,class:`cui-input-switch-error`},null,8,[`name`])]),_:2},1024)]),K(m,x({"model-value":n.preload},{ref_for:!0},e,{invalid:i.length>0,loading:A(O),class:`ml-auto shrink-0`,onValueChange:e=>n.preload=e}),null,16,[`model-value`,`invalid`,`loading`,`onValueChange`])])]),_:2},1032,[`model-value`,`name`]))]),P(`div`,Xt,[P(`div`,Zt,[P(`label`,{for:`sources[${r}].urls[]`,class:`cui-label`},w(t.$t(`components.form.label.sources`)),9,Qt),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(te(n)?t.$t(`views.devices.managed_source_hint`):t.$t(`components.form.hint.source_urls`)),1)]),_:2},1024)]),(q(!0),L(oe,null,re(n.urls,(e,a)=>(q(),L(oe,{key:a},[A(Mt)(e)?(q(),L(`div`,$t,[K(u,null,{default:z(()=>[K(l,{"model-value":A(J)(e),readonly:``,loading:A(O),type:`text`},null,8,[`model-value`,`loading`])]),_:2},1024)])):(q(),L(`div`,en,[A(f)?(q(),F(A(T),{key:0,"model-value":e.protocol,name:`sources[${r}].urls[${a}].protocol`,as:`div`,class:`flex flex-col field-gap mb-2`},{default:z(({errors:n})=>[K(u,null,{default:z(()=>[K(p,{"model-value":e.protocol,options:A(_),invalid:n.length>0,loading:A(O),"onUpdate:modelValue":t=>U(t,e)},null,8,[`model-value`,`options`,`invalid`,`loading`,`onUpdate:modelValue`]),K(g,null,{default:z(()=>[V((q(),F(s,{text:``,rounded:``,severity:`secondary`,loading:A(O),onClick:t=>G(void 0,e.protocol)},{icon:z(()=>[K(h,{width:`100%`,height:`100%`})]),_:1},8,[`loading`,`onClick`])),[[ce,{value:t.$t(`components.dialog.components.new_camera.protocol_info`)},void 0,{top:!0}]])]),_:2},1024)]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].urls[${a}].protocol`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.source_protocol`)),1)]),_:1})]),_:2},1032,[`model-value`,`name`])):B(``,!0),P(`div`,tn,[A(f)?B(``,!0):(q(),F(A(T),{key:0,"model-value":e.protocol,name:`sources[${r}].urls[${a}].protocol`,as:`div`,class:`flex flex-col field-gap max-w-[125px]`},{default:z(({errors:n})=>[K(u,null,{default:z(()=>[K(p,{"model-value":e.protocol,options:A(_),invalid:n.length>0,loading:A(O),pt:{root:{class:`rounded-r-none`}},"onUpdate:modelValue":t=>U(t,e)},null,8,[`model-value`,`options`,`invalid`,`loading`,`onUpdate:modelValue`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].urls[${a}].protocol`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.source_protocol`)),1)]),_:1})]),_:2},1032,[`model-value`,`name`])),K(A(T),{"model-value":e.url,name:`sources[${r}].urls[${a}].url`,as:`div`,class:`flex flex-col field-gap w-full`},{default:z(({field:c,errors:l})=>[K(u,null,{default:z(()=>[K(y,{"model-value":e.url,invalid:l.length>0,loading:A(O),multiple:``,fluid:``,typeahead:!1,suggestions:A(D),pt:{inputMultiple:{class:`rounded-none overflow-y-scroll max-h-[42px]`}},onComplete:t=>se(ae(e.protocol).presets),onHide:i[0]||=e=>D.value=[],onValueChange:t=>(c.value=t)&&(e.url=t)},{dropdown:z(({toggleCallback:e})=>[K(g,null,{default:z(()=>[K(s,{text:``,rounded:``,severity:`secondary`,disabled:A(O),class:`border-right-color`,onClick:e},{icon:z(()=>[A(O)?B(``,!0):(q(),F(v,{key:0}))]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:1},8,[`model-value`,`invalid`,`loading`,`suggestions`,`onComplete`,`onValueChange`]),K(g,null,{default:z(()=>[A(f)?B(``,!0):V((q(),F(s,{key:0,text:``,rounded:``,severity:`secondary`,disabled:A(O),class:`border-right-color`,onClick:t=>G(void 0,e.protocol)},{icon:z(()=>[K(h,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`,`onClick`])),[[ce,{value:t.$t(`components.dialog.components.new_camera.protocol_info`)},void 0,{top:!0}]]),V((q(),F(s,{text:``,rounded:``,severity:`secondary`,disabled:!e.protocol||!e.url.length||A(O),class:`border-right-color`,onClick:t=>G(e)},{icon:z(()=>[K(ee,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`,`onClick`])),[[ce,{value:t.$t(`components.dialog.components.new_camera.test_source`)},void 0,{top:!0}]]),n.urls.length>1?(q(),F(s,{key:1,text:``,rounded:``,severity:`danger`,disabled:A(O),onClick:ie(e=>j(r,a),[`prevent`])},{icon:z(()=>[K(o,{width:`100%`,height:`100%`})]),_:1},8,[`disabled`,`onClick`])):B(``,!0)]),_:2},1024)]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`sources[${r}].urls[${a}].url`,class:`cui-input-error`},null,8,[`name`])]),_:2},1024),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.source_url`)),1)]),_:1}),K(d,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.type_and_enter`)),1)]),_:1})]),_:2},1032,[`model-value`,`name`])])]))],64))),128)),te(n)?B(``,!0):(q(),F(s,{key:0,loading:A(O),label:t.$t(`components.form.button.add_source`),class:`ml-auto cui-button-medium`,onClick:e=>ne(r)},null,8,[`loading`,`label`,`onClick`]))])])]),_:2},1032,[`pt`])]),_:2},1032,[`value`,`class`]))),128))]),_:1},8,[`value`])])}}}),rn={class:`flex flex-col gap-6`},an={for:`name`,class:`cui-label`},on={class:`flex flex-col field-gap`},sn={for:`type`,class:`cui-label`},cn={class:`flex flex-col field-gap`},ln={for:`room`,class:`cui-label`},un={class:`flex gap-2`},dn={class:`text-color font-normal`},fn={class:`flex flex-col gap-6`},pn={for:`info.manufacturer`,class:`cui-label`},mn={for:`info.model`,class:`cui-label`},hn={for:`info.hardware`,class:`cui-label`},gn={for:`info.serialNumber`,class:`cui-label`},_n={for:`info.firmwareVersion`,class:`cui-label`},vn={for:`info.supportUrl`,class:`cui-label`},yn=G({__name:`CuiCameraDetailsFields`,props:{form:{},isLoading:{type:Boolean}},setup(e){let t=new ke,i=e,a=je(),{t:s}=o(),{data:c,isBusy:l}=t.getRoomsQuery(),u=R([`camera`,`doorbell`]),d=R([]),f=H(()=>{let e=c.value??[`Default`],t=new Set(e.map(e=>e.toLowerCase()));return[...e,...d.value.filter(e=>!t.has(e.toLowerCase()))].map(e=>({label:e===`Default`?s(`components.form.label.room_default`):e,value:e}))});function p(){a.openComponentDialog(Ie,{data:{title:s(`components.dialog.title.create_room`),confirmText:s(`components.form.button.add`),contentProps:{}},onConfirm:e=>{if(!e)return;let t=f.value.find(t=>t.value.toLowerCase()===e.toLowerCase()),n=t?.value??e;t||d.value.push(n),i.form.room=n}})}return(t,i)=>{let a=n,o=pe,s=he,c=be,d=Fe,m=r,h=fe,g=de,_=ve,v=xe,y=me;return q(),L(`div`,rn,[K(A(T),{modelValue:e.form.name,"onUpdate:modelValue":i[0]||=t=>e.form.name=t,modelModifiers:{trim:!0},name:`name`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,an,w(t.$t(`components.form.label.name`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`name`,class:`cui-input-error`})]),_:1}),r.length?B(``,!0):(q(),F(s,{key:0,severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.camera_name`)),1)]),_:1}))]),_:1},8,[`modelValue`]),P(`div`,on,[P(`label`,sn,w(t.$t(`components.form.label.type`)),1),K(o,null,{default:z(()=>[K(c,{"model-value":e.form.type,options:A(u),loading:e.isLoading,type:`text`,onValueChange:i[1]||=t=>e.form.type=t},null,8,[`model-value`,`options`,`loading`])]),_:1})]),P(`div`,cn,[P(`label`,ln,w(t.$t(`components.form.label.room`)),1),P(`div`,un,[K(c,{"model-value":e.form.room,options:A(f),"option-label":`label`,"option-value":`value`,loading:A(l),class:`w-full`,"onUpdate:modelValue":i[2]||=t=>e.form.room=t},null,8,[`model-value`,`options`,`loading`]),V((q(),F(m,{severity:`secondary`,outlined:``,class:`shrink-0 h-[42px] w-[42px] p-0`,onClick:p},{icon:z(()=>[K(d,{class:`w-4 h-4`})]),_:1})),[[y,t.$t(`components.form.button.create_room`),void 0,{top:!0}]])]),K(s,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:z(()=>[W(w(t.$t(`components.form.hint.room`)),1)]),_:1})]),E(t.$slots,`default`),K(v,null,{default:z(()=>[K(_,{value:`branding`},{default:z(()=>[K(h,{class:`px-0 pt-0`},{default:z(()=>[P(`span`,dn,w(t.$t(`components.camera_options.branding`)),1)]),_:1}),K(g,{pt:{content:{class:`px-0`}}},{default:z(()=>[P(`div`,fn,[K(A(T),{modelValue:e.form.info.manufacturer,"onUpdate:modelValue":i[3]||=t=>e.form.info.manufacturer=t,modelModifiers:{trim:!0},name:`info.manufacturer`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,pn,w(t.$t(`components.form.label.manufacturer`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.manufacturer`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),K(A(T),{modelValue:e.form.info.model,"onUpdate:modelValue":i[4]||=t=>e.form.info.model=t,modelModifiers:{trim:!0},name:`info.model`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,mn,w(t.$t(`components.form.label.model`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.model`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),K(A(T),{modelValue:e.form.info.hardware,"onUpdate:modelValue":i[5]||=t=>e.form.info.hardware=t,modelModifiers:{trim:!0},name:`info.hardware`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,hn,w(t.$t(`components.form.label.hardware_version`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.hardware`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),K(A(T),{modelValue:e.form.info.serialNumber,"onUpdate:modelValue":i[6]||=t=>e.form.info.serialNumber=t,modelModifiers:{trim:!0},name:`info.serialNumber`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,gn,w(t.$t(`components.form.label.serial_number`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.serialNumber`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),K(A(T),{modelValue:e.form.info.firmwareVersion,"onUpdate:modelValue":i[7]||=t=>e.form.info.firmwareVersion=t,modelModifiers:{trim:!0},name:`info.firmwareVersion`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,_n,w(t.$t(`components.form.label.firmware_version`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.firmwareVersion`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),K(A(T),{modelValue:e.form.info.supportUrl,"onUpdate:modelValue":i[8]||=t=>e.form.info.supportUrl=t,modelModifiers:{trim:!0},name:`info.supportUrl`,as:`div`,class:`flex flex-col field-gap`},{default:z(({field:n,errors:r})=>[P(`label`,vn,w(t.$t(`components.form.label.support_url`)),1),K(o,null,{default:z(()=>[K(a,x(n,{invalid:r.length>0,loading:e.isLoading,type:`text`}),null,16,[`invalid`,`loading`])]),_:2},1024),K(b,{name:`fade`},{default:z(()=>[K(A(k),{name:`info.supportUrl`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`])])]),_:1})]),_:1})]),_:1})])}}}),bn={disabled:!1,name:``,type:`camera`,room:`Default`,info:{manufacturer:``,model:``,hardware:``,serialNumber:``,firmwareVersion:``,supportUrl:``},sources:[{_id:v(8),name:``,role:`high-resolution`,urls:[{protocol:`rtsp://`,url:[]}],useForSnapshot:!1,hotMode:!0,preload:!0}],interfaceSettings:{streamingMode:`webrtc`,streamingSource:`high-resolution`,aspectRatio:`16:9`},plugins:[],assignments:{}},xn={class:`card-title`},Sn={class:`card-title`},Cn={class:`w-full flex items-center justify-center mt-4`},wn=G({__name:`AddCamera`,props:{camera:{default:()=>bn}},setup(t,{expose:n}){let i=new ke,a=t,s=l(),{t:c}=o(),{mutateAsync:u,isPending:d}=i.createCameraQuery(),{camera:f}=N(a),p=j(`formRef`),m=j(`sourcesRef`),h=R(g(f.value)),_=H(()=>d.value);async function v(){if(!(await p.value?.validate())?.valid)return s.add({severity:`error`,detail:c(`components.toast.validation_failed`),life:3e3}),null;let e=g(h.value);await u({cameraData:{...e,type:e.type,isCloud:!1,detectionZones:[],detectionLines:[],detectionSettings:{motion:{resolution:`medium`,timeout:30},object:{confidence:.7},audio:{minDecibels:-40,timeout:30},sensor:{timeout:30,triggers:[]},cascadeDetection:!0,cascadeTimeout:10,snooze:!1},ptzAutotrack:{enabled:!1,targetLabels:[`person`],minConfidence:.5,triggerDeadZone:.05,trackingSpeed:2,leadFrames:3,panRate:.85,returnToHome:!1,homeWaitMs:1e4},frameWorkerSettings:{fps:10,hqSnapshots:!1},snapshotSettings:{autoRefresh:!1,ttl:50,interval:60},plugins:e.plugins||[],assignments:e.assignments||{},sources:e.sources.map(e=>{let t=e.urls.map(e=>{if(e.url)return J(e)}).filter(Boolean);return{...e,urls:t}})}})}return n({isLoading:_,onSave:v,onConfirm:v}),(t,n)=>{let i=yn,a=e,o=nn,s=Ne,c=r;return q(),L(`div`,null,[K(A(D),{ref_key:`formRef`,ref:p,class:`flex flex-col w-full gap-6`,"validation-schema":A(Le)},{default:z(()=>[P(`div`,null,[P(`span`,xn,w(t.$t(`components.dialog.components.new_camera.camera`)),1),K(a,{class:`cui-card`},{content:z(()=>[K(i,{form:A(h),"is-loading":A(_)},null,8,[`form`,`is-loading`])]),_:1})]),P(`div`,null,[P(`span`,Sn,w(t.$t(`components.form.label.sources`)),1),K(a,{class:`cui-card border-color-inner`,pt:{body:{class:`pb-0`}}},{content:z(()=>[K(o,{ref_key:`sourcesRef`,ref:m,sources:A(h).sources,"is-loading":A(_),"allow-add-remove-sources":!0},null,8,[`sources`,`is-loading`])]),_:1}),P(`div`,Cn,[K(c,{text:``,rounded:``,loading:A(_),class:`cui-icon-2xl`,onClick:n[0]||=e=>A(m)?.newSource()},{icon:z(()=>[K(s,{width:`100%`,height:`100%`})]),_:1},8,[`loading`])])])]),_:1},8,[`validation-schema`])])}}}),Tn={class:`card-title`},En={key:0,class:`flex flex-col gap-6`},Dn={class:`cui-label`},On={class:`card-title`},kn=G({__name:`ConfirmCamera`,props:{draft:{},onConfirm:{type:Function}},setup(t,{expose:r}){let i=ce({name:le().trim().min(1)}).passthrough(),a=t,s=l(),{t:c}=o(),u=j(`formRef`),d=R(g(a.draft)),f=R({name:d.value.name,type:d.value.type,room:d.value.room,info:d.value.info,sources:d.value.sources.map(e=>({...e,urls:e.urls.map(At)}))}),p=R(!1),m=H(()=>{let e=[];return d.value.pluginInfo?.name&&e.push({label:c(`views.devices.plugin`),value:d.value.pluginInfo.name}),d.value.nativeId&&e.push({label:c(`views.devices.native_id`),value:d.value.nativeId}),e}),h=H(()=>p.value);async function _(){if(!(await u.value?.validate())?.valid)return s.add({severity:`error`,detail:c(`components.toast.validation_failed`),life:3e3}),null;p.value=!0;try{let e={...d.value,name:f.value.name,type:f.value.type,room:f.value.room,info:f.value.info,sources:f.value.sources.map(e=>({...e,urls:e.urls.map(J).filter(Boolean)}))};await a.onConfirm(e)}catch(e){return s.add({severity:`error`,summary:c(`views.devices.confirm_title`),detail:e,life:3e3}),null}finally{p.value=!1}}return r({isLoading:h,onConfirm:_}),(t,r)=>{let a=n,o=pe,s=yn,c=e,l=nn;return q(),L(`div`,null,[K(A(D),{ref_key:`formRef`,ref:u,class:`flex flex-col w-full gap-6`,"validation-schema":A(i)},{default:z(()=>[P(`div`,null,[P(`span`,Tn,w(t.$t(`components.dialog.components.new_camera.camera`)),1),K(c,{class:`cui-card`},{content:z(()=>[K(s,{form:A(f),"is-loading":A(h)},{default:z(()=>[A(m).length?(q(),L(`div`,En,[(q(!0),L(oe,null,re(A(m),e=>(q(),L(`div`,{key:e.label,class:`flex flex-col field-gap`},[P(`label`,Dn,w(e.label),1),K(o,null,{default:z(()=>[K(a,{"model-value":e.value,readonly:``,type:`text`},null,8,[`model-value`])]),_:2},1024)]))),128))])):B(``,!0)]),_:1},8,[`form`,`is-loading`])]),_:1})]),P(`div`,null,[P(`span`,On,w(t.$t(`components.form.label.sources`)),1),K(c,{class:`cui-card border-color-inner`,pt:{body:{class:`pb-0`}}},{content:z(()=>[K(l,{sources:A(f).sources,"is-loading":A(h),"allow-add-remove-sources":!0},null,8,[`sources`,`is-loading`])]),_:1})])]),_:1},8,[`validation-schema`])])}}}),An={key:0,class:`text-center py-4`},jn={class:`text-muted`},Mn=G({__name:`ConnectionSchema`,props:{camera:{},schema:{},onConnect:{type:Function}},setup(e,{expose:t}){let n=e,r=c(),i=l(),{t:a}=o(),s=C(`dialogRefProps`),{schema:u}=N(n),d=j(`schemaFormRef`),f=R(!1),p=H(()=>({schema:u.value,config:{}})),m=H(()=>!!(s.loading?.value||f.value));async function h(){f.value=!0;try{let e={};if(u.value.length>0){let t=await d.value?.validate();if(!t?.valid)return r.error(`Validation failed`,t),i.add({severity:`error`,detail:a(`components.toast.validation_failed`),life:3e3}),null;e=t.values??{}}await n.onConnect(e)}catch(e){return i.add({severity:`error`,summary:a(`views.devices.connect`),detail:e,life:3e3}),null}finally{f.value=!1}}return t({isLoading:m,onConfirm:h}),(e,t)=>{let n=Pe;return A(u).length===0?(q(),L(`div`,An,[P(`p`,jn,w(e.$t(`views.devices.no_settings_required`)),1)])):(q(),F(n,{key:1,ref_key:`schemaFormRef`,ref:d,"schema-form":A(p),loading:A(m)},null,8,[`schema-form`,`loading`]))}}}),Nn=5e3,Y=ae({isLoading:!0,devices:[],isScanning:!1,hiddenDevices:[],showHidden:!1,error:null}),Pn=null,X=null,Z=!1,Q=0,$=null;function Fn(){Y.isLoading=!0,Y.devices=[],Y.isScanning=!1,Y.hiddenDevices=[],Y.showHidden=!1,Y.error=null}function In(){return X||(Pn=M(!0),Pn.run(()=>{let e=f(`/cameras`);X=e,e.onReady(()=>{Ln()}),ee(e.connected,(e,t)=>{!e&&t&&(Z=!1)}),e.on(`cameras:discovered`,e=>{for(let t of e.devices){let e=Y.devices.findIndex(e=>e.id===t.id);e>=0?Y.devices[e]=t:Y.devices.push(t)}}),e.on(`cameras:scanning`,e=>{Y.isScanning=e.isScanning}),e.on(`cameras:connection-status`,e=>{let t=Y.devices.find(t=>t.discoveredId===e.discoveredId);t&&(e.status===`connecting`?t.status=`adopting`:e.status===`error`?(t.status=`error`,t.errorMessage=e.errorMessage):e.status===`connected`&&(Y.devices=Y.devices.filter(t=>t.discoveredId!==e.discoveredId)))}),e.on(`cameras:camera-connected`,e=>{Y.devices=Y.devices.filter(t=>t.discoveredId!==e.discoveredId)}),e.on(`cameras:deleted`,e=>{Y.devices=Y.devices.filter(t=>t.cameraId!==e.cameraId)})}),X)}async function Ln(){if(!X||Z)return{success:Z,devices:Y.devices,isScanning:Y.isScanning,hiddenDevices:Y.hiddenDevices};try{let e=await X.request(`cameras:subscribe`,{});return Z=e.success,e.devices&&(Y.devices=e.devices),e.isScanning!==void 0&&(Y.isScanning=e.isScanning),e.hiddenDevices&&(Y.hiddenDevices=e.hiddenDevices),Y.isLoading=!1,e}catch(e){return Y.isLoading=!1,Y.error=e instanceof Error?e.message:`subscribe failed`,{success:!1}}}async function Rn(){if(!X||!Z)return{success:!0};try{let e=await X.request(`cameras:unsubscribe`,{});return Z=!e.success,e}catch{return{success:!1}}}function zn(){Z&&Rn(),Pn?.stop(),Pn=null,X=null,Z=!1,Fn()}function Bn(){$&&=(clearTimeout($),null),Q++;function e(){In(),X?.connected.value&&!Z&&Ln()}function n(){Z&&Rn()}async function r(){if(!X?.ready.value)return{success:!1,error:`Not connected`};Y.devices=[],Y.isScanning=!0;try{let e=await X.request(`cameras:rescan`,{});return e.success||(Y.isScanning=!1),e}catch(e){return Y.isScanning=!1,{success:!1,error:e instanceof Error?e.message:`rescan failed`}}}async function i(e){if(!X?.ready.value)return{success:!1,error:`Not connected`};try{return await X.request(`cameras:get-schema`,{discoveredId:e})}catch(e){return{success:!1,error:e instanceof Error?e.message:`get-schema failed`}}}async function a(e,t){if(!X?.ready.value)return{success:!1,error:`Not connected`};try{return await X.request(`cameras:connect`,{discoveredId:e,credentials:t})}catch(e){return{success:!1,error:e instanceof Error?e.message:`connect failed`}}}async function o(e,t){if(!X?.ready.value)throw Error(`Not connected`);let n=await X.request(`cameras:prepare`,{discoveredId:e,credentials:t});if(!n.success||!n.draft)throw Error(n.error??`prepare failed`);return n.draft}async function s(e,t){if(!X?.ready.value)throw Error(`Not connected`);let n=await X.request(`cameras:confirm`,{draft:e,discoveredId:t});if(!n.success||!n.cameraId||!n.cameraName)throw Error(n.error??`confirm failed`);return{cameraId:n.cameraId,cameraName:n.cameraName}}async function c(e){if(!X?.ready.value)return{success:!1,error:`Not connected`};let t={id:e.discoveredId,name:e.name,model:e.model};try{let e=await X.request(`cameras:hide-device`,{device:t});return e.success&&e.hiddenDevices&&(Y.hiddenDevices=e.hiddenDevices),e}catch(e){return{success:!1,error:e instanceof Error?e.message:`hide-device failed`}}}async function l(e){if(!X?.ready.value)return{success:!1,error:`Not connected`};try{let t=await X.request(`cameras:unhide-device`,{deviceId:e});return t.success&&t.hiddenDevices&&(Y.hiddenDevices=t.hiddenDevices),t}catch(e){return{success:!1,error:e instanceof Error?e.message:`unhide-device failed`}}}function u(){Y.showHidden=!Y.showHidden}function d(e){return e.type!==`discovered`||!e.discoveredId?!1:Y.hiddenDevices.some(t=>t.id===e.discoveredId)}let f=H(()=>{let e=new Set(Y.hiddenDevices.map(e=>e.id)),t=(e,t)=>e.name.localeCompare(t.name),n=Y.devices.filter(e=>e.type===`camera`).sort(t),r=Y.devices.filter(t=>t.type===`discovered`&&!e.has(t.discoveredId)).sort(t),i=Y.showHidden?Y.devices.filter(t=>t.type===`discovered`&&e.has(t.discoveredId)).sort(t):[];return[...n,...r,...i]});return t(()=>{Q--,!(Q>0)&&(Q=0,$=setTimeout(()=>{Q<=0&&(zn(),$=null)},Nn))}),{state:se(Y),isConnected:H(()=>X?.connected.value??!1),isLoading:H(()=>Y.isLoading),devices:H(()=>Y.devices),isScanning:H(()=>Y.isScanning),hiddenDevices:H(()=>Y.hiddenDevices),showHidden:H(()=>Y.showHidden),error:H(()=>Y.error),sortedDevices:f,connect:e,disconnect:n,subscribe:Ln,unsubscribe:Rn,forceRescan:r,getConnectionSchema:i,connectDevice:a,prepareDevice:o,confirmDevice:s,hideDevice:c,unhideDevice:l,toggleShowHidden:u,isHidden:d}}var Vn={class:`flex flex-col`},Hn={key:0,class:`page-title`},Un={key:1,class:`flex flex-1 min-h-0 flex-col items-center justify-center w-full gap-4`},Wn={key:2,class:`flex flex-1 min-h-0 flex-col items-center justify-center w-full gap-4 py-16`},Gn={class:`w-16 h-16 rounded-full bg-primary-500/10 flex items-center justify-center`},Kn={class:`flex flex-col items-center gap-1 max-w-[400px] text-center`},qn={class:`text-color font-semibold text-base`},Jn={class:`text-muted text-sm`},Yn={key:3,class:`flex min-h-0 flex-col`},Xn={class:`card-title`},Zn={class:`flex items-center justify-center`},Qn={class:`font-bold text-color truncate`},$n={class:`text-xs text-muted truncate`},er={key:0,class:`text-xs text-red-500 truncate`},tr={class:`card-title`},nr={key:0,class:`flex flex-col gap-6`},rr={class:`flex items-center justify-center`},ir={class:`flex items-center justify-center`},ar={key:1,class:`flex flex-col items-center justify-center py-6 gap-2`},or={class:`text-muted text-sm`},sr={class:`flex flex-wrap items-center gap-2 mt-4`},cr=Ce(G({__name:`Cameras`,setup(t){let{t:n}=o(),s=l(),c=je(),u=Ae(),{smBreakpoint:d}=we(),f=Bn(),p={bodyRow:{class:`text-sm text-secondary`},column:{columnTitle:{class:`text-sm`}},datatable:{class:`z-0`}},m=H(()=>f.sortedDevices.value),h=H(()=>m.value.filter(e=>e.type===`camera`)),g=H(()=>m.value.filter(e=>e.type===`discovered`)),_=H(()=>f.isLoading.value),v=H(()=>f.isScanning.value),y=H(()=>f.hiddenDevices.value),ee=H(()=>f.showHidden.value),b=H(()=>y.value.length);function x(e){switch(e){case`added`:return`green`;case`discovered`:return`orange`;case`adopting`:return`orange`;case`error`:return`red`;default:return`gray`}}function C(e){switch(e){case`added`:return n(`views.devices.status_added`);case`discovered`:return n(`views.devices.status_discovered`);case`adopting`:return n(`views.devices.status_adopting`);case`error`:return n(`views.devices.status_error`);default:return n(`views.devices.status_unknown`)}}function T(e){return f.isHidden(e)}async function E(e){if(!T(e)){if(e.type===`camera`){u.open({cameraName:e.name});return}if(e.type===`discovered`&&e.discoveredId){if(e.status===`adopting`)return;try{let t=await f.getConnectionSchema(e.discoveredId);if(!t.success){s.add({severity:`error`,summary:n(`views.devices.connect`),detail:t.error,life:3e3});return}c.openComponentDialog(Mn,{data:{title:`${n(`views.devices.connect`)}: ${e.name}`,confirmText:n(`views.devices.connect`),contentProps:{camera:{id:e.discoveredId,name:e.name,model:e.model,provider:e.provider,connectionStatus:`idle`},schema:t.schema??[],onConnect:async t=>{D(await f.prepareDevice(e.discoveredId,t),e.discoveredId)}}}})}catch(e){s.add({severity:`error`,summary:n(`views.devices.connect`),detail:e,life:3e3})}}}}function D(e,t){c.openComponentDialog(kn,{data:{title:n(`views.devices.confirm_title`),confirmText:n(`views.devices.confirm`),fullscreen:!0,contentProps:{draft:e,onConfirm:async e=>{await f.confirmDevice(e,t),s.add({severity:`success`,summary:n(`views.devices.connect`),detail:n(`components.toast.camera_added`),life:3e3})}}}})}async function k(){try{let e=await f.forceRescan();e.success?s.add({severity:`success`,summary:n(`views.devices.rescan`),detail:n(`views.devices.rescan_success`),life:3e3}):s.add({severity:`error`,summary:n(`views.devices.rescan`),detail:e.error,life:3e3})}catch(e){s.add({severity:`error`,summary:n(`views.devices.rescan`),detail:e,life:3e3})}}function re(){c.openComponentDialog(wn,{data:{title:n(`components.dialog.components.new_camera.add_camera`),fullscreen:!0,contentProps:{}}})}async function j(e,t){e.stopPropagation();try{let e=await f.hideDevice(t);e.success?s.add({severity:`success`,summary:n(`views.devices.hide`),detail:n(`views.devices.device_hidden`),life:3e3}):s.add({severity:`error`,summary:n(`views.devices.hide`),detail:e.error,life:3e3})}catch(e){s.add({severity:`error`,summary:n(`views.devices.hide`),detail:e,life:3e3})}}async function ie(e,t){e.stopPropagation();try{let e=await f.unhideDevice(t.discoveredId);e.success?s.add({severity:`success`,summary:n(`views.devices.unhide`),detail:n(`views.devices.device_unhidden`),life:3e3}):s.add({severity:`error`,summary:n(`views.devices.unhide`),detail:e.error,life:3e3})}catch(e){s.add({severity:`error`,summary:n(`views.devices.unhide`),detail:e,life:3e3})}}function M(){f.toggleShowHidden()}function N(e){return T(e)?`opacity-50 cursor-not-allowed`:``}return O(()=>{f.connect()}),te(()=>{f.unsubscribe()}),(t,n)=>{let o=i,s=Ee,c=r,l=a,u=Se,f=ue,y=Re,D=e,O=ze,te=Ue,ae=De,I=me;return q(),L(`div`,Vn,[A(d)?B(``,!0):(q(),L(`h1`,Hn,w(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1)),A(_)?(q(),L(`div`,Un,[K(o,{"stroke-width":`5`,class:`w-[30px] h-[30px]`})])):B(``,!0),!A(_)&&!A(m).length?(q(),L(`div`,Wn,[P(`div`,Gn,[K(s,{class:`w-8 h-8 text-primary-500`})]),P(`div`,Kn,[P(`span`,qn,w(A(v)?t.$t(`views.devices.scanning`):t.$t(`views.devices.no_devices`)),1),P(`span`,Jn,w(A(v)?t.$t(`views.devices.scanning_hint`):t.$t(`views.devices.no_devices_hint`)),1)]),K(c,{class:`cui-button-medium mt-2`,severity:`secondary`,label:t.$t(`views.devices.rescan`),loading:A(v),onClick:k},null,8,[`label`,`loading`])])):B(``,!0),!A(_)&&A(h).length?(q(),L(`div`,Yn,[P(`span`,Xn,w(t.$t(`views.devices.status_adopted_cameras`)),1),K(D,{class:`cui-card`},{content:z(()=>[K(y,{value:A(h),"striped-rows":``,pt:p,class:`w-full`,onRowClick:n[0]||=e=>E(e.data)},{default:z(()=>[K(u,{header:``,"header-class":`p-2 pl-4 w-5 max-w-5`,class:`p-2 pl-4 w-5 max-w-5`},{body:z(({data:e})=>[P(`div`,Zn,[V(K(l,{style:ne({background:x(e.status)})},null,8,[`style`]),[[I,{value:C(e.status)}]])])]),_:1}),K(u,{field:`name`,header:t.$t(`views.devices.name`),"header-class":`p-2`,class:`p-2 w-full min-w-[200px] max-w-0`},{body:z(({data:e})=>[P(`div`,Qn,w(e.name),1),P(`div`,$n,w(e.manufacturer||t.$t(`views.devices.unknown`))+` · `+w(e.model||t.$t(`views.devices.unknown`)),1),e.errorMessage?(q(),L(`div`,er,w(e.errorMessage),1)):B(``,!0)]),_:1},8,[`header`]),K(u,{field:`room`,header:t.$t(`components.form.label.room`),"header-class":`p-2 whitespace-nowrap`,class:`p-2 whitespace-nowrap`},{body:z(({data:e})=>[e.room?(q(),F(f,{key:0,label:e.room===`Default`?t.$t(`components.form.label.room_default`):e.room,class:`text-xs whitespace-nowrap`},null,8,[`label`])):B(``,!0)]),_:1},8,[`header`]),K(u,{field:`provider`,header:t.$t(`views.devices.provider`),"header-class":`p-2 pr-4 whitespace-nowrap`,class:`p-2 pr-4 whitespace-nowrap`},{body:z(({data:e})=>[K(f,{label:e.provider,class:`text-xs whitespace-nowrap`},null,8,[`label`])]),_:1},8,[`header`])]),_:1},8,[`value`])]),_:1})])):B(``,!0),!A(_)&&A(m).length?(q(),L(`div`,{key:4,class:S([`flex min-h-0 flex-col`,{"mt-6":A(h).length}])},[P(`span`,tr,w(t.$t(`views.devices.status_discovered`)),1),K(D,{class:`cui-card`},{content:z(()=>[A(g).length?(q(),L(`div`,nr,[K(y,{value:A(g),"striped-rows":``,pt:p,class:`w-full`,onRowClick:n[1]||=e=>E(e.data)},{default:z(()=>[K(u,{header:``,"header-class":`p-2 pl-4 w-5 max-w-5`,class:`p-2 pl-4 w-5 max-w-5`},{body:z(({data:e})=>[P(`div`,rr,[V(K(l,{style:ne({background:x(e.status)})},null,8,[`style`]),[[I,{value:C(e.status)}]])])]),_:1}),K(u,{field:`name`,header:t.$t(`views.devices.name`),"header-class":`p-2`,class:`p-2 w-full min-w-[200px] max-w-0`},{body:z(({data:e})=>[P(`div`,{class:S([`font-bold text-color truncate`,N(e)])},w(e.name),3),P(`div`,{class:S([`text-xs text-muted truncate`,N(e)])},w(e.manufacturer||t.$t(`views.devices.unknown`))+` · `+w(e.model||t.$t(`views.devices.unknown`)),3)]),_:1},8,[`header`]),K(u,{field:`provider`,header:t.$t(`views.devices.provider`),"header-class":`p-2 whitespace-nowrap`,class:`p-2 whitespace-nowrap`},{body:z(({data:e})=>[K(f,{label:e.provider,class:S([`text-xs whitespace-nowrap`,N(e)])},null,8,[`label`,`class`])]),_:1},8,[`header`]),K(u,{header:``,"header-class":`p-2 pr-4 w-12`,class:`p-2 pr-4 w-12`},{body:z(({data:e})=>[P(`div`,ir,[T(e)?V((q(),F(c,{key:1,text:``,rounded:``,class:`cui-icon-md`,onClick:t=>ie(t,e)},{icon:z(()=>[K(A(Ke),{width:`100%`,height:`100%`,class:`text-muted`})]),_:1},8,[`onClick`])),[[I,{value:t.$t(`views.devices.unhide`)},void 0,{left:!0}]]):V((q(),F(c,{key:0,severity:`secondary`,text:``,rounded:``,class:`cui-icon-md`,onClick:t=>j(t,e)},{icon:z(()=>[K(A(Ye),{width:`100%`,height:`100%`,class:`text-muted`})]),_:1},8,[`onClick`])),[[I,{value:t.$t(`views.devices.hide`)},void 0,{left:!0}]])])]),_:1})]),_:1},8,[`value`])])):(q(),L(`div`,ar,[A(v)?(q(),F(O,{key:0,width:`24px`,height:`24px`,class:`text-muted`})):(q(),F(te,{key:1,width:`32px`,height:`32px`,class:`text-muted`})),P(`span`,or,w(A(v)?t.$t(`views.devices.scanning`):t.$t(`views.devices.no_discovered`)),1)])),P(`div`,sr,[n[2]||=P(`div`,{class:`ml-auto`},null,-1),A(b)>0&&A(g).length?(q(),F(c,{key:0,severity:`secondary`,class:`cui-button-medium`,label:A(ee)?t.$t(`views.devices.hide_hidden`):`${t.$t(`views.devices.show_hidden`)} (${A(b)})`,onClick:M},null,8,[`label`])):B(``,!0),K(c,{severity:`secondary`,class:`cui-button-medium`,label:t.$t(`views.devices.rescan`),loading:A(v),onClick:k},null,8,[`label`,`loading`])])]),_:1})],2)):B(``,!0),(`hasPermission`in t?t.hasPermission:A(Oe))(void 0,`admin`)?(q(),F(ae,{key:5,"tooltip-props":{value:t.$t(`views.cameras.add_camera`)},"button-props":{class:`text-white`},icon:A(Be),"icon-props":{width:`30px`,height:`30px`},onClick:re},null,8,[`tooltip-props`,`icon`])):B(``,!0)])}}}),[[`__scopeId`,`data-v-f166f47b`]]);export{cr as default};
|