From 081db74d0142e156137646ca4f64491ecbec5447 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 24 Jan 2022 20:40:25 -0800 Subject: [PATCH] core: webrtc fixes --- plugins/core/.npmignore | 2 ++ plugins/core/package-lock.json | 4 ++-- plugins/core/package.json | 2 +- plugins/core/ui/src/common/camera.ts | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/core/.npmignore b/plugins/core/.npmignore index ff2824293..4b45a5cb5 100644 --- a/plugins/core/.npmignore +++ b/plugins/core/.npmignore @@ -6,3 +6,5 @@ fs src .vscode dist/*.js +ui +client diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json index a5feb740d..c5957597a 100644 --- a/plugins/core/package-lock.json +++ b/plugins/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/core", - "version": "0.0.183", + "version": "0.0.185", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/core", - "version": "0.0.183", + "version": "0.0.185", "license": "Apache-2.0", "dependencies": { "@koush/wrtc": "^0.5.0", diff --git a/plugins/core/package.json b/plugins/core/package.json index fad9f6191..b65bbdd8c 100644 --- a/plugins/core/package.json +++ b/plugins/core/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/core", - "version": "0.0.183", + "version": "0.0.185", "description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/core/ui/src/common/camera.ts b/plugins/core/ui/src/common/camera.ts index b7fe3e0ae..adf6b2f29 100644 --- a/plugins/core/ui/src/common/camera.ts +++ b/plugins/core/ui/src/common/camera.ts @@ -4,7 +4,7 @@ export async function streamCamera(mediaManager: MediaManager, device: ScryptedD let selectedStream: MediaStreamOptions; try { const streams = await device.getVideoStreamOptions(); - selectedStream = streams.find(stream => stream.container.startsWith(ScryptedMimeTypes.RTCAVSignalingPrefix)); + selectedStream = streams.find(stream => stream.container?.startsWith(ScryptedMimeTypes.RTCAVSignalingPrefix)); if (!selectedStream) selectedStream = streams.find(stream => stream.container === 'rawvideo'); }