提交 7d6ed4a4 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1008 in FS/freeswitch from…

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

* commit 'f566467c':
  FS-9640: Allow access to Verto stream object via callback
...@@ -422,7 +422,7 @@ ...@@ -422,7 +422,7 @@
} }
}); });
onStreamSuccess(self); onStreamSuccess(self, stream);
} }
function onError(e) { function onError(e) {
......
...@@ -2020,7 +2020,7 @@ ...@@ -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");
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论