From f566467cd08b8b1ec79691124fe878e2e3ebec7a Mon Sep 17 00:00:00 2001 From: Chad Phillips Date: Thu, 13 Oct 2016 10:11:57 -0700 Subject: [PATCH] FS-9640: Allow access to Verto stream object via callback Exposes Verto MediaStream objects via the onGranted() callback --- html5/verto/js/src/jquery.FSRTC.js | 2 +- html5/verto/js/src/jquery.verto.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index debe6674e9..a75dacca8f 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -422,7 +422,7 @@ } }); - onStreamSuccess(self); + onStreamSuccess(self, stream); } function onError(e) { diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index 892838bc30..477c4d0903 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -2020,7 +2020,7 @@ RTCcallbacks.onStream = function(rtc, stream) { if (dialog.verto.options.permissionCallback && typeof dialog.verto.options.permissionCallback.onGranted === 'function'){ - dialog.verto.options.permissionCallback.onGranted(); + dialog.verto.options.permissionCallback.onGranted(stream); } console.log("stream started"); };