]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7509: update res options
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 13 Feb 2015 16:00:52 +0000 (10:00 -0600)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:02 +0000 (12:47 -0500)
html5/verto/video_demo/index.html
html5/verto/video_demo/verto.js

index 8bb4363fd91cc0c3d1e496dbf7e07696db424ea9..73334887ea705132873f892ea2e0e397f193f10f 100644 (file)
@@ -249,6 +249,12 @@ So if you have Chrome handy, try it with that too.
  
     <input type="radio" name="vqual" id="vqual_vga" value="vga">
     <label for="vqual_vga">VGA 640x480</label>
+
+    <input type="radio" name="vqual" id="vqual_qvga_wide" value="qvga_wide">
+    <label for="vqual_qvga_wide">QVGA WIDE 320x180</label>
+    <input type="radio" name="vqual" id="vqual_vga_wide" value="vga_wide">
+    <label for="vqual_vga_wide">VGA WIDE 640x360</label>
  
     <input type="radio" name="vqual" id="vqual_hd" value="hd">
     <label for="vqual_hd">HD 1280x720</label>
index 5f593041b11602177ab826c784f61dfdb4c3b306..028c955e946e65cb5db5ca66ff29538191047a14 100644 (file)
@@ -142,6 +142,16 @@ function check_vid_res()
        vid_height = 480;
        local_vid_width = 160;
        local_vid_height = 120;
+    } else if ($("#vqual_qvga_wide").is(':checked')) {
+       vid_width = 320;
+       vid_height = 180;
+       local_vid_width = 160;
+       local_vid_height = 90;
+    } else if ($("#vqual_vga_wide").is(':checked')) {
+       vid_width = 640;
+       vid_height = 360;
+       local_vid_width = 160;
+       local_vid_height = 90;
     } else if ($("#vqual_hd").is(':checked')) {
        vid_width = 1280;
        vid_height = 720;
@@ -163,7 +173,9 @@ function check_vid_res()
        verto.videoParams({
            "minWidth": vid_width,
            "minHeight": vid_height,
-           "minFrameRate": 30, 
+           "maxWidth": vid_width,
+           "maxHeight": vid_height,
+           //"minFrameRate": 30, 
            //chromeMediaSource: 'screen', 
            //mediaSource: 'screen'
        });
@@ -576,6 +588,26 @@ function init() {
     });
 
 
+    $("#vqual_qvga_wide").prop("checked", vqual === "qvga_wide").change(function(e) {
+        if ($("#vqual_qvga_wide").is(':checked')) {
+           vqual = "qvga_wide";
+           $.cookie("verto_demo_vqual", vqual, {
+               expires: 365
+           });
+       }
+    });
+
+
+    $("#vqual_vga").prop("checked", vqual === "vga_wide").change(function(e) {
+        if ($("#vqual_vga_wide").is(':checked')) {
+           vqual = "vga_wide";
+           $.cookie("verto_demo_vqual", vqual, {
+               expires: 365
+           });
+       }
+    });
+
+
     $("#vqual_hd").prop("checked", vqual === "hd").change(function(e) {
         if ($("#vqual_hd").is(':checked')) {
            vqual = "hd";
@@ -653,7 +685,9 @@ function init() {
         videoParams: {
             "minWidth": vid_width,
             "minHeight": vid_height,
-           "minFrameRate": 30,
+           "maxWidth": vid_width,
+           "maxHeight": vid_height,
+           //"minFrameRate": 30,
            //chromeMediaSource: 'screen',
            //mediaSource: 'screen'
         },