]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9640: Allow access to Verto stream object via callback
authorChad Phillips <chad@apartmentlines.com>
Thu, 13 Oct 2016 17:11:57 +0000 (10:11 -0700)
committerChad Phillips <chad@apartmentlines.com>
Thu, 13 Oct 2016 17:11:57 +0000 (10:11 -0700)
Exposes Verto MediaStream objects via the onGranted() callback

html5/verto/js/src/jquery.FSRTC.js
html5/verto/js/src/jquery.verto.js

index debe6674e9aa2a31bea83c5501570d7f36c76f45..a75dacca8fac4bc0259238008bffbeb86c682489 100644 (file)
                 }
             });
 
-            onStreamSuccess(self);
+            onStreamSuccess(self, stream);
         }
 
         function onError(e) {
index 892838bc30eecf38712fefa1484ad9375456db44..477c4d0903cdb7540340ba1b86ae388cf759c5b7 100644 (file)
         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");
         };