auto upgrade to udp

This commit is contained in:
matt 2022-03-28 15:12:02 +00:00
parent 2b0dee45c6
commit 13994a9638
1 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,7 @@ export default class RFB extends EventTargetMixin {
this._maxVideoResolutionX = 960;
this._maxVideoResolutionY = 540;
this._clipboardBinary = true;
this._useUdp = false;
this._useUdp = true;
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");
}