]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10420: [verto.js] Verto on Safari -- some more tweaks
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Aug 2017 18:17:48 +0000 (13:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 5 Aug 2017 18:17:54 +0000 (13:17 -0500)
html5/verto/verto_communicator/src/vertoService/services/vertoService.js
html5/verto/video_demo-live_canvas/verto.js
html5/verto/video_demo/verto.js

index 5ac1e7d3ba88cc69d72fe6c88191a8a5485d2f14..6ae35994ecc55496bdf5ae29c3320de25bb86331 100644 (file)
@@ -127,7 +127,7 @@ var updateVideoSize = function(ms) {
         var w = videoElem.width();
         var h = videoElem.height();
         var new_w, new_h;
-        var aspect = 1920 / 1080;
+        var aspect = w / h;
         var videoContainer = jQuery('div.video-wrapper');
         if (w > h) {
             new_w = videoContainer.width();
@@ -264,10 +264,17 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
           label: 'Screen'
         }];
         data.audioDevices = [{
-          id: 'none',
-          label: 'No Microphone'
+          id: 'any',
+          label: 'Default Microphone'
+       },
+       {
+           id: 'none',
+           label: 'No Microphone'
         }];
-        data.speakerDevices = [];
+        data.speakerDevices = [{
+           id: 'any',
+           label: 'Default Speaker'
+       }];
 
         if(!storage.data.selectedShare) {
           storage.data.selectedShare = data.shareDevices[0]['id'];
index ae3279e61982c3186645ea18068388a965bd7235..71d823b3928af6fe2136b6e4f850be28af2a7614 100644 (file)
@@ -442,7 +442,7 @@ function real_size() {
 
        var new_w;
        var new_h;
-       var aspect = 1920 / 1080; /*temasys doesn't provide video width hack aspect to wide screen*/
+       var aspect = w / h;
        
        if (w > h) {
            new_w = window.innerWidth;
index bd23d9edd01e2f8a92301e17797887de1cefe08f..9041468a545c4cd64b37c67ebdc839dc5cb233cc 100644 (file)
@@ -147,7 +147,7 @@ function real_size() {
 
        var new_w;
        var new_h;
-       var aspect = 1920 / 1080; /*temasys doesn't provide video width hack aspect to wide screen*/
+       var aspect = w / h;
        
        if (w > h) {
            new_w = window.innerWidth;