Fix issue when screensharing first

This commit is contained in:
perroned 2015-09-09 15:41:13 -07:00
parent 695d14972f
commit 7ed87d01c6
2 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,7 @@ this.isLoggedIntoVerto = function () {
// overwrite and substitute my own init function // overwrite and substitute my own init function
this.init = function(videoTag) { this.init = function(videoTag) {
videoTag = window.videoTag;
cur_call = null; cur_call = null;
share_call = null; share_call = null;
incomingBandwidth = "default"; incomingBandwidth = "default";

View File

@ -159,6 +159,7 @@ this.getDeskshareConstraintsFromResolution = function(resolution, constraints) {
} }
this.screenStart = function(state, callback, videoTag) { this.screenStart = function(state, callback, videoTag) {
window.videoTag = videoTag;
if (state) { if (state) {
if(!isLoggedIntoVerto()) { // start the verto log in procedure if(!isLoggedIntoVerto()) { // start the verto log in procedure
// runs when the websocket is successfully created // runs when the websocket is successfully created