1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-26 12:37:26 +00:00

FS-10420: [verto.js] Verto on Safari -- some more tweaks

This commit is contained in:
Anthony Minessale 2017-08-05 13:17:48 -05:00
parent 74f244e8c6
commit 4d32ca9826
3 changed files with 13 additions and 6 deletions
html5/verto
verto_communicator/src/vertoService/services
video_demo-live_canvas
video_demo

@ -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'];

@ -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;

@ -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;