diff --git a/plugins/webrtc/package-lock.json b/plugins/webrtc/package-lock.json index 90bba5dc4e..c3ba915ee6 100644 --- a/plugins/webrtc/package-lock.json +++ b/plugins/webrtc/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/webrtc", - "version": "0.2.56", + "version": "0.2.57", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/webrtc", - "version": "0.2.56", + "version": "0.2.57", "dependencies": { "@scrypted/common": "file:../../common", "@scrypted/sdk": "file:../../sdk", diff --git a/plugins/webrtc/package.json b/plugins/webrtc/package.json index d00dbcccce..6838c95bfa 100644 --- a/plugins/webrtc/package.json +++ b/plugins/webrtc/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/webrtc", - "version": "0.2.56", + "version": "0.2.57", "scripts": { "scrypted-setup-project": "scrypted-setup-project", "prescrypted-setup-project": "scrypted-package-json", diff --git a/plugins/webrtc/src/main.ts b/plugins/webrtc/src/main.ts index a2299331e1..7ae18b53a4 100644 --- a/plugins/webrtc/src/main.ts +++ b/plugins/webrtc/src/main.ts @@ -308,7 +308,7 @@ export class WebRTCPlugin extends AutoenableMixinProvider implements DeviceCreat } if (fromMimeType === ScryptedMimeTypes.FFmpegInput) { - const ffmpegInput: FFmpegInput = typeof data === 'object' ? data : JSON.parse(data.toString()); + const ffmpegInput: FFmpegInput = typeof data === 'object' && !Buffer.isBuffer(data) ? data : JSON.parse(data.toString()); const mo = await mediaManager.createFFmpegMediaObject(ffmpegInput); class OnDemandSignalingChannel implements RTCSignalingChannel {