From e99b78b061897eb03f67d53b85f4c9fab461e8c8 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Mon, 15 Jul 2019 19:50:50 +0530 Subject: [PATCH] ELECTRON-1370 - Add support for RTC v1 api (#730) --- src/renderer/app-bridge.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/app-bridge.ts b/src/renderer/app-bridge.ts index 614a0122..3b8dda1a 100644 --- a/src/renderer/app-bridge.ts +++ b/src/renderer/app-bridge.ts @@ -215,12 +215,14 @@ export class AppBridge { if (sourceError) { const { requestId, ...error } = sourceError; this.broadcastMessage('media-source-callback', { requestId, error }); + this.broadcastMessage('media-source-callback-v1', { requestId, error }); return; } if (selectedSource && selectedSource.requestId) { const { requestId, ...source } = selectedSource; this.broadcastMessage('media-source-callback', { requestId, source, error: sourceError }); + this.broadcastMessage('media-source-callback-v1', { requestId, response: { source, error: sourceError } }); } }