From 4f4f01b36e770841b8b975a3a1990f00bd7b6572 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 17 Sep 2015 11:12:34 -0500 Subject: [PATCH] FS-8180 #resolve [param to enable/disable video malfunction] --- html5/verto/js/src/jquery.verto.js | 2 +- html5/verto/video_demo/js/verto-min.js | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index 21e0d2e5bf..9a9ccc9fe5 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -1963,7 +1963,7 @@ dialog.rtc = new $.FSRTC({ callbacks: RTCcallbacks, localVideo: dialog.localVideo, - useVideo: dialog.videoStream, + useVideo: dialog.params.useVideo ? dialog.videoStream : null, useAudio: dialog.audioStream, useStereo: dialog.params.useStereo, videoParams: dialog.params.videoParams, diff --git a/html5/verto/video_demo/js/verto-min.js b/html5/verto/video_demo/js/verto-min.js index 8235c77def..d88e62b9ce 100644 --- a/html5/verto/video_demo/js/verto-min.js +++ b/html5/verto/video_demo/js/verto-min.js @@ -1,5 +1,5 @@ -var iceTimerSent=0;var iceTimerCompleted=0;var iceTimer;(function($){function findLine(sdpLines,prefix,substr){return findLineInRange(sdpLines,0,-1,prefix,substr);} +(function($){function findLine(sdpLines,prefix,substr){return findLineInRange(sdpLines,0,-1,prefix,substr);} function findLineInRange(sdpLines,startLine,endLine,prefix,substr){var realEndLine=(endLine!=-1)?endLine:sdpLines.length;for(var i=startLine;i