@supraio/client-daemon-js 0.0.0-mzudpstream.305 → 0.0.0-mzudpstream.307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/daemon.html +1 -1
- package/daemon.js +3 -3
- package/daemon.js.map +2 -2
- package/go/go.d.ts +1 -1
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/screen.js.map +1 -1
- package/sdk.js +5 -5
- package/sdk.js.map +2 -2
- package/supra-client-daemon.js +37 -28
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +74 -39
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -64090,7 +64090,7 @@ $packages["github.com/supraio/client-daemon/pkg/config"] = (function() {
|
|
|
64090
64090
|
defaultUsername = "unknown";
|
|
64091
64091
|
};
|
|
64092
64092
|
ParseConfig = function() {
|
|
64093
|
-
var {_arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tuple, _tuple$1, _tuple$2, cfg, clientBaseDir, currentUser, err, err$1, homeDir, screenWindowCmd, $s, $r, $c} = $restore(this, {});
|
|
64093
|
+
var {_arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tmp$6, _tmp$7, _tuple, _tuple$1, _tuple$2, cfg, clientBaseDir, currentUser, err, err$1, homeDir, screenWindowCmd, $s, $r, $c} = $restore(this, {});
|
|
64094
64094
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
64095
64095
|
cfg = [cfg];
|
|
64096
64096
|
cfg[0] = new Config.ptr("", "", "", "", "", new time.Duration(0, 0), "");
|
|
@@ -64114,6 +64114,13 @@ $packages["github.com/supraio/client-daemon/pkg/config"] = (function() {
|
|
|
64114
64114
|
_arg$1 = _r$2;
|
|
64115
64115
|
_r$3 = _r$1.Load(_arg, _arg$1); /* */ $s = 4; case 4: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
64116
64116
|
err = _r$3;
|
|
64117
|
+
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
64118
|
+
_tmp$2 = $clone(cfg[0], Config);
|
|
64119
|
+
_tmp$3 = err;
|
|
64120
|
+
Config.copy(cfg[0], _tmp$2);
|
|
64121
|
+
err = _tmp$3;
|
|
64122
|
+
$s = -1; return [cfg[0], err];
|
|
64123
|
+
}
|
|
64117
64124
|
if (cfg[0].RunDir === "") {
|
|
64118
64125
|
cfg[0].RunDir = clientBaseDir + "/run";
|
|
64119
64126
|
}
|
|
@@ -64148,10 +64155,10 @@ $packages["github.com/supraio/client-daemon/pkg/config"] = (function() {
|
|
|
64148
64155
|
currentUser = _tuple$1[0];
|
|
64149
64156
|
err$1 = _tuple$1[1];
|
|
64150
64157
|
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
64151
|
-
_tmp$
|
|
64152
|
-
_tmp$
|
|
64153
|
-
Config.copy(cfg[0], _tmp$
|
|
64154
|
-
err = _tmp$
|
|
64158
|
+
_tmp$4 = $clone(cfg[0], Config);
|
|
64159
|
+
_tmp$5 = err$1;
|
|
64160
|
+
Config.copy(cfg[0], _tmp$4);
|
|
64161
|
+
err = _tmp$5;
|
|
64155
64162
|
$s = -1; return [cfg[0], err];
|
|
64156
64163
|
}
|
|
64157
64164
|
cfg[0].Username = currentUser.Username;
|
|
@@ -64165,12 +64172,12 @@ $packages["github.com/supraio/client-daemon/pkg/config"] = (function() {
|
|
|
64165
64172
|
}
|
|
64166
64173
|
_r$5 = makeDirs($clone(cfg[0], Config)); /* */ $s = 11; case 11: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
64167
64174
|
err = _r$5;
|
|
64168
|
-
_tmp$
|
|
64169
|
-
_tmp$
|
|
64170
|
-
Config.copy(cfg[0], _tmp$
|
|
64171
|
-
err = _tmp$
|
|
64175
|
+
_tmp$6 = $clone(cfg[0], Config);
|
|
64176
|
+
_tmp$7 = err;
|
|
64177
|
+
Config.copy(cfg[0], _tmp$6);
|
|
64178
|
+
err = _tmp$7;
|
|
64172
64179
|
$s = -1; return [cfg[0], err];
|
|
64173
|
-
/* */ } return; } var $f = {$blk: ParseConfig, $c: true, $r, _arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tuple, _tuple$1, _tuple$2, cfg, clientBaseDir, currentUser, err, err$1, homeDir, screenWindowCmd, $s};return $f;
|
|
64180
|
+
/* */ } return; } var $f = {$blk: ParseConfig, $c: true, $r, _arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tmp, _tmp$1, _tmp$2, _tmp$3, _tmp$4, _tmp$5, _tmp$6, _tmp$7, _tuple, _tuple$1, _tuple$2, cfg, clientBaseDir, currentUser, err, err$1, homeDir, screenWindowCmd, $s};return $f;
|
|
64174
64181
|
};
|
|
64175
64182
|
$pkg.ParseConfig = ParseConfig;
|
|
64176
64183
|
getConfigFilePaths = function(clientBaseDir) {
|
|
@@ -191223,7 +191230,13 @@ $packages["github.com/supraio/client-daemon/pkg/videostream"] = (function() {
|
|
|
191223
191230
|
$panic(new $String("not implemented GetPort"));
|
|
191224
191231
|
};
|
|
191225
191232
|
UnavailableVideoStreamer.prototype.GetPort = function() { return this.$val.GetPort(); };
|
|
191226
|
-
|
|
191233
|
+
UnavailableVideoStreamer.ptr.prototype.GetHostname = function() {
|
|
191234
|
+
var u;
|
|
191235
|
+
u = this;
|
|
191236
|
+
$panic(new $String("not implemented GetHostname"));
|
|
191237
|
+
};
|
|
191238
|
+
UnavailableVideoStreamer.prototype.GetHostname = function() { return this.$val.GetHostname(); };
|
|
191239
|
+
ptrType.methods = [{prop: "IsAvailable", name: "IsAvailable", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "GetProtocol", name: "GetProtocol", pkg: "", typ: $funcType([], [Protocol], false)}, {prop: "GetPort", name: "GetPort", pkg: "", typ: $funcType([], [$Uint16], false)}, {prop: "GetHostname", name: "GetHostname", pkg: "", typ: $funcType([], [$String], false)}];
|
|
191227
191240
|
UnavailableVideoStreamer.init("", []);
|
|
191228
191241
|
$init = function() {
|
|
191229
191242
|
$pkg.$init = function() {};
|
|
@@ -191291,6 +191304,8 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191291
191304
|
protocol = 1;
|
|
191292
191305
|
} else if (_1 === ("HTTPMP4")) {
|
|
191293
191306
|
protocol = 2;
|
|
191307
|
+
} else if (_1 === ("RTP")) {
|
|
191308
|
+
protocol = 3;
|
|
191294
191309
|
} else {
|
|
191295
191310
|
protocol = 0;
|
|
191296
191311
|
}
|
|
@@ -191309,6 +191324,17 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191309
191324
|
return ((port << 16 >>> 16));
|
|
191310
191325
|
};
|
|
191311
191326
|
SOSVideoStreamer.prototype.GetPort = function() { return this.$val.GetPort(); };
|
|
191327
|
+
SOSVideoStreamer.ptr.prototype.GetHostname = function() {
|
|
191328
|
+
var hostname, hostnameValue, m;
|
|
191329
|
+
m = this;
|
|
191330
|
+
hostnameValue = $clone($clone($clone(m.sos, js.Value).Get("config"), js.Value).Get("streamHostname"), js.Value);
|
|
191331
|
+
hostname = "";
|
|
191332
|
+
if (!$clone(hostnameValue, js.Value).IsUndefined() && ($clone(hostnameValue, js.Value).Type() === 4)) {
|
|
191333
|
+
hostname = $clone(hostnameValue, js.Value).String();
|
|
191334
|
+
}
|
|
191335
|
+
return hostname;
|
|
191336
|
+
};
|
|
191337
|
+
SOSVideoStreamer.prototype.GetHostname = function() { return this.$val.GetHostname(); };
|
|
191312
191338
|
NewDecoder = function(header) {
|
|
191313
191339
|
var header, sos;
|
|
191314
191340
|
sos = $clone($clone(js.Global(), js.Value).Get("sos"), js.Value);
|
|
@@ -191324,7 +191350,7 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191324
191350
|
/* if (!m.started) { */ case 1:
|
|
191325
191351
|
protocol = m.getProtocol();
|
|
191326
191352
|
port = m.getPort();
|
|
191327
|
-
hostname = m.
|
|
191353
|
+
hostname = m.getStreamHostname(protocol);
|
|
191328
191354
|
urlProtocol = m.getURLProtocol(protocol);
|
|
191329
191355
|
sosProtocol = m.getSOSProtocol(protocol);
|
|
191330
191356
|
_r = fmt.Sprintf("%s://%s:%d", new sliceType([new $String(urlProtocol), new $String(hostname), new $Uint16(port)])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
@@ -191406,23 +191432,23 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191406
191432
|
return serverHostname;
|
|
191407
191433
|
};
|
|
191408
191434
|
SOSStreamDecoder.prototype.getServerHostname = function() { return this.$val.getServerHostname(); };
|
|
191409
|
-
SOSStreamDecoder.ptr.prototype.
|
|
191410
|
-
var _1, hostname,
|
|
191435
|
+
SOSStreamDecoder.ptr.prototype.getStreamHostname = function(protocol) {
|
|
191436
|
+
var _1, hostname, m, protocol, videoStreamer;
|
|
191411
191437
|
m = this;
|
|
191412
|
-
|
|
191413
|
-
hostname =
|
|
191438
|
+
videoStreamer = new SOSVideoStreamer.ptr($clone(m.sos, js.Value));
|
|
191439
|
+
hostname = videoStreamer.GetHostname();
|
|
191440
|
+
if (!(hostname === "")) {
|
|
191441
|
+
return hostname;
|
|
191442
|
+
}
|
|
191414
191443
|
_1 = protocol;
|
|
191415
|
-
if (_1 === (0)) {
|
|
191444
|
+
if ((_1 === (0)) || (_1 === (3))) {
|
|
191416
191445
|
hostname = "0.0.0.0";
|
|
191417
191446
|
} else if ((_1 === (1)) || (_1 === (2))) {
|
|
191418
191447
|
hostname = m.getServerHostname();
|
|
191419
191448
|
}
|
|
191420
|
-
if (!$clone(hostnameValue, js.Value).IsUndefined() && ($clone(hostnameValue, js.Value).Type() === 4)) {
|
|
191421
|
-
hostname = $clone(hostnameValue, js.Value).String();
|
|
191422
|
-
}
|
|
191423
191449
|
return hostname;
|
|
191424
191450
|
};
|
|
191425
|
-
SOSStreamDecoder.prototype.
|
|
191451
|
+
SOSStreamDecoder.prototype.getStreamHostname = function(protocol) { return this.$val.getStreamHostname(protocol); };
|
|
191426
191452
|
SOSStreamDecoder.ptr.prototype.getURLProtocol = function(protocol) {
|
|
191427
191453
|
var _1, m, protocol;
|
|
191428
191454
|
m = this;
|
|
@@ -191431,6 +191457,8 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191431
191457
|
return "udp";
|
|
191432
191458
|
} else if ((_1 === (1)) || (_1 === (2))) {
|
|
191433
191459
|
return "http";
|
|
191460
|
+
} else if (_1 === (3)) {
|
|
191461
|
+
return "rtp";
|
|
191434
191462
|
} else {
|
|
191435
191463
|
$panic(new $String("Unknown url protocol"));
|
|
191436
191464
|
}
|
|
@@ -191444,13 +191472,15 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/sosstream"] = (function(
|
|
|
191444
191472
|
return "UDP";
|
|
191445
191473
|
} else if ((_1 === (1)) || (_1 === (2))) {
|
|
191446
191474
|
return "HTTP";
|
|
191475
|
+
} else if (_1 === (3)) {
|
|
191476
|
+
return "RTP";
|
|
191447
191477
|
} else {
|
|
191448
191478
|
$panic(new $String("Unknown sos protocol"));
|
|
191449
191479
|
}
|
|
191450
191480
|
};
|
|
191451
191481
|
SOSStreamDecoder.prototype.getSOSProtocol = function(protocol) { return this.$val.getSOSProtocol(protocol); };
|
|
191452
|
-
ptrType$1.methods = [{prop: "IsAvailable", name: "IsAvailable", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "GetProtocol", name: "GetProtocol", pkg: "", typ: $funcType([], [videostream.Protocol], false)}, {prop: "GetPort", name: "GetPort", pkg: "", typ: $funcType([], [$Uint16], false)}];
|
|
191453
|
-
ptrType$2.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$1], [$error], false)}, {prop: "NextOutput", name: "NextOutput", pkg: "", typ: $funcType([general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}, {prop: "getProtocol", name: "getProtocol", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [videostream.Protocol], false)}, {prop: "getPort", name: "getPort", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [$Uint16], false)}, {prop: "getServerHostname", name: "getServerHostname", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [$String], false)}, {prop: "
|
|
191482
|
+
ptrType$1.methods = [{prop: "IsAvailable", name: "IsAvailable", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "GetProtocol", name: "GetProtocol", pkg: "", typ: $funcType([], [videostream.Protocol], false)}, {prop: "GetPort", name: "GetPort", pkg: "", typ: $funcType([], [$Uint16], false)}, {prop: "GetHostname", name: "GetHostname", pkg: "", typ: $funcType([], [$String], false)}];
|
|
191483
|
+
ptrType$2.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType$1], [$error], false)}, {prop: "NextOutput", name: "NextOutput", pkg: "", typ: $funcType([general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}, {prop: "getProtocol", name: "getProtocol", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [videostream.Protocol], false)}, {prop: "getPort", name: "getPort", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [$Uint16], false)}, {prop: "getServerHostname", name: "getServerHostname", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([], [$String], false)}, {prop: "getStreamHostname", name: "getStreamHostname", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([videostream.Protocol], [$String], false)}, {prop: "getURLProtocol", name: "getURLProtocol", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([videostream.Protocol], [$String], false)}, {prop: "getSOSProtocol", name: "getSOSProtocol", pkg: "github.com/supraio/client-daemon/pkg/decoder/sosstream", typ: $funcType([videostream.Protocol], [$String], false)}];
|
|
191454
191484
|
SOSVideoStreamer.init("github.com/supraio/client-daemon/pkg/decoder/sosstream", [{prop: "sos", name: "sos", embedded: false, exported: false, typ: js.Value, tag: ""}]);
|
|
191455
191485
|
SOSStreamDecoder.init("github.com/supraio/client-daemon/pkg/decoder/sosstream", [{prop: "sos", name: "sos", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "started", name: "started", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
191456
191486
|
$init = function() {
|
|
@@ -194032,7 +194062,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194032
194062
|
};
|
|
194033
194063
|
ScreenWindow.prototype.getFrameHealthCheckTimeout = function() { return this.$val.getFrameHealthCheckTimeout(); };
|
|
194034
194064
|
ScreenWindow.ptr.prototype.openScreen = function() {
|
|
194035
|
-
var {_arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, _tuple$1, conn, connect, data, err, frameCollector, maxPacketSize, msgData, screenSender, videoStreamer, w, $s, $r, $c} = $restore(this, {});
|
|
194065
|
+
var {_arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _tuple, _tuple$1, conn, connect, data, err, frameCollector, maxPacketSize, msgData, screenSender, streamHostname, videoStreamer, w, $s, $r, $c} = $restore(this, {});
|
|
194036
194066
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
194037
194067
|
err = [err];
|
|
194038
194068
|
screenSender = [screenSender];
|
|
@@ -194083,23 +194113,28 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194083
194113
|
_r$5 = videoStreamer.GetPort(); /* */ $s = 8; case 8: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
194084
194114
|
_arg$1 = (_r$5);
|
|
194085
194115
|
$r = $clone(binary.BigEndian, binary.bigEndian).PutUint16(_arg, _arg$1); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194086
|
-
_r$6 =
|
|
194087
|
-
|
|
194116
|
+
_r$6 = videoStreamer.GetHostname(); /* */ $s = 10; case 10: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
194117
|
+
streamHostname = _r$6;
|
|
194118
|
+
if (!(streamHostname === "")) {
|
|
194119
|
+
data = $appendSlice(data, (new sliceType$2($stringToBytes(streamHostname))));
|
|
194120
|
+
}
|
|
194121
|
+
_r$7 = screenSender[0].Send(5, data); /* */ $s = 11; case 11: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
194122
|
+
err[0] = _r$7;
|
|
194088
194123
|
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
194089
194124
|
$s = -1; return err[0];
|
|
194090
194125
|
}
|
|
194091
194126
|
/* } */ case 5:
|
|
194092
194127
|
$go((function(err, screenSender, w) { return function $b() {
|
|
194093
|
-
var {_r$10, _r$11, _r$
|
|
194128
|
+
var {_r$10, _r$11, _r$12, _r$8, _r$9, err$1, $s, $r, $c} = $restore(this, {});
|
|
194094
194129
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
194095
194130
|
/* while (true) { */ case 1:
|
|
194096
194131
|
/* if (!(!w[0].closed)) { break; } */ if(!(!w[0].closed)) { $s = 2; continue; }
|
|
194097
194132
|
$r = time.Sleep(new time.Duration(0, 1000000000)); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194098
|
-
_r$
|
|
194099
|
-
_r$
|
|
194100
|
-
/* */ if (_r$
|
|
194133
|
+
_r$8 = time.Now(); /* */ $s = 6; case 6: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
194134
|
+
_r$9 = $clone($clone(w[0].stats.GetLastFrameAt(), time.Time).Add(w[0].getFrameHealthCheckTimeout()), time.Time).Before($clone(_r$8, time.Time)); /* */ $s = 7; case 7: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
194135
|
+
/* */ if (_r$9) { $s = 4; continue; }
|
|
194101
194136
|
/* */ $s = 5; continue;
|
|
194102
|
-
/* if (_r$
|
|
194137
|
+
/* if (_r$9) { */ case 4:
|
|
194103
194138
|
if (!(w[0].pinger === ptrType$9.nil)) {
|
|
194104
194139
|
w[0].pinger.Close();
|
|
194105
194140
|
w[0].pinger = ptrType$9.nil;
|
|
@@ -194116,22 +194151,22 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194116
194151
|
w[0].renderingLoop.Stop();
|
|
194117
194152
|
w[0].renderingLoop = ptrType$5.nil;
|
|
194118
194153
|
}
|
|
194119
|
-
_r$
|
|
194120
|
-
err[0] = _r$
|
|
194154
|
+
_r$10 = screenSender[0].Send(3, new sliceType$2([])); /* */ $s = 8; case 8: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
194155
|
+
err[0] = _r$10;
|
|
194121
194156
|
/* */ if (!($interfaceIsEqual(err[0], $ifaceNil))) { $s = 9; continue; }
|
|
194122
194157
|
/* */ $s = 10; continue;
|
|
194123
194158
|
/* if (!($interfaceIsEqual(err[0], $ifaceNil))) { */ case 9:
|
|
194124
194159
|
$r = errs.Print("Could not send disconnect msg to screen", err[0]); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194125
194160
|
/* } */ case 10:
|
|
194126
|
-
_r$
|
|
194127
|
-
err[0] = _r$
|
|
194161
|
+
_r$11 = w[0].screenConn.Close(); /* */ $s = 12; case 12: if($c) { $c = false; _r$11 = _r$11.$blk(); } if (_r$11 && _r$11.$blk !== undefined) { break s; }
|
|
194162
|
+
err[0] = _r$11;
|
|
194128
194163
|
/* */ if (!($interfaceIsEqual(err[0], $ifaceNil))) { $s = 13; continue; }
|
|
194129
194164
|
/* */ $s = 14; continue;
|
|
194130
194165
|
/* if (!($interfaceIsEqual(err[0], $ifaceNil))) { */ case 13:
|
|
194131
194166
|
$r = errs.Print("Could not disconnect screen", err[0]); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
194132
194167
|
/* } */ case 14:
|
|
194133
|
-
_r$
|
|
194134
|
-
err$1 = _r$
|
|
194168
|
+
_r$12 = w[0].retriableOpen(-1, $methodVal(w[0], "openScreen")); /* */ $s = 16; case 16: if($c) { $c = false; _r$12 = _r$12.$blk(); } if (_r$12 && _r$12.$blk !== undefined) { break s; }
|
|
194169
|
+
err$1 = _r$12;
|
|
194135
194170
|
/* */ if (!($interfaceIsEqual(err$1, $ifaceNil))) { $s = 17; continue; }
|
|
194136
194171
|
/* */ $s = 18; continue;
|
|
194137
194172
|
/* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 17:
|
|
@@ -194142,10 +194177,10 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
194142
194177
|
$s = 1; continue;
|
|
194143
194178
|
case 2:
|
|
194144
194179
|
$s = -1; return;
|
|
194145
|
-
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r$10, _r$11, _r$
|
|
194180
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r$10, _r$11, _r$12, _r$8, _r$9, err$1, $s};return $f;
|
|
194146
194181
|
}; })(err, screenSender, w), []);
|
|
194147
194182
|
$s = -1; return $ifaceNil;
|
|
194148
|
-
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.openScreen, $c: true, $r, _arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, _tuple$1, conn, connect, data, err, frameCollector, maxPacketSize, msgData, screenSender, videoStreamer, w, $s};return $f;
|
|
194183
|
+
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.openScreen, $c: true, $r, _arg, _arg$1, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _tuple, _tuple$1, conn, connect, data, err, frameCollector, maxPacketSize, msgData, screenSender, streamHostname, videoStreamer, w, $s};return $f;
|
|
194149
194184
|
};
|
|
194150
194185
|
ScreenWindow.prototype.openScreen = function() { return this.$val.openScreen(); };
|
|
194151
194186
|
ScreenWindow.ptr.prototype.createScreenBuffer = function() {
|