Merge pull request #1008 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:feature/FS-9640-allow-access-to-verto-stream-object to master

* commit 'f566467cd08b8b1ec79691124fe878e2e3ebec7a':
  FS-9640: Allow access to Verto stream object via callback
This commit is contained in:
Mike Jerris committed 2016-10-24 09:42:01 -05:00
commit 7d6ed4a41d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -422,7 +422,7 @@
} }
}); });
onStreamSuccess(self); onStreamSuccess(self, stream);
} }
function onError(e) { function onError(e) {
+1 -1
View File
@@ -2020,7 +2020,7 @@
RTCcallbacks.onStream = function(rtc, stream) { RTCcallbacks.onStream = function(rtc, stream) {
if (dialog.verto.options.permissionCallback && if (dialog.verto.options.permissionCallback &&
typeof dialog.verto.options.permissionCallback.onGranted === 'function'){ typeof dialog.verto.options.permissionCallback.onGranted === 'function'){
dialog.verto.options.permissionCallback.onGranted(); dialog.verto.options.permissionCallback.onGranted(stream);
} }
console.log("stream started"); console.log("stream started");
}; };