mirror of
https://github.com/koush/scrypted.git
synced 2026-02-13 02:12:58 +00:00
webrtc: fix broken ring intercom
This commit is contained in:
4
plugins/webrtc/package-lock.json
generated
4
plugins/webrtc/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"dependencies": {
|
||||
"@koush/werift": "file:../../external/werift/packages/webrtc",
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"scripts": {
|
||||
"prepublishOnly": "NODE_ENV=production scrypted-webpack",
|
||||
"prescrypted-vscode-launch": "scrypted-webpack",
|
||||
|
||||
@@ -33,9 +33,14 @@ class WebRTCMixin extends SettingsMixinDeviceBase<VideoCamera & RTCSignalingChan
|
||||
}
|
||||
|
||||
startIntercom(media: MediaObject): Promise<void> {
|
||||
if (this.mixinDeviceInterfaces.includes(ScryptedInterface.Intercom))
|
||||
return this.mixinDevice.startIntercom(media);
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
stopIntercom(): Promise<void> {
|
||||
if (this.mixinDeviceInterfaces.includes(ScryptedInterface.Intercom))
|
||||
return this.mixinDevice.stopIntercom();
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user