auto upgrade to udp
This commit is contained in:
parent
2b0dee45c6
commit
13994a9638
|
|
@ -136,7 +136,7 @@ export default class RFB extends EventTargetMixin {
|
||||||
this._maxVideoResolutionX = 960;
|
this._maxVideoResolutionX = 960;
|
||||||
this._maxVideoResolutionY = 540;
|
this._maxVideoResolutionY = 540;
|
||||||
this._clipboardBinary = true;
|
this._clipboardBinary = true;
|
||||||
this._useUdp = false;
|
this._useUdp = true;
|
||||||
|
|
||||||
this._trackFrameStats = false;
|
this._trackFrameStats = false;
|
||||||
|
|
||||||
|
|
@ -1033,6 +1033,10 @@ export default class RFB extends EventTargetMixin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._useUdp) {
|
||||||
|
setTimeout(function() { this._sendUdpUpgrade() }.bind(this), 3000);
|
||||||
|
}
|
||||||
|
|
||||||
Log.Debug("<< RFB.connect");
|
Log.Debug("<< RFB.connect");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue