@supraio/client-daemon-js 0.0.0-jvmaster.366-jvmaster.375 → 0.0.0-jvmaster.366-jvmaster.392
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 +2 -2
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/sdk.js +4 -4
- package/supra-client-daemon.js +155 -99
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +431 -245
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-screen.js
CHANGED
|
@@ -9061,7 +9061,7 @@ $packages["unicode/utf8"] = (function() {
|
|
|
9061
9061
|
return $pkg;
|
|
9062
9062
|
})();
|
|
9063
9063
|
$packages["bytes"] = (function() {
|
|
9064
|
-
var $pkg = {}, $init, errors, bytealg, io, unicode, utf8, Reader, asciiSet, Buffer, readOp, sliceType, sliceType$1, arrayType, ptrType, arrayType$1, ptrType$1, ptrType$2, asciiSpace, errNegativeRead, errUnreadByte, NewReader, IndexByte, Equal, Compare, explode, Count, Contains, ContainsAny, LastIndexByte, IndexRune, IndexAny, genSplit, Split, HasPrefix, HasSuffix, TrimLeftFunc, TrimRightFunc, TrimFunc, TrimPrefix, indexFunc, lastIndexFunc, makeASCIISet, containsRune, Trim, TrimLeft, trimLeftByte, trimLeftASCII, trimLeftUnicode, TrimRight, trimRightByte, trimRightASCII, trimRightUnicode, TrimSpace, EqualFold, Index, Cut, growSlice;
|
|
9064
|
+
var $pkg = {}, $init, errors, bytealg, io, unicode, utf8, Reader, asciiSet, Buffer, readOp, sliceType, sliceType$1, arrayType, ptrType, arrayType$1, ptrType$1, ptrType$2, asciiSpace, errNegativeRead, errUnreadByte, NewReader, IndexByte, Equal, Compare, explode, Count, Contains, ContainsAny, LastIndexByte, IndexRune, IndexAny, genSplit, Split, HasPrefix, HasSuffix, TrimLeftFunc, TrimRightFunc, TrimFunc, TrimPrefix, indexFunc, lastIndexFunc, makeASCIISet, containsRune, Trim, TrimLeft, trimLeftByte, trimLeftASCII, trimLeftUnicode, TrimRight, trimRightByte, trimRightASCII, trimRightUnicode, TrimSpace, EqualFold, Index, Cut, growSlice, NewBuffer;
|
|
9065
9065
|
errors = $packages["errors"];
|
|
9066
9066
|
bytealg = $packages["internal/bytealg"];
|
|
9067
9067
|
io = $packages["io"];
|
|
@@ -10595,6 +10595,11 @@ $packages["bytes"] = (function() {
|
|
|
10595
10595
|
return [line, err];
|
|
10596
10596
|
};
|
|
10597
10597
|
Buffer.prototype.ReadString = function(delim) { return this.$val.ReadString(delim); };
|
|
10598
|
+
NewBuffer = function(buf) {
|
|
10599
|
+
var buf;
|
|
10600
|
+
return new Buffer.ptr(buf, 0, 0);
|
|
10601
|
+
};
|
|
10602
|
+
$pkg.NewBuffer = NewBuffer;
|
|
10598
10603
|
ptrType$2.methods = [{prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Size", name: "Size", pkg: "", typ: $funcType([], [$Int64], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType], [$Int, $error], false)}, {prop: "ReadAt", name: "ReadAt", pkg: "", typ: $funcType([sliceType, $Int64], [$Int, $error], false)}, {prop: "ReadByte", name: "ReadByte", pkg: "", typ: $funcType([], [$Uint8, $error], false)}, {prop: "UnreadByte", name: "UnreadByte", pkg: "", typ: $funcType([], [$error], false)}, {prop: "ReadRune", name: "ReadRune", pkg: "", typ: $funcType([], [$Int32, $Int, $error], false)}, {prop: "UnreadRune", name: "UnreadRune", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Seek", name: "Seek", pkg: "", typ: $funcType([$Int64, $Int], [$Int64, $error], false)}, {prop: "WriteTo", name: "WriteTo", pkg: "", typ: $funcType([io.Writer], [$Int64, $error], false)}, {prop: "Reset", name: "Reset", pkg: "", typ: $funcType([sliceType], [], false)}];
|
|
10599
10604
|
ptrType.methods = [{prop: "contains", name: "contains", pkg: "bytes", typ: $funcType([$Uint8], [$Bool], false)}];
|
|
10600
10605
|
ptrType$1.methods = [{prop: "Bytes", name: "Bytes", pkg: "", typ: $funcType([], [sliceType], false)}, {prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "empty", name: "empty", pkg: "bytes", typ: $funcType([], [$Bool], false)}, {prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Cap", name: "Cap", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Truncate", name: "Truncate", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "Reset", name: "Reset", pkg: "", typ: $funcType([], [], false)}, {prop: "tryGrowByReslice", name: "tryGrowByReslice", pkg: "bytes", typ: $funcType([$Int], [$Int, $Bool], false)}, {prop: "grow", name: "grow", pkg: "bytes", typ: $funcType([$Int], [$Int], false)}, {prop: "Grow", name: "Grow", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType], [$Int, $error], false)}, {prop: "WriteString", name: "WriteString", pkg: "", typ: $funcType([$String], [$Int, $error], false)}, {prop: "ReadFrom", name: "ReadFrom", pkg: "", typ: $funcType([io.Reader], [$Int64, $error], false)}, {prop: "WriteTo", name: "WriteTo", pkg: "", typ: $funcType([io.Writer], [$Int64, $error], false)}, {prop: "WriteByte", name: "WriteByte", pkg: "", typ: $funcType([$Uint8], [$error], false)}, {prop: "WriteRune", name: "WriteRune", pkg: "", typ: $funcType([$Int32], [$Int, $error], false)}, {prop: "Read", name: "Read", pkg: "", typ: $funcType([sliceType], [$Int, $error], false)}, {prop: "Next", name: "Next", pkg: "", typ: $funcType([$Int], [sliceType], false)}, {prop: "ReadByte", name: "ReadByte", pkg: "", typ: $funcType([], [$Uint8, $error], false)}, {prop: "ReadRune", name: "ReadRune", pkg: "", typ: $funcType([], [$Int32, $Int, $error], false)}, {prop: "UnreadRune", name: "UnreadRune", pkg: "", typ: $funcType([], [$error], false)}, {prop: "UnreadByte", name: "UnreadByte", pkg: "", typ: $funcType([], [$error], false)}, {prop: "ReadBytes", name: "ReadBytes", pkg: "", typ: $funcType([$Uint8], [sliceType, $error], false)}, {prop: "readSlice", name: "readSlice", pkg: "bytes", typ: $funcType([$Uint8], [sliceType, $error], false)}, {prop: "ReadString", name: "ReadString", pkg: "", typ: $funcType([$Uint8], [$String, $error], false)}];
|
|
@@ -180471,13 +180476,13 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/general"] = (function()
|
|
|
180471
180476
|
$pkg.$init = $init;
|
|
180472
180477
|
return $pkg;
|
|
180473
180478
|
})();
|
|
180474
|
-
$packages["github.com/
|
|
180479
|
+
$packages["github.com/yapingcat/gomedia/go-codec"] = (function() {
|
|
180475
180480
|
var $pkg = {}, $init, bytes, binary, errors, fmt, BitStream, BitStreamWriter, sliceType, ptrType$8, ptrType$19, crc32table, FindStartCode, SplitFrame, H264NaluTypeWithoutStartCode, H265NaluTypeWithoutStartCode, IsH264IDRFrame, IsH264VCLNaluType, IsH265VCLNaluType, IsH265IDRFrame, CalcCrc32, NewBitStreamWriter;
|
|
180476
180481
|
bytes = $packages["bytes"];
|
|
180477
180482
|
binary = $packages["encoding/binary"];
|
|
180478
180483
|
errors = $packages["errors"];
|
|
180479
180484
|
fmt = $packages["fmt"];
|
|
180480
|
-
BitStream = $pkg.BitStream = $newType(0, $kindStruct, "codec.BitStream", true, "github.com/
|
|
180485
|
+
BitStream = $pkg.BitStream = $newType(0, $kindStruct, "codec.BitStream", true, "github.com/yapingcat/gomedia/go-codec", true, function(bits_, bytesOffset_, bitsOffset_, bitsmark_, bytemark_) {
|
|
180481
180486
|
this.$val = this;
|
|
180482
180487
|
if (arguments.length === 0) {
|
|
180483
180488
|
this.bits = sliceType.nil;
|
|
@@ -180493,7 +180498,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2/codec"] = (function() {
|
|
|
180493
180498
|
this.bitsmark = bitsmark_;
|
|
180494
180499
|
this.bytemark = bytemark_;
|
|
180495
180500
|
});
|
|
180496
|
-
BitStreamWriter = $pkg.BitStreamWriter = $newType(0, $kindStruct, "codec.BitStreamWriter", true, "github.com/
|
|
180501
|
+
BitStreamWriter = $pkg.BitStreamWriter = $newType(0, $kindStruct, "codec.BitStreamWriter", true, "github.com/yapingcat/gomedia/go-codec", true, function(bits_, byteoffset_, bitsoffset_, bitsmark_, bytemark_) {
|
|
180497
180502
|
this.$val = this;
|
|
180498
180503
|
if (arguments.length === 0) {
|
|
180499
180504
|
this.bits = sliceType.nil;
|
|
@@ -181047,9 +181052,9 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2/codec"] = (function() {
|
|
|
181047
181052
|
};
|
|
181048
181053
|
BitStreamWriter.prototype.Reset = function() { return this.$val.Reset(); };
|
|
181049
181054
|
ptrType$8.methods = [{prop: "Uint8", name: "Uint8", pkg: "", typ: $funcType([$Int], [$Uint8], false)}, {prop: "Uint16", name: "Uint16", pkg: "", typ: $funcType([$Int], [$Uint16], false)}, {prop: "Uint32", name: "Uint32", pkg: "", typ: $funcType([$Int], [$Uint32], false)}, {prop: "GetBytes", name: "GetBytes", pkg: "", typ: $funcType([$Int], [sliceType], false)}, {prop: "GetBits", name: "GetBits", pkg: "", typ: $funcType([$Int], [$Uint64], false)}, {prop: "GetBit", name: "GetBit", pkg: "", typ: $funcType([], [$Uint8], false)}, {prop: "SkipBits", name: "SkipBits", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "Markdot", name: "Markdot", pkg: "", typ: $funcType([], [], false)}, {prop: "DistanceFromMarkDot", name: "DistanceFromMarkDot", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "RemainBytes", name: "RemainBytes", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "RemainBits", name: "RemainBits", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Bits", name: "Bits", pkg: "", typ: $funcType([], [sliceType], false)}, {prop: "RemainData", name: "RemainData", pkg: "", typ: $funcType([], [sliceType], false)}, {prop: "ReadUE", name: "ReadUE", pkg: "", typ: $funcType([], [$Uint64], false)}, {prop: "ReadSE", name: "ReadSE", pkg: "", typ: $funcType([], [$Int64], false)}, {prop: "ByteOffset", name: "ByteOffset", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "UnRead", name: "UnRead", pkg: "", typ: $funcType([$Int], [], false)}, {prop: "NextBits", name: "NextBits", pkg: "", typ: $funcType([$Int], [$Uint64], false)}, {prop: "EOS", name: "EOS", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
181050
|
-
ptrType$19.methods = [{prop: "expandSpace", name: "expandSpace", pkg: "github.com/
|
|
181051
|
-
BitStream.init("github.com/
|
|
181052
|
-
BitStreamWriter.init("github.com/
|
|
181055
|
+
ptrType$19.methods = [{prop: "expandSpace", name: "expandSpace", pkg: "github.com/yapingcat/gomedia/go-codec", typ: $funcType([$Int], [], false)}, {prop: "ByteOffset", name: "ByteOffset", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "BitOffset", name: "BitOffset", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Markdot", name: "Markdot", pkg: "", typ: $funcType([], [], false)}, {prop: "DistanceFromMarkDot", name: "DistanceFromMarkDot", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "PutByte", name: "PutByte", pkg: "", typ: $funcType([$Uint8], [], false)}, {prop: "PutBytes", name: "PutBytes", pkg: "", typ: $funcType([sliceType], [], false)}, {prop: "PutRepetValue", name: "PutRepetValue", pkg: "", typ: $funcType([$Uint8, $Int], [], false)}, {prop: "PutUint8", name: "PutUint8", pkg: "", typ: $funcType([$Uint8, $Int], [], false)}, {prop: "PutUint16", name: "PutUint16", pkg: "", typ: $funcType([$Uint16, $Int], [], false)}, {prop: "PutUint32", name: "PutUint32", pkg: "", typ: $funcType([$Uint32, $Int], [], false)}, {prop: "PutUint64", name: "PutUint64", pkg: "", typ: $funcType([$Uint64, $Int], [], false)}, {prop: "SetByte", name: "SetByte", pkg: "", typ: $funcType([$Uint8, $Int], [], false)}, {prop: "SetUint16", name: "SetUint16", pkg: "", typ: $funcType([$Uint16, $Int], [], false)}, {prop: "Bits", name: "Bits", pkg: "", typ: $funcType([], [sliceType], false)}, {prop: "FillRemainData", name: "FillRemainData", pkg: "", typ: $funcType([$Uint8], [], false)}, {prop: "Reset", name: "Reset", pkg: "", typ: $funcType([], [], false)}];
|
|
181056
|
+
BitStream.init("github.com/yapingcat/gomedia/go-codec", [{prop: "bits", name: "bits", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "bytesOffset", name: "bytesOffset", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bitsOffset", name: "bitsOffset", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bitsmark", name: "bitsmark", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bytemark", name: "bytemark", embedded: false, exported: false, typ: $Int, tag: ""}]);
|
|
181057
|
+
BitStreamWriter.init("github.com/yapingcat/gomedia/go-codec", [{prop: "bits", name: "bits", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "byteoffset", name: "byteoffset", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bitsoffset", name: "bitsoffset", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bitsmark", name: "bitsmark", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "bytemark", name: "bytemark", embedded: false, exported: false, typ: $Int, tag: ""}]);
|
|
181053
181058
|
$init = function() {
|
|
181054
181059
|
$pkg.$init = function() {};
|
|
181055
181060
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -181064,16 +181069,16 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2/codec"] = (function() {
|
|
|
181064
181069
|
$pkg.$init = $init;
|
|
181065
181070
|
return $pkg;
|
|
181066
181071
|
})();
|
|
181067
|
-
$packages["github.com/
|
|
181072
|
+
$packages["github.com/yapingcat/gomedia/go-mpeg2"] = (function() {
|
|
181068
181073
|
var $pkg = {}, $init, binary, errors, fmt, codec, io, os, TS_STREAM_TYPE, TSPacket, Adaptation_field, PmtPair, Pat, StreamPair, Pmt, pes_stream, table_pmt, table_pat, TSMuxer, needmoreError, parserError, PesPacket, sliceType, sliceType$1, ptrType, sliceType$2, sliceType$3, ptrType$1, sliceType$4, ptrType$2, sliceType$5, ptrType$3, ptrType$4, ptrType$5, ptrType$7, ptrType$18, ptrType$20, ptrType$21, ptrType$22, ptrType$23, funcType, ptrType$25, ptrType$26, errNeedMore, errParser, NewPat, NewPmt, NewPESStream, NewTablePmt, NewTablePat, NewTSMuxer, findPESIDByStreamType, NewPesPacket;
|
|
181069
181074
|
binary = $packages["encoding/binary"];
|
|
181070
181075
|
errors = $packages["errors"];
|
|
181071
181076
|
fmt = $packages["fmt"];
|
|
181072
|
-
codec = $packages["github.com/
|
|
181077
|
+
codec = $packages["github.com/yapingcat/gomedia/go-codec"];
|
|
181073
181078
|
io = $packages["io"];
|
|
181074
181079
|
os = $packages["os"];
|
|
181075
|
-
TS_STREAM_TYPE = $pkg.TS_STREAM_TYPE = $newType(4, $kindInt, "mpeg2.TS_STREAM_TYPE", true, "github.com/
|
|
181076
|
-
TSPacket = $pkg.TSPacket = $newType(0, $kindStruct, "mpeg2.TSPacket", true, "github.com/
|
|
181080
|
+
TS_STREAM_TYPE = $pkg.TS_STREAM_TYPE = $newType(4, $kindInt, "mpeg2.TS_STREAM_TYPE", true, "github.com/yapingcat/gomedia/go-mpeg2", true, null);
|
|
181081
|
+
TSPacket = $pkg.TSPacket = $newType(0, $kindStruct, "mpeg2.TSPacket", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(Transport_error_indicator_, Payload_unit_start_indicator_, Transport_priority_, PID_, Transport_scrambling_control_, Adaptation_field_control_, Continuity_counter_, Field_, Payload_) {
|
|
181077
181082
|
this.$val = this;
|
|
181078
181083
|
if (arguments.length === 0) {
|
|
181079
181084
|
this.Transport_error_indicator = 0;
|
|
@@ -181097,7 +181102,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181097
181102
|
this.Field = Field_;
|
|
181098
181103
|
this.Payload = Payload_;
|
|
181099
181104
|
});
|
|
181100
|
-
Adaptation_field = $pkg.Adaptation_field = $newType(0, $kindStruct, "mpeg2.Adaptation_field", true, "github.com/
|
|
181105
|
+
Adaptation_field = $pkg.Adaptation_field = $newType(0, $kindStruct, "mpeg2.Adaptation_field", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(SingleStuffingByte_, Adaptation_field_length_, Discontinuity_indicator_, Random_access_indicator_, Elementary_stream_priority_indicator_, PCR_flag_, OPCR_flag_, Splicing_point_flag_, Transport_private_data_flag_, Adaptation_field_extension_flag_, Program_clock_reference_base_, Program_clock_reference_extension_, Original_program_clock_reference_base_, Original_program_clock_reference_extension_, Splice_countdown_, Transport_private_data_length_, Adaptation_field_extension_length_, Ltw_flag_, Piecewise_rate_flag_, Seamless_splice_flag_, Ltw_valid_flag_, Ltw_offset_, Piecewise_rate_, Splice_type_, DTS_next_AU_, Stuffing_byte_) {
|
|
181101
181106
|
this.$val = this;
|
|
181102
181107
|
if (arguments.length === 0) {
|
|
181103
181108
|
this.SingleStuffingByte = false;
|
|
@@ -181155,7 +181160,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181155
181160
|
this.DTS_next_AU = DTS_next_AU_;
|
|
181156
181161
|
this.Stuffing_byte = Stuffing_byte_;
|
|
181157
181162
|
});
|
|
181158
|
-
PmtPair = $pkg.PmtPair = $newType(0, $kindStruct, "mpeg2.PmtPair", true, "github.com/
|
|
181163
|
+
PmtPair = $pkg.PmtPair = $newType(0, $kindStruct, "mpeg2.PmtPair", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(Program_number_, PID_) {
|
|
181159
181164
|
this.$val = this;
|
|
181160
181165
|
if (arguments.length === 0) {
|
|
181161
181166
|
this.Program_number = 0;
|
|
@@ -181165,7 +181170,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181165
181170
|
this.Program_number = Program_number_;
|
|
181166
181171
|
this.PID = PID_;
|
|
181167
181172
|
});
|
|
181168
|
-
Pat = $pkg.Pat = $newType(0, $kindStruct, "mpeg2.Pat", true, "github.com/
|
|
181173
|
+
Pat = $pkg.Pat = $newType(0, $kindStruct, "mpeg2.Pat", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(Table_id_, Section_syntax_indicator_, Section_length_, Transport_stream_id_, Version_number_, Current_next_indicator_, Section_number_, Last_section_number_, Pmts_) {
|
|
181169
181174
|
this.$val = this;
|
|
181170
181175
|
if (arguments.length === 0) {
|
|
181171
181176
|
this.Table_id = 0;
|
|
@@ -181189,7 +181194,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181189
181194
|
this.Last_section_number = Last_section_number_;
|
|
181190
181195
|
this.Pmts = Pmts_;
|
|
181191
181196
|
});
|
|
181192
|
-
StreamPair = $pkg.StreamPair = $newType(0, $kindStruct, "mpeg2.StreamPair", true, "github.com/
|
|
181197
|
+
StreamPair = $pkg.StreamPair = $newType(0, $kindStruct, "mpeg2.StreamPair", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(StreamType_, Elementary_PID_, ES_Info_Length_) {
|
|
181193
181198
|
this.$val = this;
|
|
181194
181199
|
if (arguments.length === 0) {
|
|
181195
181200
|
this.StreamType = 0;
|
|
@@ -181201,7 +181206,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181201
181206
|
this.Elementary_PID = Elementary_PID_;
|
|
181202
181207
|
this.ES_Info_Length = ES_Info_Length_;
|
|
181203
181208
|
});
|
|
181204
|
-
Pmt = $pkg.Pmt = $newType(0, $kindStruct, "mpeg2.Pmt", true, "github.com/
|
|
181209
|
+
Pmt = $pkg.Pmt = $newType(0, $kindStruct, "mpeg2.Pmt", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(Table_id_, Section_syntax_indicator_, Section_length_, Program_number_, Version_number_, Current_next_indicator_, Section_number_, Last_section_number_, PCR_PID_, Program_info_length_, Streams_) {
|
|
181205
181210
|
this.$val = this;
|
|
181206
181211
|
if (arguments.length === 0) {
|
|
181207
181212
|
this.Table_id = 0;
|
|
@@ -181229,7 +181234,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181229
181234
|
this.Program_info_length = Program_info_length_;
|
|
181230
181235
|
this.Streams = Streams_;
|
|
181231
181236
|
});
|
|
181232
|
-
pes_stream = $pkg.pes_stream = $newType(0, $kindStruct, "mpeg2.pes_stream", true, "github.com/
|
|
181237
|
+
pes_stream = $pkg.pes_stream = $newType(0, $kindStruct, "mpeg2.pes_stream", true, "github.com/yapingcat/gomedia/go-mpeg2", false, function(pid_, cc_, streamtype_) {
|
|
181233
181238
|
this.$val = this;
|
|
181234
181239
|
if (arguments.length === 0) {
|
|
181235
181240
|
this.pid = 0;
|
|
@@ -181241,7 +181246,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181241
181246
|
this.cc = cc_;
|
|
181242
181247
|
this.streamtype = streamtype_;
|
|
181243
181248
|
});
|
|
181244
|
-
table_pmt = $pkg.table_pmt = $newType(0, $kindStruct, "mpeg2.table_pmt", true, "github.com/
|
|
181249
|
+
table_pmt = $pkg.table_pmt = $newType(0, $kindStruct, "mpeg2.table_pmt", true, "github.com/yapingcat/gomedia/go-mpeg2", false, function(pid_, cc_, pcr_pid_, version_number_, pm_, streams_) {
|
|
181245
181250
|
this.$val = this;
|
|
181246
181251
|
if (arguments.length === 0) {
|
|
181247
181252
|
this.pid = 0;
|
|
@@ -181259,7 +181264,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181259
181264
|
this.pm = pm_;
|
|
181260
181265
|
this.streams = streams_;
|
|
181261
181266
|
});
|
|
181262
|
-
table_pat = $pkg.table_pat = $newType(0, $kindStruct, "mpeg2.table_pat", true, "github.com/
|
|
181267
|
+
table_pat = $pkg.table_pat = $newType(0, $kindStruct, "mpeg2.table_pat", true, "github.com/yapingcat/gomedia/go-mpeg2", false, function(cc_, version_number_, pmts_) {
|
|
181263
181268
|
this.$val = this;
|
|
181264
181269
|
if (arguments.length === 0) {
|
|
181265
181270
|
this.cc = 0;
|
|
@@ -181271,7 +181276,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181271
181276
|
this.version_number = version_number_;
|
|
181272
181277
|
this.pmts = pmts_;
|
|
181273
181278
|
});
|
|
181274
|
-
TSMuxer = $pkg.TSMuxer = $newType(0, $kindStruct, "mpeg2.TSMuxer", true, "github.com/
|
|
181279
|
+
TSMuxer = $pkg.TSMuxer = $newType(0, $kindStruct, "mpeg2.TSMuxer", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(pat_, stream_pid_, pmt_pid_, pat_period_, OnPacket_) {
|
|
181275
181280
|
this.$val = this;
|
|
181276
181281
|
if (arguments.length === 0) {
|
|
181277
181282
|
this.pat = ptrType$3.nil;
|
|
@@ -181287,19 +181292,19 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
181287
181292
|
this.pat_period = pat_period_;
|
|
181288
181293
|
this.OnPacket = OnPacket_;
|
|
181289
181294
|
});
|
|
181290
|
-
needmoreError = $pkg.needmoreError = $newType(0, $kindStruct, "mpeg2.needmoreError", true, "github.com/
|
|
181295
|
+
needmoreError = $pkg.needmoreError = $newType(0, $kindStruct, "mpeg2.needmoreError", true, "github.com/yapingcat/gomedia/go-mpeg2", false, function() {
|
|
181291
181296
|
this.$val = this;
|
|
181292
181297
|
if (arguments.length === 0) {
|
|
181293
181298
|
return;
|
|
181294
181299
|
}
|
|
181295
181300
|
});
|
|
181296
|
-
parserError = $pkg.parserError = $newType(0, $kindStruct, "mpeg2.parserError", true, "github.com/
|
|
181301
|
+
parserError = $pkg.parserError = $newType(0, $kindStruct, "mpeg2.parserError", true, "github.com/yapingcat/gomedia/go-mpeg2", false, function() {
|
|
181297
181302
|
this.$val = this;
|
|
181298
181303
|
if (arguments.length === 0) {
|
|
181299
181304
|
return;
|
|
181300
181305
|
}
|
|
181301
181306
|
});
|
|
181302
|
-
PesPacket = $pkg.PesPacket = $newType(0, $kindStruct, "mpeg2.PesPacket", true, "github.com/
|
|
181307
|
+
PesPacket = $pkg.PesPacket = $newType(0, $kindStruct, "mpeg2.PesPacket", true, "github.com/yapingcat/gomedia/go-mpeg2", true, function(Stream_id_, PES_packet_length_, PES_scrambling_control_, PES_priority_, Data_alignment_indicator_, Copyright_, Original_or_copy_, PTS_DTS_flags_, ESCR_flag_, ES_rate_flag_, DSM_trick_mode_flag_, Additional_copy_info_flag_, PES_CRC_flag_, PES_extension_flag_, PES_header_data_length_, Pts_, Dts_, ESCR_base_, ESCR_extension_, ES_rate_, Trick_mode_control_, Trick_value_, Additional_copy_info_, Previous_PES_packet_CRC_, Pes_payload_) {
|
|
181303
181308
|
this.$val = this;
|
|
181304
181309
|
if (arguments.length === 0) {
|
|
181305
181310
|
this.Stream_id = 0;
|
|
@@ -182703,7 +182708,7 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
182703
182708
|
ptrType.methods = [{prop: "PrettyPrint", name: "PrettyPrint", pkg: "", typ: $funcType([ptrType$20], [], false)}, {prop: "Encode", name: "Encode", pkg: "", typ: $funcType([ptrType$21], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([ptrType$18], [$error], false)}];
|
|
182704
182709
|
ptrType$5.methods = [{prop: "PrettyPrint", name: "PrettyPrint", pkg: "", typ: $funcType([ptrType$20], [], false)}, {prop: "Encode", name: "Encode", pkg: "", typ: $funcType([ptrType$21], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([ptrType$18], [$error], false)}];
|
|
182705
182710
|
ptrType$7.methods = [{prop: "PrettyPrint", name: "PrettyPrint", pkg: "", typ: $funcType([ptrType$20], [], false)}, {prop: "Encode", name: "Encode", pkg: "", typ: $funcType([ptrType$21], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([ptrType$18], [$error], false)}];
|
|
182706
|
-
ptrType$23.methods = [{prop: "AddStream", name: "AddStream", pkg: "", typ: $funcType([TS_STREAM_TYPE], [$Uint16], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([$Uint16, sliceType, $Uint64, $Uint64], [$error], false)}, {prop: "writePat", name: "writePat", pkg: "github.com/
|
|
182711
|
+
ptrType$23.methods = [{prop: "AddStream", name: "AddStream", pkg: "", typ: $funcType([TS_STREAM_TYPE], [$Uint16], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([$Uint16, sliceType, $Uint64, $Uint64], [$error], false)}, {prop: "writePat", name: "writePat", pkg: "github.com/yapingcat/gomedia/go-mpeg2", typ: $funcType([ptrType$5], [], false)}, {prop: "writePmt", name: "writePmt", pkg: "github.com/yapingcat/gomedia/go-mpeg2", typ: $funcType([ptrType$7, ptrType$2], [], false)}, {prop: "writePES", name: "writePES", pkg: "github.com/yapingcat/gomedia/go-mpeg2", typ: $funcType([ptrType$1, ptrType$2, sliceType, $Uint64, $Uint64, $Bool, $Bool], [], false)}];
|
|
182707
182712
|
ptrType$25.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}, {prop: "NeedMore", name: "NeedMore", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "ParserError", name: "ParserError", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "StreamIdNotFound", name: "StreamIdNotFound", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
182708
182713
|
ptrType$26.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}, {prop: "NeedMore", name: "NeedMore", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "ParserError", name: "ParserError", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "StreamIdNotFound", name: "StreamIdNotFound", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
182709
182714
|
ptrType$4.methods = [{prop: "PrettyPrint", name: "PrettyPrint", pkg: "", typ: $funcType([ptrType$20], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([ptrType$18], [$error], false)}, {prop: "DecodeMpeg1", name: "DecodeMpeg1", pkg: "", typ: $funcType([ptrType$18], [$error], false)}, {prop: "Encode", name: "Encode", pkg: "", typ: $funcType([ptrType$21], [], false)}];
|
|
@@ -182713,10 +182718,10 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
182713
182718
|
Pat.init("", [{prop: "Table_id", name: "Table_id", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_syntax_indicator", name: "Section_syntax_indicator", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_length", name: "Section_length", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Transport_stream_id", name: "Transport_stream_id", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Version_number", name: "Version_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Current_next_indicator", name: "Current_next_indicator", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_number", name: "Section_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Last_section_number", name: "Last_section_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Pmts", name: "Pmts", embedded: false, exported: true, typ: sliceType$2, tag: ""}]);
|
|
182714
182719
|
StreamPair.init("", [{prop: "StreamType", name: "StreamType", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Elementary_PID", name: "Elementary_PID", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "ES_Info_Length", name: "ES_Info_Length", embedded: false, exported: true, typ: $Uint16, tag: ""}]);
|
|
182715
182720
|
Pmt.init("", [{prop: "Table_id", name: "Table_id", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_syntax_indicator", name: "Section_syntax_indicator", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_length", name: "Section_length", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Program_number", name: "Program_number", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Version_number", name: "Version_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Current_next_indicator", name: "Current_next_indicator", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Section_number", name: "Section_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Last_section_number", name: "Last_section_number", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PCR_PID", name: "PCR_PID", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Program_info_length", name: "Program_info_length", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Streams", name: "Streams", embedded: false, exported: true, typ: sliceType$3, tag: ""}]);
|
|
182716
|
-
pes_stream.init("github.com/
|
|
182717
|
-
table_pmt.init("github.com/
|
|
182718
|
-
table_pat.init("github.com/
|
|
182719
|
-
TSMuxer.init("github.com/
|
|
182721
|
+
pes_stream.init("github.com/yapingcat/gomedia/go-mpeg2", [{prop: "pid", name: "pid", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "cc", name: "cc", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "streamtype", name: "streamtype", embedded: false, exported: false, typ: TS_STREAM_TYPE, tag: ""}]);
|
|
182722
|
+
table_pmt.init("github.com/yapingcat/gomedia/go-mpeg2", [{prop: "pid", name: "pid", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "cc", name: "cc", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "pcr_pid", name: "pcr_pid", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "version_number", name: "version_number", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "pm", name: "pm", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "streams", name: "streams", embedded: false, exported: false, typ: sliceType$4, tag: ""}]);
|
|
182723
|
+
table_pat.init("github.com/yapingcat/gomedia/go-mpeg2", [{prop: "cc", name: "cc", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "version_number", name: "version_number", embedded: false, exported: false, typ: $Uint8, tag: ""}, {prop: "pmts", name: "pmts", embedded: false, exported: false, typ: sliceType$5, tag: ""}]);
|
|
182724
|
+
TSMuxer.init("github.com/yapingcat/gomedia/go-mpeg2", [{prop: "pat", name: "pat", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "stream_pid", name: "stream_pid", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "pmt_pid", name: "pmt_pid", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "pat_period", name: "pat_period", embedded: false, exported: false, typ: $Uint64, tag: ""}, {prop: "OnPacket", name: "OnPacket", embedded: false, exported: true, typ: funcType, tag: ""}]);
|
|
182720
182725
|
needmoreError.init("", []);
|
|
182721
182726
|
parserError.init("", []);
|
|
182722
182727
|
PesPacket.init("", [{prop: "Stream_id", name: "Stream_id", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PES_packet_length", name: "PES_packet_length", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "PES_scrambling_control", name: "PES_scrambling_control", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PES_priority", name: "PES_priority", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Data_alignment_indicator", name: "Data_alignment_indicator", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Copyright", name: "Copyright", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Original_or_copy", name: "Original_or_copy", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PTS_DTS_flags", name: "PTS_DTS_flags", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "ESCR_flag", name: "ESCR_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "ES_rate_flag", name: "ES_rate_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "DSM_trick_mode_flag", name: "DSM_trick_mode_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Additional_copy_info_flag", name: "Additional_copy_info_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PES_CRC_flag", name: "PES_CRC_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PES_extension_flag", name: "PES_extension_flag", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "PES_header_data_length", name: "PES_header_data_length", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Pts", name: "Pts", embedded: false, exported: true, typ: $Uint64, tag: ""}, {prop: "Dts", name: "Dts", embedded: false, exported: true, typ: $Uint64, tag: ""}, {prop: "ESCR_base", name: "ESCR_base", embedded: false, exported: true, typ: $Uint64, tag: ""}, {prop: "ESCR_extension", name: "ESCR_extension", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "ES_rate", name: "ES_rate", embedded: false, exported: true, typ: $Uint32, tag: ""}, {prop: "Trick_mode_control", name: "Trick_mode_control", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Trick_value", name: "Trick_value", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Additional_copy_info", name: "Additional_copy_info", embedded: false, exported: true, typ: $Uint8, tag: ""}, {prop: "Previous_PES_packet_CRC", name: "Previous_PES_packet_CRC", embedded: false, exported: true, typ: $Uint16, tag: ""}, {prop: "Pes_payload", name: "Pes_payload", embedded: false, exported: true, typ: sliceType, tag: ""}]);
|
|
@@ -182739,195 +182744,157 @@ $packages["github.com/supraio/client-daemon/pkg/mpeg2"] = (function() {
|
|
|
182739
182744
|
return $pkg;
|
|
182740
182745
|
})();
|
|
182741
182746
|
$packages["github.com/supraio/client-daemon/pkg/decoder/android"] = (function() {
|
|
182742
|
-
var $pkg = {}, $init,
|
|
182747
|
+
var $pkg = {}, $init, bytes, base64, general, errs, jshelper, mpeg2, js, time, AndroidFramesDecoder, sliceType, funcType, arrayType, ptrType, ptrType$1, ptrType$2, sliceType$1, ptrType$3, ptrType$4, IsAvailable, NewDecoder;
|
|
182748
|
+
bytes = $packages["bytes"];
|
|
182743
182749
|
base64 = $packages["encoding/base64"];
|
|
182744
|
-
fmt = $packages["fmt"];
|
|
182745
182750
|
general = $packages["github.com/supraio/client-daemon/pkg/decoder/general"];
|
|
182746
182751
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
182747
182752
|
jshelper = $packages["github.com/supraio/client-daemon/pkg/jshelper"];
|
|
182748
|
-
mpeg2 = $packages["github.com/
|
|
182753
|
+
mpeg2 = $packages["github.com/yapingcat/gomedia/go-mpeg2"];
|
|
182749
182754
|
js = $packages["syscall/js"];
|
|
182750
182755
|
time = $packages["time"];
|
|
182751
|
-
|
|
182756
|
+
AndroidFramesDecoder = $pkg.AndroidFramesDecoder = $newType(0, $kindStruct, "android.AndroidFramesDecoder", true, "github.com/supraio/client-daemon/pkg/decoder/android", true, function(androidSupraMediaBridge_, started_, sos_, tsMuxer_, videoStreamID_, firstFrameTimestamp_, muxedFrameData_) {
|
|
182752
182757
|
this.$val = this;
|
|
182753
182758
|
if (arguments.length === 0) {
|
|
182754
|
-
this.
|
|
182759
|
+
this.androidSupraMediaBridge = new js.Value.ptr(null, false, arrayType.zero());
|
|
182755
182760
|
this.started = false;
|
|
182756
182761
|
this.sos = new js.Value.ptr(null, false, arrayType.zero());
|
|
182757
|
-
this.frameNumber = new $Uint64(0, 0);
|
|
182758
182762
|
this.tsMuxer = ptrType.nil;
|
|
182759
182763
|
this.videoStreamID = 0;
|
|
182760
|
-
this.firstFrameTimestamp = ptrType$1.nil;
|
|
182764
|
+
this.firstFrameTimestamp = new time.Time.ptr(new $Uint64(0, 0), new $Int64(0, 0), ptrType$1.nil);
|
|
182765
|
+
this.muxedFrameData = ptrType$2.nil;
|
|
182761
182766
|
return;
|
|
182762
182767
|
}
|
|
182763
|
-
this.
|
|
182768
|
+
this.androidSupraMediaBridge = androidSupraMediaBridge_;
|
|
182764
182769
|
this.started = started_;
|
|
182765
182770
|
this.sos = sos_;
|
|
182766
|
-
this.frameNumber = frameNumber_;
|
|
182767
182771
|
this.tsMuxer = tsMuxer_;
|
|
182768
182772
|
this.videoStreamID = videoStreamID_;
|
|
182769
182773
|
this.firstFrameTimestamp = firstFrameTimestamp_;
|
|
182774
|
+
this.muxedFrameData = muxedFrameData_;
|
|
182770
182775
|
});
|
|
182771
|
-
sliceType = $sliceType($
|
|
182776
|
+
sliceType = $sliceType($Uint8);
|
|
182772
182777
|
funcType = $funcType([], [], false);
|
|
182773
182778
|
arrayType = $arrayType(funcType, 0);
|
|
182774
182779
|
ptrType = $ptrType(mpeg2.TSMuxer);
|
|
182775
|
-
ptrType$1 = $ptrType(time.
|
|
182776
|
-
ptrType$2 = $ptrType(
|
|
182777
|
-
sliceType$1 = $sliceType($
|
|
182778
|
-
ptrType$3 = $ptrType(
|
|
182779
|
-
|
|
182780
|
-
var {_r, $s, $r, $c} = $restore(this, {});
|
|
182781
|
-
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
182782
|
-
/* */ if ($clone($clone(js.Global(), js.Value).Get("AndroidSupraMedia"), js.Value).IsUndefined()) { $s = 1; continue; }
|
|
182783
|
-
/* */ $s = 2; continue;
|
|
182784
|
-
/* if ($clone($clone(js.Global(), js.Value).Get("AndroidSupraMedia"), js.Value).IsUndefined()) { */ case 1:
|
|
182785
|
-
$r = initFakeBridge(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182786
|
-
_r = fmt.Println(new sliceType([new $String("ASDF Initializing fake done"), new $String("isFakeBridge"), new $Bool(isFakeBridge)])); /* */ $s = 4; case 4: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
182787
|
-
_r;
|
|
182788
|
-
/* } */ case 2:
|
|
182789
|
-
$s = -1; return;
|
|
182790
|
-
/* */ } return; } var $f = {$blk: init, $c: true, $r, _r, $s};return $f;
|
|
182791
|
-
};
|
|
182792
|
-
initFakeBridge = function() {
|
|
182793
|
-
var {_r, _r$1, fakeBridge, onFrame, serveData, $s, $r, $c} = $restore(this, {});
|
|
182794
|
-
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
182795
|
-
isFakeBridge = true;
|
|
182796
|
-
_r = fmt.Println(new sliceType([new $String("ASDF Initializing fake"), new $String("AndroidSupraMedia"), new $String("bridge"), new $String("isFakeBridge"), new $Bool(isFakeBridge)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
182797
|
-
_r;
|
|
182798
|
-
_r$1 = $clone($clone(js.Global(), js.Value).Get("Object"), js.Value).New(sliceType.nil); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
182799
|
-
fakeBridge = $clone(_r$1, js.Value);
|
|
182800
|
-
$clone(js.Global(), js.Value).Set("AndroidSupraMedia", new fakeBridge.constructor.elem(fakeBridge));
|
|
182801
|
-
serveData = $clone(js.FuncOf((function(this$1, args) {
|
|
182802
|
-
var args, this$1;
|
|
182803
|
-
return $ifaceNil;
|
|
182804
|
-
})), js.Func);
|
|
182805
|
-
$clone(fakeBridge, js.Value).Set("serveUdpData", new serveData.constructor.elem(serveData));
|
|
182806
|
-
onFrame = $clone(js.FuncOf((function(this$1, args) {
|
|
182807
|
-
var args, this$1;
|
|
182808
|
-
return new $Int(666);
|
|
182809
|
-
})), js.Func);
|
|
182810
|
-
$clone(fakeBridge, js.Value).Set("onFrame", new onFrame.constructor.elem(onFrame));
|
|
182811
|
-
$s = -1; return;
|
|
182812
|
-
/* */ } return; } var $f = {$blk: initFakeBridge, $c: true, $r, _r, _r$1, fakeBridge, onFrame, serveData, $s};return $f;
|
|
182813
|
-
};
|
|
182780
|
+
ptrType$1 = $ptrType(time.Location);
|
|
182781
|
+
ptrType$2 = $ptrType(bytes.Buffer);
|
|
182782
|
+
sliceType$1 = $sliceType($emptyInterface);
|
|
182783
|
+
ptrType$3 = $ptrType(js.Value);
|
|
182784
|
+
ptrType$4 = $ptrType(AndroidFramesDecoder);
|
|
182814
182785
|
IsAvailable = function() {
|
|
182815
|
-
|
|
182786
|
+
var androidSupraMediaBridge, isAndroidSupraMediaBridgeAvailable, isStreamingEnabled, sos;
|
|
182787
|
+
androidSupraMediaBridge = $clone($clone(js.Global(), js.Value).Get("AndroidSupraMedia"), js.Value);
|
|
182788
|
+
isAndroidSupraMediaBridgeAvailable = !$clone(androidSupraMediaBridge, js.Value).IsNull() && !$clone(androidSupraMediaBridge, js.Value).IsUndefined();
|
|
182789
|
+
sos = $clone($clone(js.Global(), js.Value).Get("sos"), js.Value);
|
|
182790
|
+
isStreamingEnabled = !$clone(sos, js.Value).IsUndefined() && $clone($clone($clone(sos, js.Value).Get("config"), js.Value).Get("stream"), js.Value).Truthy();
|
|
182791
|
+
return isAndroidSupraMediaBridgeAvailable && !isStreamingEnabled;
|
|
182816
182792
|
};
|
|
182817
182793
|
$pkg.IsAvailable = IsAvailable;
|
|
182818
182794
|
NewDecoder = function(header) {
|
|
182819
|
-
var
|
|
182795
|
+
var androidSupraMediaBridge, header, muxedFrameData, sos, tsMuxer, videoStreamID;
|
|
182820
182796
|
sos = $clone($clone(js.Global(), js.Value).Get("sos"), js.Value);
|
|
182821
|
-
|
|
182797
|
+
muxedFrameData = bytes.NewBuffer($makeSlice(sliceType, 0));
|
|
182798
|
+
androidSupraMediaBridge = $clone($clone(js.Global(), js.Value).Get("AndroidSupraMedia"), js.Value);
|
|
182822
182799
|
tsMuxer = mpeg2.NewTSMuxer();
|
|
182823
182800
|
tsMuxer.OnPacket = (function $b(packet) {
|
|
182824
|
-
var {_r,
|
|
182801
|
+
var {_r, packet, $s, $r, $c} = $restore(this, {packet});
|
|
182825
182802
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
182826
|
-
|
|
182827
|
-
_r = $clone($clone(js.Global(), js.Value).Get("AndroidSupraMedia"), js.Value).Call("serveUdpData", new sliceType([new $String(encodedPacket), new $Int(4444)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
182803
|
+
_r = muxedFrameData.Write(packet); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
182828
182804
|
_r;
|
|
182829
182805
|
$s = -1; return;
|
|
182830
|
-
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r,
|
|
182806
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r, packet, $s};return $f;
|
|
182831
182807
|
});
|
|
182832
182808
|
videoStreamID = tsMuxer.AddStream(27);
|
|
182833
|
-
return [new
|
|
182809
|
+
return [new AndroidFramesDecoder.ptr($clone(androidSupraMediaBridge, js.Value), false, $clone(sos, js.Value), tsMuxer, videoStreamID, new time.Time.ptr(new $Uint64(0, 0), new $Int64(0, 0), ptrType$1.nil), muxedFrameData), $ifaceNil];
|
|
182834
182810
|
};
|
|
182835
182811
|
$pkg.NewDecoder = NewDecoder;
|
|
182836
|
-
|
|
182837
|
-
var {$24r, $24r$1, _arg, _arg$1,
|
|
182812
|
+
AndroidFramesDecoder.ptr.prototype.Write = function(nal, timestamp) {
|
|
182813
|
+
var {$24r, $24r$1, _arg, _arg$1, _r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _tuple, _tuple$1, ad, encodedPackets, err, err$1, height, nal, options, playStream, preparePromise, streamUrl, timestamp, timestampMillisSinceFirstFrame, width, x, $s, $r, $c} = $restore(this, {nal, timestamp});
|
|
182838
182814
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
182839
|
-
timestamp = [timestamp];
|
|
182840
182815
|
ad = this;
|
|
182841
|
-
|
|
182842
|
-
|
|
182843
|
-
|
|
182844
|
-
|
|
182845
|
-
|
|
182846
|
-
|
|
182847
|
-
$r = $clone(_r$2, js.Value).Set("innerText", _arg); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182848
|
-
/* */ if (!ad.started) { $s = 6; continue; }
|
|
182849
|
-
/* */ $s = 7; continue;
|
|
182850
|
-
/* if (!ad.started) { */ case 6:
|
|
182851
|
-
ad.firstFrameTimestamp = timestamp[0];
|
|
182852
|
-
_r$4 = fmt.Println(new sliceType([new $String("ASDF starting playback, first frame timestamp millis"), $clone(ad.firstFrameTimestamp, time.Time).UnixMilli()])); /* */ $s = 8; case 8: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
182853
|
-
_r$4;
|
|
182854
|
-
_r$5 = fmt.Sprintf("udp://localhost:%d", new sliceType([new $Int(4444)])); /* */ $s = 9; case 9: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
182855
|
-
url = _r$5;
|
|
182816
|
+
/* */ if (!ad.started) { $s = 1; continue; }
|
|
182817
|
+
/* */ $s = 2; continue;
|
|
182818
|
+
/* if (!ad.started) { */ case 1:
|
|
182819
|
+
time.Time.copy(ad.firstFrameTimestamp, timestamp);
|
|
182820
|
+
_r = $clone(ad.androidSupraMediaBridge, js.Value).Call("getStreamUrl", sliceType$1.nil); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
182821
|
+
streamUrl = $clone(_r, js.Value);
|
|
182856
182822
|
width = $clone($clone($clone(js.Global(), js.Value).Get("screen"), js.Value).Get("width"), js.Value).Int();
|
|
182857
182823
|
height = $clone($clone($clone(js.Global(), js.Value).Get("screen"), js.Value).Get("height"), js.Value).Int();
|
|
182858
|
-
_r$
|
|
182859
|
-
options = $clone(_r$
|
|
182824
|
+
_r$1 = $clone($clone(js.Global(), js.Value).Get("Object"), js.Value).New(sliceType$1.nil); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
182825
|
+
options = $clone(_r$1, js.Value);
|
|
182860
182826
|
$clone(options, js.Value).Set("background", new $Bool(true));
|
|
182861
182827
|
$clone(options, js.Value).Set("protocol", new $String("UDP"));
|
|
182862
|
-
_r$
|
|
182863
|
-
preparePromise = $clone(_r$
|
|
182864
|
-
_r$
|
|
182865
|
-
_tuple = _r$
|
|
182828
|
+
_r$2 = $clone($clone(ad.sos, js.Value).Get("stream"), js.Value).Call("prepare", new sliceType$1([new streamUrl.constructor.elem(streamUrl), new $Int(0), new $Int(0), new $Int(width), new $Int(height), new options.constructor.elem(options)])); /* */ $s = 5; case 5: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
182829
|
+
preparePromise = $clone(_r$2, js.Value);
|
|
182830
|
+
_r$3 = jshelper.Await($clone(preparePromise, js.Value)); /* */ $s = 6; case 6: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
182831
|
+
_tuple = _r$3;
|
|
182866
182832
|
err = _tuple[1];
|
|
182867
|
-
/* */ if (!(err === ptrType$
|
|
182868
|
-
/* */ $s =
|
|
182869
|
-
/* if (!(err === ptrType$
|
|
182870
|
-
_r$
|
|
182871
|
-
_r$
|
|
182872
|
-
_arg
|
|
182873
|
-
_r$
|
|
182874
|
-
$24r = _r$
|
|
182875
|
-
$s =
|
|
182876
|
-
/* } */ case
|
|
182877
|
-
_r$
|
|
182878
|
-
playStream = $clone(_r$
|
|
182879
|
-
_r$
|
|
182880
|
-
_tuple$1 = _r$
|
|
182833
|
+
/* */ if (!(err === ptrType$3.nil)) { $s = 7; continue; }
|
|
182834
|
+
/* */ $s = 8; continue;
|
|
182835
|
+
/* if (!(err === ptrType$3.nil)) { */ case 7:
|
|
182836
|
+
_r$4 = jshelper.GetError(err); /* */ $s = 9; case 9: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
182837
|
+
_r$5 = _r$4.Error(); /* */ $s = 10; case 10: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
182838
|
+
_arg = new $String(_r$5);
|
|
182839
|
+
_r$6 = errs.Errorf("Failed to prepare sos video stream: %s", new sliceType$1([_arg])); /* */ $s = 11; case 11: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
182840
|
+
$24r = _r$6;
|
|
182841
|
+
$s = 12; case 12: return $24r;
|
|
182842
|
+
/* } */ case 8:
|
|
182843
|
+
_r$7 = $clone($clone(ad.sos, js.Value).Get("stream"), js.Value).Call("play", new sliceType$1([new streamUrl.constructor.elem(streamUrl), new $Int(0), new $Int(0), new $Int(width), new $Int(height), new options.constructor.elem(options)])); /* */ $s = 13; case 13: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
182844
|
+
playStream = $clone(_r$7, js.Value);
|
|
182845
|
+
_r$8 = jshelper.Await($clone(playStream, js.Value)); /* */ $s = 14; case 14: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
182846
|
+
_tuple$1 = _r$8;
|
|
182881
182847
|
err = _tuple$1[1];
|
|
182882
|
-
/* */ if (!(err === ptrType$
|
|
182883
|
-
/* */ $s =
|
|
182884
|
-
/* if (!(err === ptrType$
|
|
182885
|
-
_r$
|
|
182886
|
-
_r$
|
|
182887
|
-
_arg$
|
|
182888
|
-
_r$
|
|
182889
|
-
$24r$1 = _r$
|
|
182890
|
-
$s =
|
|
182891
|
-
/* } */ case
|
|
182848
|
+
/* */ if (!(err === ptrType$3.nil)) { $s = 15; continue; }
|
|
182849
|
+
/* */ $s = 16; continue;
|
|
182850
|
+
/* if (!(err === ptrType$3.nil)) { */ case 15:
|
|
182851
|
+
_r$9 = jshelper.GetError(err); /* */ $s = 17; case 17: if($c) { $c = false; _r$9 = _r$9.$blk(); } if (_r$9 && _r$9.$blk !== undefined) { break s; }
|
|
182852
|
+
_r$10 = _r$9.Error(); /* */ $s = 18; case 18: if($c) { $c = false; _r$10 = _r$10.$blk(); } if (_r$10 && _r$10.$blk !== undefined) { break s; }
|
|
182853
|
+
_arg$1 = new $String(_r$10);
|
|
182854
|
+
_r$11 = errs.Errorf("Failed to play sos video stream: %s", new sliceType$1([_arg$1])); /* */ $s = 19; case 19: if($c) { $c = false; _r$11 = _r$11.$blk(); } if (_r$11 && _r$11.$blk !== undefined) { break s; }
|
|
182855
|
+
$24r$1 = _r$11;
|
|
182856
|
+
$s = 20; case 20: return $24r$1;
|
|
182857
|
+
/* } */ case 16:
|
|
182892
182858
|
ad.started = true;
|
|
182893
|
-
/* } */ case
|
|
182894
|
-
|
|
182895
|
-
|
|
182896
|
-
|
|
182859
|
+
/* } */ case 2:
|
|
182860
|
+
timestampMillisSinceFirstFrame = ((x = $clone(timestamp, time.Time).Sub($clone(ad.firstFrameTimestamp, time.Time)).Milliseconds(), new $Uint64(x.$high, x.$low)));
|
|
182861
|
+
ad.muxedFrameData.Reset();
|
|
182862
|
+
_r$12 = ad.tsMuxer.Write(ad.videoStreamID, nal, timestampMillisSinceFirstFrame, timestampMillisSinceFirstFrame); /* */ $s = 21; case 21: if($c) { $c = false; _r$12 = _r$12.$blk(); } if (_r$12 && _r$12.$blk !== undefined) { break s; }
|
|
182863
|
+
err$1 = _r$12;
|
|
182897
182864
|
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
182898
182865
|
$s = -1; return err$1;
|
|
182899
182866
|
}
|
|
182900
|
-
|
|
182867
|
+
encodedPackets = base64.StdEncoding.EncodeToString(ad.muxedFrameData.Bytes());
|
|
182868
|
+
_r$13 = $clone(ad.androidSupraMediaBridge, js.Value).Call("stream", new sliceType$1([new $String(encodedPackets)])); /* */ $s = 22; case 22: if($c) { $c = false; _r$13 = _r$13.$blk(); } if (_r$13 && _r$13.$blk !== undefined) { break s; }
|
|
182869
|
+
_r$13;
|
|
182901
182870
|
$s = -1; return $ifaceNil;
|
|
182902
|
-
/* */ } return; } var $f = {$blk:
|
|
182871
|
+
/* */ } return; } var $f = {$blk: AndroidFramesDecoder.ptr.prototype.Write, $c: true, $r, $24r, $24r$1, _arg, _arg$1, _r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _tuple, _tuple$1, ad, encodedPackets, err, err$1, height, nal, options, playStream, preparePromise, streamUrl, timestamp, timestampMillisSinceFirstFrame, width, x, $s};return $f;
|
|
182903
182872
|
};
|
|
182904
|
-
|
|
182905
|
-
|
|
182873
|
+
AndroidFramesDecoder.prototype.Write = function(nal, timestamp) { return this.$val.Write(nal, timestamp); };
|
|
182874
|
+
AndroidFramesDecoder.ptr.prototype.NextOutput = function(outputBuffer) {
|
|
182906
182875
|
var ad, outputBuffer;
|
|
182907
182876
|
ad = this;
|
|
182908
182877
|
return $ifaceNil;
|
|
182909
182878
|
};
|
|
182910
|
-
|
|
182911
|
-
|
|
182879
|
+
AndroidFramesDecoder.prototype.NextOutput = function(outputBuffer) { return this.$val.NextOutput(outputBuffer); };
|
|
182880
|
+
AndroidFramesDecoder.ptr.prototype.Release = function(outputBuffer) {
|
|
182912
182881
|
var ad, outputBuffer;
|
|
182913
182882
|
ad = this;
|
|
182914
182883
|
};
|
|
182915
|
-
|
|
182916
|
-
ptrType$
|
|
182917
|
-
|
|
182884
|
+
AndroidFramesDecoder.prototype.Release = function(outputBuffer) { return this.$val.Release(outputBuffer); };
|
|
182885
|
+
ptrType$4.methods = [{prop: "Write", name: "Write", pkg: "", typ: $funcType([sliceType, time.Time], [$error], false)}, {prop: "NextOutput", name: "NextOutput", pkg: "", typ: $funcType([general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}];
|
|
182886
|
+
AndroidFramesDecoder.init("github.com/supraio/client-daemon/pkg/decoder/android", [{prop: "androidSupraMediaBridge", name: "androidSupraMediaBridge", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "started", name: "started", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "sos", name: "sos", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "tsMuxer", name: "tsMuxer", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "videoStreamID", name: "videoStreamID", embedded: false, exported: false, typ: $Uint16, tag: ""}, {prop: "firstFrameTimestamp", name: "firstFrameTimestamp", embedded: false, exported: false, typ: time.Time, tag: ""}, {prop: "muxedFrameData", name: "muxedFrameData", embedded: false, exported: false, typ: ptrType$2, tag: ""}]);
|
|
182918
182887
|
$init = function() {
|
|
182919
182888
|
$pkg.$init = function() {};
|
|
182920
182889
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
182921
|
-
$r =
|
|
182922
|
-
$r =
|
|
182890
|
+
$r = bytes.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182891
|
+
$r = base64.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182923
182892
|
$r = general.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182924
182893
|
$r = errs.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182925
182894
|
$r = jshelper.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182926
182895
|
$r = mpeg2.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182927
182896
|
$r = js.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182928
182897
|
$r = time.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182929
|
-
isFakeBridge = false;
|
|
182930
|
-
$r = init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
182931
182898
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
182932
182899
|
};
|
|
182933
182900
|
$pkg.$init = $init;
|
|
@@ -183328,17 +183295,67 @@ $packages["golang.org/x/mobile/event/size"] = (function() {
|
|
|
183328
183295
|
$pkg.$init = $init;
|
|
183329
183296
|
return $pkg;
|
|
183330
183297
|
})();
|
|
183331
|
-
$packages["golang.org/x/
|
|
183332
|
-
var $pkg = {}, $init,
|
|
183298
|
+
$packages["golang.org/x/mobile/event/touch"] = (function() {
|
|
183299
|
+
var $pkg = {}, $init, fmt, Event, Sequence, Type, sliceType;
|
|
183300
|
+
fmt = $packages["fmt"];
|
|
183301
|
+
Event = $pkg.Event = $newType(0, $kindStruct, "touch.Event", true, "golang.org/x/mobile/event/touch", true, function(X_, Y_, Sequence_, Type_) {
|
|
183302
|
+
this.$val = this;
|
|
183303
|
+
if (arguments.length === 0) {
|
|
183304
|
+
this.X = 0;
|
|
183305
|
+
this.Y = 0;
|
|
183306
|
+
this.Sequence = new Sequence(0, 0);
|
|
183307
|
+
this.Type = 0;
|
|
183308
|
+
return;
|
|
183309
|
+
}
|
|
183310
|
+
this.X = X_;
|
|
183311
|
+
this.Y = Y_;
|
|
183312
|
+
this.Sequence = Sequence_;
|
|
183313
|
+
this.Type = Type_;
|
|
183314
|
+
});
|
|
183315
|
+
Sequence = $pkg.Sequence = $newType(8, $kindInt64, "touch.Sequence", true, "golang.org/x/mobile/event/touch", true, null);
|
|
183316
|
+
Type = $pkg.Type = $newType(1, $kindUint8, "touch.Type", true, "golang.org/x/mobile/event/touch", true, null);
|
|
183317
|
+
sliceType = $sliceType($emptyInterface);
|
|
183318
|
+
Type.prototype.String = function() {
|
|
183319
|
+
var {$24r, _1, _r, t, $s, $r, $c} = $restore(this, {});
|
|
183320
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
183321
|
+
t = this.$val;
|
|
183322
|
+
_1 = t;
|
|
183323
|
+
if (_1 === (0)) {
|
|
183324
|
+
$s = -1; return "begin";
|
|
183325
|
+
} else if (_1 === (1)) {
|
|
183326
|
+
$s = -1; return "move";
|
|
183327
|
+
} else if (_1 === (2)) {
|
|
183328
|
+
$s = -1; return "end";
|
|
183329
|
+
}
|
|
183330
|
+
_r = fmt.Sprintf("touch.Type(%d)", new sliceType([new Type(t)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
183331
|
+
$24r = _r;
|
|
183332
|
+
$s = 2; case 2: return $24r;
|
|
183333
|
+
/* */ } return; } var $f = {$blk: Type.prototype.String, $c: true, $r, $24r, _1, _r, t, $s};return $f;
|
|
183334
|
+
};
|
|
183335
|
+
$ptrType(Type).prototype.String = function() { return new Type(this.$get()).String(); };
|
|
183336
|
+
Type.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
183337
|
+
Event.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Sequence", name: "Sequence", embedded: false, exported: true, typ: Sequence, tag: ""}, {prop: "Type", name: "Type", embedded: false, exported: true, typ: Type, tag: ""}]);
|
|
183338
|
+
$init = function() {
|
|
183339
|
+
$pkg.$init = function() {};
|
|
183340
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
183341
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183342
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
183343
|
+
};
|
|
183344
|
+
$pkg.$init = $init;
|
|
183345
|
+
return $pkg;
|
|
183346
|
+
})();
|
|
183347
|
+
$packages["github.com/supraio/client-daemon/pkg/shiny/driver/util/dom"] = (function() {
|
|
183348
|
+
var $pkg = {}, $init, focus, key, mouse, size, touch, geom, math, strings, js, DomEvents, sliceType, funcType, sliceType$1, sliceType$2, chanType, ptrType, keyCodesMap, keyCodesByKeyMap, GetDocWidth, GetDocHeight, GetScreenWidth, GetScreenHeight, GetBrowserZoomRatio, SetWindowWidth, SetWindowHeight, GetOrientation, NewDomEvents, getMouseDirection, getWheelButton, getMouseButton, getEventModifiers, isFocusIn, getKeyRune, getKeyDirection, getKeyCode;
|
|
183333
183349
|
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
183334
183350
|
key = $packages["golang.org/x/mobile/event/key"];
|
|
183335
183351
|
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
183336
183352
|
size = $packages["golang.org/x/mobile/event/size"];
|
|
183353
|
+
touch = $packages["golang.org/x/mobile/event/touch"];
|
|
183337
183354
|
geom = $packages["golang.org/x/mobile/geom"];
|
|
183338
183355
|
math = $packages["math"];
|
|
183339
183356
|
strings = $packages["strings"];
|
|
183340
183357
|
js = $packages["syscall/js"];
|
|
183341
|
-
DomEvents = $pkg.DomEvents = $newType(0, $kindStruct, "dom.DomEvents", true, "
|
|
183358
|
+
DomEvents = $pkg.DomEvents = $newType(0, $kindStruct, "dom.DomEvents", true, "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", true, function(eventChan_, releases_) {
|
|
183342
183359
|
this.$val = this;
|
|
183343
183360
|
if (arguments.length === 0) {
|
|
183344
183361
|
this.eventChan = $chanNil;
|
|
@@ -183485,6 +183502,7 @@ $packages["golang.org/x/exp/shiny/driver/util/dom"] = (function() {
|
|
|
183485
183502
|
$r = d.bindMouseEvents(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183486
183503
|
$r = d.bindKeyEvents(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183487
183504
|
$r = d.bindFocusEvents(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183505
|
+
$r = d.bindTouchEvents(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183488
183506
|
$s = -1; return;
|
|
183489
183507
|
/* */ } return; } var $f = {$blk: DomEvents.ptr.prototype.BindEvents, $c: true, $r, d, $s};return $f;
|
|
183490
183508
|
};
|
|
@@ -183768,8 +183786,56 @@ $packages["golang.org/x/exp/shiny/driver/util/dom"] = (function() {
|
|
|
183768
183786
|
}
|
|
183769
183787
|
return 0;
|
|
183770
183788
|
};
|
|
183771
|
-
|
|
183772
|
-
|
|
183789
|
+
DomEvents.ptr.prototype.addTouchListener = function(eventName, eventType) {
|
|
183790
|
+
var {_r, _r$1, d, eventName, eventType, handler, opts, $s, $r, $c} = $restore(this, {eventName, eventType});
|
|
183791
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
183792
|
+
d = [d];
|
|
183793
|
+
eventName = [eventName];
|
|
183794
|
+
eventType = [eventType];
|
|
183795
|
+
handler = [handler];
|
|
183796
|
+
d[0] = this;
|
|
183797
|
+
handler[0] = $clone(js.FuncOf((function(d, eventName, eventType, handler) { return function $b(this$1, args) {
|
|
183798
|
+
var {_r, args, t, this$1, x, $s, $r, $c} = $restore(this, {this$1, args});
|
|
183799
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
183800
|
+
_r = $clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Call("preventDefault", sliceType.nil); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
183801
|
+
_r;
|
|
183802
|
+
t = $clone($clone($clone((0 >= args.$length ? ($throwRuntimeError("index out of range"), undefined) : args.$array[args.$offset + 0]), js.Value).Get("changedTouches"), js.Value).Index(0), js.Value);
|
|
183803
|
+
$r = $send(d[0].eventChan, (x = new touch.Event.ptr(($fround($clone($clone(t, js.Value).Get("screenX"), js.Value).Float())), ($fround($clone($clone(t, js.Value).Get("screenY"), js.Value).Float())), (new touch.Sequence(0, $clone($clone(t, js.Value).Get("identifier"), js.Value).Int())), eventType[0]), new x.constructor.elem(x))); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183804
|
+
$s = -1; return $ifaceNil;
|
|
183805
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r, args, t, this$1, x, $s};return $f;
|
|
183806
|
+
}; })(d, eventName, eventType, handler)), js.Func);
|
|
183807
|
+
_r = $clone($clone(js.Global(), js.Value).Get("Object"), js.Value).New(sliceType.nil); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
183808
|
+
opts = $clone(_r, js.Value);
|
|
183809
|
+
$clone(opts, js.Value).Set("passive", new $Bool(false));
|
|
183810
|
+
$clone(opts, js.Value).Set("capture", new $Bool(false));
|
|
183811
|
+
_r$1 = $clone(js.Global(), js.Value).Call("addEventListener", new sliceType([new $String(eventName[0]), new handler[0].constructor.elem(handler[0]), new opts.constructor.elem(opts)])); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
183812
|
+
_r$1;
|
|
183813
|
+
d[0].releases = $append(d[0].releases, (function(d, eventName, eventType, handler) { return function $b() {
|
|
183814
|
+
var {_r$2, $s, $r, $c} = $restore(this, {});
|
|
183815
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
183816
|
+
_r$2 = $clone(js.Global(), js.Value).Call("removeEventListener", new sliceType([new $String(eventName[0]), new handler[0].constructor.elem(handler[0])])); /* */ $s = 1; case 1: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
183817
|
+
_r$2;
|
|
183818
|
+
$clone(handler[0], js.Func).Release();
|
|
183819
|
+
$s = -1; return;
|
|
183820
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r$2, $s};return $f;
|
|
183821
|
+
}; })(d, eventName, eventType, handler));
|
|
183822
|
+
$s = -1; return;
|
|
183823
|
+
/* */ } return; } var $f = {$blk: DomEvents.ptr.prototype.addTouchListener, $c: true, $r, _r, _r$1, d, eventName, eventType, handler, opts, $s};return $f;
|
|
183824
|
+
};
|
|
183825
|
+
DomEvents.prototype.addTouchListener = function(eventName, eventType) { return this.$val.addTouchListener(eventName, eventType); };
|
|
183826
|
+
DomEvents.ptr.prototype.bindTouchEvents = function() {
|
|
183827
|
+
var {d, $s, $r, $c} = $restore(this, {});
|
|
183828
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
183829
|
+
d = this;
|
|
183830
|
+
$r = d.addTouchListener("touchstart", 0); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183831
|
+
$r = d.addTouchListener("touchend", 2); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183832
|
+
$r = d.addTouchListener("touchmove", 1); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183833
|
+
$s = -1; return;
|
|
183834
|
+
/* */ } return; } var $f = {$blk: DomEvents.ptr.prototype.bindTouchEvents, $c: true, $r, d, $s};return $f;
|
|
183835
|
+
};
|
|
183836
|
+
DomEvents.prototype.bindTouchEvents = function() { return this.$val.bindTouchEvents(); };
|
|
183837
|
+
ptrType.methods = [{prop: "GetEventChan", name: "GetEventChan", pkg: "", typ: $funcType([], [chanType], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([], [], false)}, {prop: "BindEvents", name: "BindEvents", pkg: "", typ: $funcType([], [], false)}, {prop: "bindSizeEvents", name: "bindSizeEvents", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}, {prop: "emitSizeEvent", name: "emitSizeEvent", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}, {prop: "bindMouseEvents", name: "bindMouseEvents", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}, {prop: "bindFocusEvents", name: "bindFocusEvents", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}, {prop: "bindKeyEvents", name: "bindKeyEvents", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}, {prop: "addTouchListener", name: "addTouchListener", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([$String, touch.Type], [], false)}, {prop: "bindTouchEvents", name: "bindTouchEvents", pkg: "github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", typ: $funcType([], [], false)}];
|
|
183838
|
+
DomEvents.init("github.com/supraio/client-daemon/pkg/shiny/driver/util/dom", [{prop: "eventChan", name: "eventChan", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "releases", name: "releases", embedded: false, exported: false, typ: sliceType$1, tag: ""}]);
|
|
183773
183839
|
$init = function() {
|
|
183774
183840
|
$pkg.$init = function() {};
|
|
183775
183841
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
@@ -183777,10 +183843,11 @@ $packages["golang.org/x/exp/shiny/driver/util/dom"] = (function() {
|
|
|
183777
183843
|
$r = key.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183778
183844
|
$r = mouse.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183779
183845
|
$r = size.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183780
|
-
$r =
|
|
183781
|
-
$r =
|
|
183782
|
-
$r =
|
|
183783
|
-
$r =
|
|
183846
|
+
$r = touch.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183847
|
+
$r = geom.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183848
|
+
$r = math.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183849
|
+
$r = strings.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183850
|
+
$r = js.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
183784
183851
|
keyCodesMap = $makeMap($String.keyFor, [{ k: "KeyA", v: 4 }, { k: "KeyB", v: 5 }, { k: "KeyC", v: 6 }, { k: "KeyD", v: 7 }, { k: "KeyE", v: 8 }, { k: "KeyF", v: 9 }, { k: "KeyG", v: 10 }, { k: "KeyH", v: 11 }, { k: "KeyI", v: 12 }, { k: "KeyJ", v: 13 }, { k: "KeyK", v: 14 }, { k: "KeyL", v: 15 }, { k: "KeyM", v: 16 }, { k: "KeyN", v: 17 }, { k: "KeyO", v: 18 }, { k: "KeyP", v: 19 }, { k: "KeyQ", v: 20 }, { k: "KeyR", v: 21 }, { k: "KeyS", v: 22 }, { k: "KeyT", v: 23 }, { k: "KeyU", v: 24 }, { k: "KeyV", v: 25 }, { k: "KeyW", v: 26 }, { k: "KeyX", v: 27 }, { k: "KeyY", v: 28 }, { k: "KeyZ", v: 29 }, { k: "Digit1", v: 30 }, { k: "Digit2", v: 31 }, { k: "Digit3", v: 32 }, { k: "Digit4", v: 33 }, { k: "Digit5", v: 34 }, { k: "Digit6", v: 35 }, { k: "Digit7", v: 36 }, { k: "Digit8", v: 37 }, { k: "Digit9", v: 38 }, { k: "Digit0", v: 39 }, { k: "Enter", v: 40 }, { k: "Escape", v: 41 }, { k: "Backspace", v: 42 }, { k: "Tab", v: 43 }, { k: "Space", v: 44 }, { k: "Minus", v: 45 }, { k: "Equal", v: 46 }, { k: "BracketLeft", v: 47 }, { k: "BracketRight", v: 48 }, { k: "Backslash", v: 49 }, { k: "Semicolon", v: 51 }, { k: "Quote", v: 52 }, { k: "Backquote", v: 53 }, { k: "Comma", v: 54 }, { k: "Period", v: 55 }, { k: "Slash", v: 56 }, { k: "CapsLock", v: 57 }, { k: "F1", v: 58 }, { k: "F2", v: 59 }, { k: "F3", v: 60 }, { k: "F4", v: 61 }, { k: "F5", v: 62 }, { k: "F6", v: 63 }, { k: "F7", v: 64 }, { k: "F8", v: 65 }, { k: "F9", v: 66 }, { k: "F10", v: 67 }, { k: "F11", v: 68 }, { k: "F12", v: 69 }, { k: "Pause", v: 72 }, { k: "Insert", v: 73 }, { k: "Home", v: 74 }, { k: "PageUp", v: 75 }, { k: "Delete", v: 76 }, { k: "End", v: 77 }, { k: "PageDown", v: 78 }, { k: "ArrowRight", v: 79 }, { k: "ArrowLeft", v: 80 }, { k: "ArrowDown", v: 81 }, { k: "ArrowUp", v: 82 }, { k: "NumLock", v: 83 }, { k: "NumpadDivide", v: 84 }, { k: "NumpadMultiply", v: 85 }, { k: "NumpadSubtract", v: 86 }, { k: "NumpadAdd", v: 87 }, { k: "NumpadEnter", v: 88 }, { k: "Numpad1", v: 89 }, { k: "Numpad2", v: 90 }, { k: "Numpad3", v: 91 }, { k: "Numpad4", v: 92 }, { k: "Numpad5", v: 93 }, { k: "Numpad6", v: 94 }, { k: "Numpad7", v: 95 }, { k: "Numpad8", v: 96 }, { k: "Numpad9", v: 97 }, { k: "Numpad0", v: 98 }, { k: "NumpadDecimal", v: 99 }, { k: "NumpadEqual", v: 103 }, { k: "F13", v: 104 }, { k: "F14", v: 105 }, { k: "F15", v: 106 }, { k: "F16", v: 107 }, { k: "F17", v: 108 }, { k: "F18", v: 109 }, { k: "F19", v: 110 }, { k: "F20", v: 111 }, { k: "F21", v: 112 }, { k: "F22", v: 113 }, { k: "F23", v: 114 }, { k: "F24", v: 115 }, { k: "Help", v: 117 }, { k: "ContextMenu", v: 118 }, { k: "VolumeMute", v: 127 }, { k: "VolumeUp", v: 128 }, { k: "VolumeDown", v: 129 }, { k: "ControlLeft", v: 224 }, { k: "ShiftLeft", v: 225 }, { k: "AltLeft", v: 226 }, { k: "MetaLeft", v: 227 }, { k: "ControlRight", v: 228 }, { k: "ShiftRight", v: 229 }, { k: "AltRight", v: 230 }, { k: "MetaRight", v: 231 }, { k: "PrintScreen", v: 0 }]);
|
|
183785
183852
|
keyCodesByKeyMap = $makeMap($String.keyFor, [{ k: "AudioVolumeMute", v: 127 }, { k: "AudioVolumeUp", v: 128 }, { k: "AudioVolumeDown", v: 129 }]);
|
|
183786
183853
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
@@ -185862,7 +185929,7 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder/nacldriver"]
|
|
|
185862
185929
|
jsdecoder = $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder/jsdecoder"];
|
|
185863
185930
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
185864
185931
|
jshelper = $packages["github.com/supraio/client-daemon/pkg/jshelper"];
|
|
185865
|
-
dom = $packages["
|
|
185932
|
+
dom = $packages["github.com/supraio/client-daemon/pkg/shiny/driver/util/dom"];
|
|
185866
185933
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
185867
185934
|
f64 = $packages["golang.org/x/image/math/f64"];
|
|
185868
185935
|
image = $packages["image"];
|
|
@@ -190870,7 +190937,7 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
190870
190937
|
$packages["github.com/supraio/client-daemon/pkg/shiny/driver/canvasdriver"] = (function() {
|
|
190871
190938
|
var $pkg = {}, $init, fmt, dom, screen, f64, image, color, draw, sync, js, windowImpl, screenImpl, YCbCrJS, BufferImpl, sliceType, ptrType, ptrType$1, funcType, arrayType, ptrType$2, ptrType$3, sliceType$1, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, newWindow, Main, main, newScreenImpl, newBuffer;
|
|
190872
190939
|
fmt = $packages["fmt"];
|
|
190873
|
-
dom = $packages["
|
|
190940
|
+
dom = $packages["github.com/supraio/client-daemon/pkg/shiny/driver/util/dom"];
|
|
190874
190941
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
190875
190942
|
f64 = $packages["golang.org/x/image/math/f64"];
|
|
190876
190943
|
image = $packages["image"];
|
|
@@ -192260,7 +192327,7 @@ $packages["github.com/supraio/client-daemon/pkg/message"] = (function() {
|
|
|
192260
192327
|
return $pkg;
|
|
192261
192328
|
})();
|
|
192262
192329
|
$packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
192263
|
-
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse, sync, MouseHandler, KeyHandler, JsHelper, KeyTransformer, Helper, sliceType, ptrType, sliceType$1, sliceType$2, ptrType$1, chanType, ptrType$2, chanType$1, chanType$2,
|
|
192330
|
+
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse, touch, sync, TouchHandler, MouseHandler, KeyHandler, JsHelper, KeyTransformer, Helper, sliceType, ptrType, sliceType$1, sliceType$2, ptrType$1, chanType, ptrType$2, chanType$1, ptrType$3, chanType$2, chanType$3, ptrType$4, NewTouchHandler, NewMouseHandler, NewKeyHandler, NewHelper, NewKeyTransformer;
|
|
192264
192331
|
binary = $packages["encoding/binary"];
|
|
192265
192332
|
fmt = $packages["fmt"];
|
|
192266
192333
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
@@ -192268,7 +192335,20 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192268
192335
|
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
192269
192336
|
key = $packages["golang.org/x/mobile/event/key"];
|
|
192270
192337
|
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
192338
|
+
touch = $packages["golang.org/x/mobile/event/touch"];
|
|
192271
192339
|
sync = $packages["sync"];
|
|
192340
|
+
TouchHandler = $pkg.TouchHandler = $newType(0, $kindStruct, "input.TouchHandler", true, "github.com/supraio/client-daemon/pkg/input", true, function(touchEventChan_, messageSender_, closed_) {
|
|
192341
|
+
this.$val = this;
|
|
192342
|
+
if (arguments.length === 0) {
|
|
192343
|
+
this.touchEventChan = $chanNil;
|
|
192344
|
+
this.messageSender = $ifaceNil;
|
|
192345
|
+
this.closed = false;
|
|
192346
|
+
return;
|
|
192347
|
+
}
|
|
192348
|
+
this.touchEventChan = touchEventChan_;
|
|
192349
|
+
this.messageSender = messageSender_;
|
|
192350
|
+
this.closed = closed_;
|
|
192351
|
+
});
|
|
192272
192352
|
MouseHandler = $pkg.MouseHandler = $newType(0, $kindStruct, "input.MouseHandler", true, "github.com/supraio/client-daemon/pkg/input", true, function(mouseEventChan_, messageSender_, closed_) {
|
|
192273
192353
|
this.$val = this;
|
|
192274
192354
|
if (arguments.length === 0) {
|
|
@@ -192320,12 +192400,68 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192320
192400
|
ptrType = $ptrType(KeyTransformer);
|
|
192321
192401
|
sliceType$1 = $sliceType($emptyInterface);
|
|
192322
192402
|
sliceType$2 = $sliceType(key.Event);
|
|
192323
|
-
ptrType$1 = $ptrType(
|
|
192324
|
-
chanType = $chanType(
|
|
192325
|
-
ptrType$2 = $ptrType(
|
|
192326
|
-
chanType$1 = $chanType(
|
|
192327
|
-
|
|
192328
|
-
|
|
192403
|
+
ptrType$1 = $ptrType(TouchHandler);
|
|
192404
|
+
chanType = $chanType(touch.Event, false, false);
|
|
192405
|
+
ptrType$2 = $ptrType(MouseHandler);
|
|
192406
|
+
chanType$1 = $chanType(mouse.Event, false, false);
|
|
192407
|
+
ptrType$3 = $ptrType(KeyHandler);
|
|
192408
|
+
chanType$2 = $chanType(key.Event, false, false);
|
|
192409
|
+
chanType$3 = $chanType(focus.Event, false, false);
|
|
192410
|
+
ptrType$4 = $ptrType(JsHelper);
|
|
192411
|
+
NewTouchHandler = function(touchEventChan, messageSender) {
|
|
192412
|
+
var messageSender, touchEventChan;
|
|
192413
|
+
return new TouchHandler.ptr(touchEventChan, messageSender, true);
|
|
192414
|
+
};
|
|
192415
|
+
$pkg.NewTouchHandler = NewTouchHandler;
|
|
192416
|
+
TouchHandler.ptr.prototype.Start = function() {
|
|
192417
|
+
var h;
|
|
192418
|
+
h = this;
|
|
192419
|
+
h.closed = false;
|
|
192420
|
+
$go($methodVal(h, "listenEvents"), []);
|
|
192421
|
+
};
|
|
192422
|
+
TouchHandler.prototype.Start = function() { return this.$val.Start(); };
|
|
192423
|
+
TouchHandler.ptr.prototype.Close = function() {
|
|
192424
|
+
var h;
|
|
192425
|
+
h = this;
|
|
192426
|
+
h.closed = true;
|
|
192427
|
+
};
|
|
192428
|
+
TouchHandler.prototype.Close = function() { return this.$val.Close(); };
|
|
192429
|
+
TouchHandler.ptr.prototype.listenEvents = function() {
|
|
192430
|
+
var {_r, _r$1, err, ev, eventData, h, $s, $r, $c} = $restore(this, {});
|
|
192431
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
192432
|
+
h = this;
|
|
192433
|
+
/* while (true) { */ case 1:
|
|
192434
|
+
/* if (!(!h.closed)) { break; } */ if(!(!h.closed)) { $s = 2; continue; }
|
|
192435
|
+
_r = $recv(h.touchEventChan); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
192436
|
+
ev = $clone(_r[0], touch.Event);
|
|
192437
|
+
eventData = h.encodeTouchEvent($clone(ev, touch.Event));
|
|
192438
|
+
_r$1 = h.messageSender.Send(49, eventData); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
192439
|
+
err = _r$1;
|
|
192440
|
+
/* */ if (!($interfaceIsEqual(err, $ifaceNil))) { $s = 5; continue; }
|
|
192441
|
+
/* */ $s = 6; continue;
|
|
192442
|
+
/* if (!($interfaceIsEqual(err, $ifaceNil))) { */ case 5:
|
|
192443
|
+
$r = errs.Print("Cannot send screen touch event", err); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192444
|
+
/* } */ case 6:
|
|
192445
|
+
$s = 1; continue;
|
|
192446
|
+
case 2:
|
|
192447
|
+
$s = -1; return;
|
|
192448
|
+
/* */ } return; } var $f = {$blk: TouchHandler.ptr.prototype.listenEvents, $c: true, $r, _r, _r$1, err, ev, eventData, h, $s};return $f;
|
|
192449
|
+
};
|
|
192450
|
+
TouchHandler.prototype.listenEvents = function() { return this.$val.listenEvents(); };
|
|
192451
|
+
TouchHandler.ptr.prototype.encodeTouchEvent = function(ev) {
|
|
192452
|
+
var ev, h, sequenceData, typeData, x, xData, yData;
|
|
192453
|
+
h = this;
|
|
192454
|
+
sequenceData = $makeSlice(sliceType, 8);
|
|
192455
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint64(sequenceData, ((x = ev.Sequence, new $Uint64(x.$high, x.$low))));
|
|
192456
|
+
typeData = $makeSlice(sliceType, 2);
|
|
192457
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint16(typeData, ((ev.Type << 16 >>> 16)));
|
|
192458
|
+
xData = $makeSlice(sliceType, 4);
|
|
192459
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint32(xData, ((ev.X >> 0)));
|
|
192460
|
+
yData = $makeSlice(sliceType, 4);
|
|
192461
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint32(yData, ((ev.Y >> 0)));
|
|
192462
|
+
return $appendSlice(sequenceData, $appendSlice(typeData, $appendSlice(xData, yData)));
|
|
192463
|
+
};
|
|
192464
|
+
TouchHandler.prototype.encodeTouchEvent = function(ev) { return this.$val.encodeTouchEvent(ev); };
|
|
192329
192465
|
NewMouseHandler = function(mouseEventChan, messageSender) {
|
|
192330
192466
|
var messageSender, mouseEventChan;
|
|
192331
192467
|
return new MouseHandler.ptr(mouseEventChan, messageSender, true);
|
|
@@ -192592,12 +192728,14 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192592
192728
|
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return transformedEvs; } if($curGoroutine.asleep) { var $f = {$blk: KeyTransformer.ptr.prototype.TransformAltGr, $c: true, $r, $24r, ev, t, transformedEvs, $s, $deferred};return $f; } }
|
|
192593
192729
|
};
|
|
192594
192730
|
KeyTransformer.prototype.TransformAltGr = function(ev) { return this.$val.TransformAltGr(ev); };
|
|
192595
|
-
ptrType$1.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "listenEvents", name: "listenEvents", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [], false)}, {prop: "
|
|
192596
|
-
ptrType$2.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [
|
|
192597
|
-
ptrType$3.methods = [{prop: "
|
|
192731
|
+
ptrType$1.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "listenEvents", name: "listenEvents", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [], false)}, {prop: "encodeTouchEvent", name: "encodeTouchEvent", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([touch.Event], [sliceType], false)}];
|
|
192732
|
+
ptrType$2.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "listenEvents", name: "listenEvents", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [], false)}, {prop: "encodeMouseEvent", name: "encodeMouseEvent", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([mouse.Event], [sliceType], false)}];
|
|
192733
|
+
ptrType$3.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "listenEvents", name: "listenEvents", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [], false)}, {prop: "listenFocusEvents", name: "listenFocusEvents", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [], false)}, {prop: "encodeKeyEvent", name: "encodeKeyEvent", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([key.Event], [sliceType], false)}, {prop: "init", name: "init", pkg: "github.com/supraio/client-daemon/pkg/input", typ: $funcType([], [$error], false)}];
|
|
192734
|
+
ptrType$4.methods = [{prop: "GetCapsLockState", name: "GetCapsLockState", pkg: "", typ: $funcType([], [$Bool, $error], false)}, {prop: "GetNumLockState", name: "GetNumLockState", pkg: "", typ: $funcType([], [$Bool, $error], false)}, {prop: "GetKeyboardLayout", name: "GetKeyboardLayout", pkg: "", typ: $funcType([], [$String, $error], false)}];
|
|
192598
192735
|
ptrType.methods = [{prop: "TransformAltGr", name: "TransformAltGr", pkg: "", typ: $funcType([key.Event], [sliceType$2], false)}];
|
|
192599
|
-
|
|
192600
|
-
|
|
192736
|
+
TouchHandler.init("github.com/supraio/client-daemon/pkg/input", [{prop: "touchEventChan", name: "touchEventChan", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "messageSender", name: "messageSender", embedded: false, exported: false, typ: message.Sender, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
192737
|
+
MouseHandler.init("github.com/supraio/client-daemon/pkg/input", [{prop: "mouseEventChan", name: "mouseEventChan", embedded: false, exported: false, typ: chanType$1, tag: ""}, {prop: "messageSender", name: "messageSender", embedded: false, exported: false, typ: message.Sender, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
192738
|
+
KeyHandler.init("github.com/supraio/client-daemon/pkg/input", [{prop: "helper", name: "helper", embedded: false, exported: false, typ: Helper, tag: ""}, {prop: "keyEventChan", name: "keyEventChan", embedded: false, exported: false, typ: chanType$2, tag: ""}, {prop: "focusEventChan", name: "focusEventChan", embedded: false, exported: false, typ: chanType$3, tag: ""}, {prop: "messageSender", name: "messageSender", embedded: false, exported: false, typ: message.Sender, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "keyTransformer", name: "keyTransformer", embedded: false, exported: false, typ: ptrType, tag: ""}]);
|
|
192601
192739
|
JsHelper.init("", []);
|
|
192602
192740
|
KeyTransformer.init("github.com/supraio/client-daemon/pkg/input", [{prop: "mutex", name: "mutex", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "isCtrlLeftPressed", name: "isCtrlLeftPressed", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
192603
192741
|
Helper.init([{prop: "GetCapsLockState", name: "GetCapsLockState", pkg: "", typ: $funcType([], [$Bool, $error], false)}, {prop: "GetKeyboardLayout", name: "GetKeyboardLayout", pkg: "", typ: $funcType([], [$String, $error], false)}, {prop: "GetNumLockState", name: "GetNumLockState", pkg: "", typ: $funcType([], [$Bool, $error], false)}]);
|
|
@@ -192611,7 +192749,8 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192611
192749
|
$r = focus.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192612
192750
|
$r = key.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192613
192751
|
$r = mouse.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192614
|
-
$r =
|
|
192752
|
+
$r = touch.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192753
|
+
$r = sync.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192615
192754
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
192616
192755
|
};
|
|
192617
192756
|
$pkg.$init = $init;
|
|
@@ -193460,7 +193599,7 @@ $packages["github.com/supraio/client-daemon/pkg/shiny/driver/webgldriver"] = (fu
|
|
|
193460
193599
|
fmt = $packages["fmt"];
|
|
193461
193600
|
webgl = $packages["github.com/nuberu/webgl"];
|
|
193462
193601
|
types = $packages["github.com/nuberu/webgl/types"];
|
|
193463
|
-
dom = $packages["
|
|
193602
|
+
dom = $packages["github.com/supraio/client-daemon/pkg/shiny/driver/util/dom"];
|
|
193464
193603
|
imageutil = $packages["golang.org/x/exp/shiny/imageutil"];
|
|
193465
193604
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
193466
193605
|
f64 = $packages["golang.org/x/image/math/f64"];
|
|
@@ -195247,17 +195386,15 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195247
195386
|
};
|
|
195248
195387
|
Stats.prototype.NotifyFrameCollectionStarted = function() { return this.$val.NotifyFrameCollectionStarted(); };
|
|
195249
195388
|
Stats.ptr.prototype.NotifyFrameCollectionEnded = function() {
|
|
195250
|
-
var {
|
|
195389
|
+
var {_r, dur, s, $s, $r, $c} = $restore(this, {});
|
|
195251
195390
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
195252
195391
|
s = this;
|
|
195253
195392
|
_r = s.stopwatch.Stop("frame_collection"); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
195254
|
-
|
|
195255
|
-
$r = s.metrics.AddSample("frame_collection", new sliceType$1([
|
|
195256
|
-
|
|
195257
|
-
_arg$1 = _r$1;
|
|
195258
|
-
$r = s.metrics.AddSample("frame_collection_long_term", new sliceType$1([_arg$1])); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195393
|
+
dur = _r;
|
|
195394
|
+
$r = s.metrics.AddSample("frame_collection", new sliceType$1([dur])); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195395
|
+
$r = s.metrics.AddSample("frame_collection_long_term", new sliceType$1([dur])); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195259
195396
|
$s = -1; return;
|
|
195260
|
-
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.NotifyFrameCollectionEnded, $c: true, $r,
|
|
195397
|
+
/* */ } return; } var $f = {$blk: Stats.ptr.prototype.NotifyFrameCollectionEnded, $c: true, $r, _r, dur, s, $s};return $f;
|
|
195261
195398
|
};
|
|
195262
195399
|
Stats.prototype.NotifyFrameCollectionEnded = function() { return this.$val.NotifyFrameCollectionEnded(); };
|
|
195263
195400
|
Stats.ptr.prototype.NotifyThrottledCollectionFrame = function() {
|
|
@@ -195627,7 +195764,8 @@ $packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
|
195627
195764
|
return $pkg;
|
|
195628
195765
|
})();
|
|
195629
195766
|
$packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
195630
|
-
var $pkg = {}, $init, decoder, errs, frame, netframe, screenbuffer, stats, screen, image, time, RenderingLoop, DecodeResultProvider, DecodeResult, DecoderLoop, FrameProvider, CollectionLoop, ptrType, sliceType, ptrType$1, ptrType$2, ptrType$3, ptrType$4, ptrType$5, funcType, ptrType$6, chanType, chanType$1, ptrType$7, NewRenderingLoop, NewDecoderLoop, NewCollectionLoop;
|
|
195767
|
+
var $pkg = {}, $init, fmt, decoder, errs, frame, netframe, screenbuffer, stats, screen, image, js, time, RenderingLoop, DecodeResultProvider, DecodeResult, DecoderLoop, FrameProvider, CollectionLoop, ptrType, sliceType, ptrType$1, ptrType$2, ptrType$3, ptrType$4, ptrType$5, funcType, ptrType$6, chanType, chanType$1, ptrType$7, NewRenderingLoop, NewDecoderLoop, NewCollectionLoop;
|
|
195768
|
+
fmt = $packages["fmt"];
|
|
195631
195769
|
decoder = $packages["github.com/supraio/client-daemon/pkg/decoder"];
|
|
195632
195770
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
195633
195771
|
frame = $packages["github.com/supraio/client-daemon/pkg/render/frame"];
|
|
@@ -195636,6 +195774,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
195636
195774
|
stats = $packages["github.com/supraio/client-daemon/pkg/stats"];
|
|
195637
195775
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
195638
195776
|
image = $packages["image"];
|
|
195777
|
+
js = $packages["syscall/js"];
|
|
195639
195778
|
time = $packages["time"];
|
|
195640
195779
|
RenderingLoop = $pkg.RenderingLoop = $newType(0, $kindStruct, "player.RenderingLoop", true, "github.com/supraio/client-daemon/pkg/render/player", true, function(decodeResultProvider_, window_, stats_, started_, renderingInProgress_) {
|
|
195641
195780
|
this.$val = this;
|
|
@@ -195816,6 +195955,32 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
195816
195955
|
/* */ } return; } var $f = {$blk: RenderingLoop.ptr.prototype.waitForRenderTime, $c: true, $r, _r, _r$1, dl, frame$1, renderTime, serverTime, waitDuration, $s};return $f;
|
|
195817
195956
|
};
|
|
195818
195957
|
RenderingLoop.prototype.waitForRenderTime = function(frame$1) { return this.$val.waitForRenderTime(frame$1); };
|
|
195958
|
+
DecoderLoop.ptr.prototype.showFPS = function() {
|
|
195959
|
+
var dl;
|
|
195960
|
+
dl = this;
|
|
195961
|
+
$go((function $b() {
|
|
195962
|
+
var {_arg, _r, _r$1, fps, fpsElement, $s, $r, $c} = $restore(this, {});
|
|
195963
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
195964
|
+
_r = $clone($clone(js.Global(), js.Value).Get("document"), js.Value).Call("getElementById", new sliceType([new $String("fps")])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
195965
|
+
fpsElement = $clone(_r, js.Value);
|
|
195966
|
+
/* */ if (!$clone(fpsElement, js.Value).IsNull() && !$clone(fpsElement, js.Value).IsUndefined()) { $s = 2; continue; }
|
|
195967
|
+
/* */ $s = 3; continue;
|
|
195968
|
+
/* if (!$clone(fpsElement, js.Value).IsNull() && !$clone(fpsElement, js.Value).IsUndefined()) { */ case 2:
|
|
195969
|
+
/* while (true) { */ case 4:
|
|
195970
|
+
/* if (!(dl.started)) { break; } */ if(!(dl.started)) { $s = 5; continue; }
|
|
195971
|
+
$r = time.Sleep(new time.Duration(0, 1000000000)); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195972
|
+
fps = dl.stats.GetFrameRate();
|
|
195973
|
+
_r$1 = fmt.Sprintf("FPS: %d", new sliceType([new $Int(fps)])); /* */ $s = 7; case 7: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
195974
|
+
_arg = new $String(_r$1);
|
|
195975
|
+
$r = $clone(fpsElement, js.Value).Set("innerText", _arg); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
195976
|
+
$s = 4; continue;
|
|
195977
|
+
case 5:
|
|
195978
|
+
/* } */ case 3:
|
|
195979
|
+
$s = -1; return;
|
|
195980
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _arg, _r, _r$1, fps, fpsElement, $s};return $f;
|
|
195981
|
+
}), []);
|
|
195982
|
+
};
|
|
195983
|
+
DecoderLoop.prototype.showFPS = function() { return this.$val.showFPS(); };
|
|
195819
195984
|
NewDecoderLoop = function(frameProvider, createBuffer, stats$1) {
|
|
195820
195985
|
var createBuffer, frameProvider, stats$1;
|
|
195821
195986
|
return new DecoderLoop.ptr(frameProvider, screenbuffer.NewBufferPool(createBuffer, 20), stats$1, new $Chan(ptrType$2, 50), new $Chan(ptrType$3, 50), false, $ifaceNil);
|
|
@@ -195882,6 +196047,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
195882
196047
|
$s = -1; return;
|
|
195883
196048
|
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r, err, $s};return $f;
|
|
195884
196049
|
}), []);
|
|
196050
|
+
dl.showFPS();
|
|
195885
196051
|
};
|
|
195886
196052
|
DecoderLoop.prototype.Start = function() { return this.$val.Start(); };
|
|
195887
196053
|
DecoderLoop.ptr.prototype.Stop = function() {
|
|
@@ -196076,7 +196242,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
196076
196242
|
};
|
|
196077
196243
|
CollectionLoop.prototype.Stop = function() { return this.$val.Stop(); };
|
|
196078
196244
|
ptrType$5.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {prop: "renderBuffer", name: "renderBuffer", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [$error], false)}, {prop: "waitForRenderTime", name: "waitForRenderTime", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([ptrType$3], [], false)}];
|
|
196079
|
-
ptrType$6.methods = [{prop: "NextDecodedResult", name: "NextDecodedResult", pkg: "", typ: $funcType([], [ptrType$2, $error], false)}, {prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {prop: "writeFrame", name: "writeFrame", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [$error], false)}, {prop: "outputBuffer", name: "outputBuffer", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [$error], false)}, {prop: "ensureDecoder", name: "ensureDecoder", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([ptrType$3], [decoder.Decoder, $error], false)}];
|
|
196245
|
+
ptrType$6.methods = [{prop: "showFPS", name: "showFPS", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [], false)}, {prop: "NextDecodedResult", name: "NextDecodedResult", pkg: "", typ: $funcType([], [ptrType$2, $error], false)}, {prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}, {prop: "writeFrame", name: "writeFrame", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [$error], false)}, {prop: "outputBuffer", name: "outputBuffer", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([], [$error], false)}, {prop: "ensureDecoder", name: "ensureDecoder", pkg: "github.com/supraio/client-daemon/pkg/render/player", typ: $funcType([ptrType$3], [decoder.Decoder, $error], false)}];
|
|
196080
196246
|
ptrType$7.methods = [{prop: "NextFrame", name: "NextFrame", pkg: "", typ: $funcType([], [ptrType$3, $error], false)}, {prop: "Start", name: "Start", pkg: "", typ: $funcType([], [], false)}, {prop: "Stop", name: "Stop", pkg: "", typ: $funcType([], [], false)}];
|
|
196081
196247
|
RenderingLoop.init("github.com/supraio/client-daemon/pkg/render/player", [{prop: "decodeResultProvider", name: "decodeResultProvider", embedded: false, exported: false, typ: DecodeResultProvider, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "started", name: "started", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "renderingInProgress", name: "renderingInProgress", embedded: false, exported: false, typ: $Bool, tag: ""}]);
|
|
196082
196248
|
DecodeResultProvider.init([{prop: "NextDecodedResult", name: "NextDecodedResult", pkg: "", typ: $funcType([], [ptrType$2, $error], false)}]);
|
|
@@ -196087,15 +196253,17 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
196087
196253
|
$init = function() {
|
|
196088
196254
|
$pkg.$init = function() {};
|
|
196089
196255
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
196090
|
-
$r =
|
|
196091
|
-
$r =
|
|
196092
|
-
$r =
|
|
196093
|
-
$r =
|
|
196094
|
-
$r =
|
|
196095
|
-
$r =
|
|
196096
|
-
$r =
|
|
196097
|
-
$r =
|
|
196098
|
-
$r =
|
|
196256
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196257
|
+
$r = decoder.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196258
|
+
$r = errs.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196259
|
+
$r = frame.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196260
|
+
$r = netframe.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196261
|
+
$r = screenbuffer.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196262
|
+
$r = stats.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196263
|
+
$r = screen.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196264
|
+
$r = image.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196265
|
+
$r = js.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196266
|
+
$r = time.$init(); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196099
196267
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
196100
196268
|
};
|
|
196101
196269
|
$pkg.$init = $init;
|
|
@@ -196104,7 +196272,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/player"] = (function() {
|
|
|
196104
196272
|
$packages["github.com/supraio/client-daemon/pkg/shiny/driver/overlaydriver"] = (function() {
|
|
196105
196273
|
var $pkg = {}, $init, errs, dom, screen, f64, image, color, draw, sync, js, windowImpl, screenImpl, BufferImpl, sliceType, ptrType, ptrType$1, ptrType$2, funcType, arrayType, ptrType$3, sliceType$1, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, newWindow, newScreenImpl, Main, main, newBuffer;
|
|
196106
196274
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
196107
|
-
dom = $packages["
|
|
196275
|
+
dom = $packages["github.com/supraio/client-daemon/pkg/shiny/driver/util/dom"];
|
|
196108
196276
|
screen = $packages["golang.org/x/exp/shiny/screen"];
|
|
196109
196277
|
f64 = $packages["golang.org/x/image/math/f64"];
|
|
196110
196278
|
image = $packages["image"];
|
|
@@ -196594,7 +196762,7 @@ $packages["golang.org/x/mobile/event/lifecycle"] = (function() {
|
|
|
196594
196762
|
return $pkg;
|
|
196595
196763
|
})();
|
|
196596
196764
|
$packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
196597
|
-
var $pkg = {}, $init, binary, json, fmt, query, clientscreen, clipboard, android, nacldecoder, nacldriver, webcodecs, errs, helper, input, message, netclient, netpacket, netstream, netframe, player, canvasdriver, overlaydriver, webgldriver, stats, videostream, window, screen, focus, key, lifecycle, mouse, size, image, io, ioutil, log, os, path, strings, sync, js, time, ScreenWindow, ProcessInfo, ProcessInfoManager, ptrType, ptrType$1, funcType, sliceType, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, sliceType$1, sliceType$2, structType, sliceType$3, funcType$1, ptrType$
|
|
196765
|
+
var $pkg = {}, $init, binary, json, fmt, query, clientscreen, clipboard, android, nacldecoder, nacldriver, webcodecs, errs, helper, input, message, netclient, netpacket, netstream, netframe, player, canvasdriver, overlaydriver, webgldriver, stats, videostream, window, screen, focus, key, lifecycle, mouse, size, touch, image, io, ioutil, log, os, path, strings, sync, js, time, ScreenWindow, ProcessInfo, ProcessInfoManager, ptrType, ptrType$1, funcType, sliceType, ptrType$2, ptrType$3, ptrType$4, ptrType$5, ptrType$6, ptrType$7, ptrType$8, ptrType$9, ptrType$10, sliceType$1, sliceType$2, structType, sliceType$3, funcType$1, ptrType$11, ptrType$12, chanType, chanType$1, chanType$2, chanType$3, chanType$4, chanType$5, NewScreenWindow, MainDriver, NewProcessInfoManager;
|
|
196598
196766
|
binary = $packages["encoding/binary"];
|
|
196599
196767
|
json = $packages["encoding/json"];
|
|
196600
196768
|
fmt = $packages["fmt"];
|
|
@@ -196626,6 +196794,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196626
196794
|
lifecycle = $packages["golang.org/x/mobile/event/lifecycle"];
|
|
196627
196795
|
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
196628
196796
|
size = $packages["golang.org/x/mobile/event/size"];
|
|
196797
|
+
touch = $packages["golang.org/x/mobile/event/touch"];
|
|
196629
196798
|
image = $packages["image"];
|
|
196630
196799
|
io = $packages["io"];
|
|
196631
196800
|
ioutil = $packages["io/ioutil"];
|
|
@@ -196636,7 +196805,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196636
196805
|
sync = $packages["sync"];
|
|
196637
196806
|
js = $packages["syscall/js"];
|
|
196638
196807
|
time = $packages["time"];
|
|
196639
|
-
ScreenWindow = $pkg.ScreenWindow = $newType(0, $kindStruct, "render.ScreenWindow", true, "github.com/supraio/client-daemon/pkg/render", true, function(processInfoManager_, screenDriver_, screenHost_, metadataDriver_, metadataHost_, clientID_, clientSecret_, screenID_, secure_, screenSize_, timeoutDuration_, closed_, stats_, onClose_, window_, screen_, screenConn_, metadataServer_, collectionLoop_, decoderLoop_, renderingLoop_, sizeHandler_, keyHandler_, mouseHandler_, pinger_, keyEventChan_, mouseEventChan_, sizeEventChan_, focusEventChan_, winCloseChannel_) {
|
|
196808
|
+
ScreenWindow = $pkg.ScreenWindow = $newType(0, $kindStruct, "render.ScreenWindow", true, "github.com/supraio/client-daemon/pkg/render", true, function(processInfoManager_, screenDriver_, screenHost_, metadataDriver_, metadataHost_, clientID_, clientSecret_, screenID_, secure_, screenSize_, timeoutDuration_, closed_, stats_, onClose_, window_, screen_, screenConn_, metadataServer_, collectionLoop_, decoderLoop_, renderingLoop_, sizeHandler_, touchHandler_, keyHandler_, mouseHandler_, pinger_, keyEventChan_, mouseEventChan_, sizeEventChan_, focusEventChan_, touchEventChan_, winCloseChannel_) {
|
|
196640
196809
|
this.$val = this;
|
|
196641
196810
|
if (arguments.length === 0) {
|
|
196642
196811
|
this.processInfoManager = ptrType.nil;
|
|
@@ -196661,13 +196830,15 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196661
196830
|
this.decoderLoop = ptrType$4.nil;
|
|
196662
196831
|
this.renderingLoop = ptrType$5.nil;
|
|
196663
196832
|
this.sizeHandler = ptrType$6.nil;
|
|
196664
|
-
this.
|
|
196665
|
-
this.
|
|
196666
|
-
this.
|
|
196833
|
+
this.touchHandler = ptrType$7.nil;
|
|
196834
|
+
this.keyHandler = ptrType$8.nil;
|
|
196835
|
+
this.mouseHandler = ptrType$9.nil;
|
|
196836
|
+
this.pinger = ptrType$10.nil;
|
|
196667
196837
|
this.keyEventChan = $chanNil;
|
|
196668
196838
|
this.mouseEventChan = $chanNil;
|
|
196669
196839
|
this.sizeEventChan = $chanNil;
|
|
196670
196840
|
this.focusEventChan = $chanNil;
|
|
196841
|
+
this.touchEventChan = $chanNil;
|
|
196671
196842
|
this.winCloseChannel = $chanNil;
|
|
196672
196843
|
return;
|
|
196673
196844
|
}
|
|
@@ -196693,6 +196864,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196693
196864
|
this.decoderLoop = decoderLoop_;
|
|
196694
196865
|
this.renderingLoop = renderingLoop_;
|
|
196695
196866
|
this.sizeHandler = sizeHandler_;
|
|
196867
|
+
this.touchHandler = touchHandler_;
|
|
196696
196868
|
this.keyHandler = keyHandler_;
|
|
196697
196869
|
this.mouseHandler = mouseHandler_;
|
|
196698
196870
|
this.pinger = pinger_;
|
|
@@ -196700,6 +196872,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196700
196872
|
this.mouseEventChan = mouseEventChan_;
|
|
196701
196873
|
this.sizeEventChan = sizeEventChan_;
|
|
196702
196874
|
this.focusEventChan = focusEventChan_;
|
|
196875
|
+
this.touchEventChan = touchEventChan_;
|
|
196703
196876
|
this.winCloseChannel = winCloseChannel_;
|
|
196704
196877
|
});
|
|
196705
196878
|
ProcessInfo = $pkg.ProcessInfo = $newType(0, $kindStruct, "render.ProcessInfo", true, "github.com/supraio/client-daemon/pkg/render", true, function(ScreenID_, Pid_) {
|
|
@@ -196731,26 +196904,28 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196731
196904
|
ptrType$4 = $ptrType(player.DecoderLoop);
|
|
196732
196905
|
ptrType$5 = $ptrType(player.RenderingLoop);
|
|
196733
196906
|
ptrType$6 = $ptrType(window.SizeHandler);
|
|
196734
|
-
ptrType$7 = $ptrType(input.
|
|
196735
|
-
ptrType$8 = $ptrType(input.
|
|
196736
|
-
ptrType$9 = $ptrType(
|
|
196907
|
+
ptrType$7 = $ptrType(input.TouchHandler);
|
|
196908
|
+
ptrType$8 = $ptrType(input.KeyHandler);
|
|
196909
|
+
ptrType$9 = $ptrType(input.MouseHandler);
|
|
196910
|
+
ptrType$10 = $ptrType(netclient.Pinger);
|
|
196737
196911
|
sliceType$1 = $sliceType($emptyInterface);
|
|
196738
196912
|
sliceType$2 = $sliceType($Uint8);
|
|
196739
196913
|
structType = $structType("", []);
|
|
196740
196914
|
sliceType$3 = $sliceType($String);
|
|
196741
196915
|
funcType$1 = $funcType([], [$error], false);
|
|
196742
|
-
ptrType$
|
|
196743
|
-
ptrType$
|
|
196916
|
+
ptrType$11 = $ptrType(netclient.MetadataResponsiveSender);
|
|
196917
|
+
ptrType$12 = $ptrType(ScreenWindow);
|
|
196744
196918
|
chanType = $chanType(key.Event, false, false);
|
|
196745
196919
|
chanType$1 = $chanType(mouse.Event, false, false);
|
|
196746
196920
|
chanType$2 = $chanType(size.Event, false, false);
|
|
196747
196921
|
chanType$3 = $chanType(focus.Event, false, false);
|
|
196748
|
-
chanType$4 = $chanType(
|
|
196922
|
+
chanType$4 = $chanType(touch.Event, false, false);
|
|
196923
|
+
chanType$5 = $chanType($emptyInterface, false, false);
|
|
196749
196924
|
NewScreenWindow = function(processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, screenSize, timeoutDuration) {
|
|
196750
196925
|
var {$24r, _r, clientID, clientSecret, metadataDriver, metadataHost, processInfoManager, screenDriver, screenHost, screenID, screenSize, secure, timeoutDuration, $s, $r, $c} = $restore(this, {processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, screenSize, timeoutDuration});
|
|
196751
196926
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
196752
196927
|
_r = stats.NewStats(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
196753
|
-
$24r = new ScreenWindow.ptr(processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, $clone(screenSize, image.Point), timeoutDuration, true, _r, sliceType.nil, $ifaceNil, $ifaceNil, $ifaceNil, ptrType$2.nil, ptrType$3.nil, ptrType$4.nil, ptrType$5.nil, ptrType$6.nil, ptrType$7.nil, ptrType$8.nil, ptrType$9.nil, new $Chan(key.Event, 50), new $Chan(mouse.Event, 50), new $Chan(size.Event, 50), new $Chan(focus.Event, 50), new $Chan($emptyInterface, 0));
|
|
196928
|
+
$24r = new ScreenWindow.ptr(processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, $clone(screenSize, image.Point), timeoutDuration, true, _r, sliceType.nil, $ifaceNil, $ifaceNil, $ifaceNil, ptrType$2.nil, ptrType$3.nil, ptrType$4.nil, ptrType$5.nil, ptrType$6.nil, ptrType$7.nil, ptrType$8.nil, ptrType$9.nil, ptrType$10.nil, new $Chan(key.Event, 50), new $Chan(mouse.Event, 50), new $Chan(size.Event, 50), new $Chan(focus.Event, 50), new $Chan(touch.Event, 50), new $Chan($emptyInterface, 0));
|
|
196754
196929
|
$s = 2; case 2: return $24r;
|
|
196755
196930
|
/* */ } return; } var $f = {$blk: NewScreenWindow, $c: true, $r, $24r, _r, clientID, clientSecret, metadataDriver, metadataHost, processInfoManager, screenDriver, screenHost, screenID, screenSize, secure, timeoutDuration, $s};return $f;
|
|
196756
196931
|
};
|
|
@@ -196817,9 +196992,9 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196817
196992
|
w.renderingLoop.Stop();
|
|
196818
196993
|
w.renderingLoop = ptrType$5.nil;
|
|
196819
196994
|
}
|
|
196820
|
-
if (!(w.pinger === ptrType$
|
|
196995
|
+
if (!(w.pinger === ptrType$10.nil)) {
|
|
196821
196996
|
w.pinger.Close();
|
|
196822
|
-
w.pinger = ptrType$
|
|
196997
|
+
w.pinger = ptrType$10.nil;
|
|
196823
196998
|
}
|
|
196824
196999
|
_r = w.createScreenSender().Send(3, new sliceType$2([])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
196825
197000
|
err = _r;
|
|
@@ -196947,7 +197122,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196947
197122
|
_r = $recv(windowChannel[0]); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
196948
197123
|
err = _r[0];
|
|
196949
197124
|
$go((function(w, windowChannel) { return function $b() {
|
|
196950
|
-
var {_r$1, _ref, e, e$1, e$2, e$3, e$4, $s, $r, $c} = $restore(this, {});
|
|
197125
|
+
var {_r$1, _ref, e, e$1, e$2, e$3, e$4, e$5, $s, $r, $c} = $restore(this, {});
|
|
196951
197126
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
196952
197127
|
/* while (true) { */ case 1:
|
|
196953
197128
|
_r$1 = w[0].window.NextEvent(); /* */ $s = 3; case 3: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
@@ -196957,40 +197132,46 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
196957
197132
|
/* */ if ($assertType(_ref, mouse.Event, true)[1]) { $s = 6; continue; }
|
|
196958
197133
|
/* */ if ($assertType(_ref, size.Event, true)[1]) { $s = 7; continue; }
|
|
196959
197134
|
/* */ if ($assertType(_ref, focus.Event, true)[1]) { $s = 8; continue; }
|
|
196960
|
-
/* */ $s = 9; continue;
|
|
197135
|
+
/* */ if ($assertType(_ref, touch.Event, true)[1]) { $s = 9; continue; }
|
|
197136
|
+
/* */ $s = 10; continue;
|
|
196961
197137
|
/* if ($assertType(_ref, lifecycle.Event, true)[1]) { */ case 4:
|
|
196962
197138
|
e = $clone(_ref.$val, lifecycle.Event);
|
|
196963
|
-
/* */ if (e.To === 0) { $s =
|
|
196964
|
-
/* */ $s =
|
|
196965
|
-
/* if (e.To === 0) { */ case
|
|
196966
|
-
$r = w[0].Close(); /* */ $s =
|
|
197139
|
+
/* */ if (e.To === 0) { $s = 11; continue; }
|
|
197140
|
+
/* */ $s = 12; continue;
|
|
197141
|
+
/* if (e.To === 0) { */ case 11:
|
|
197142
|
+
$r = w[0].Close(); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
196967
197143
|
$s = -1; return;
|
|
196968
|
-
/* } */ case
|
|
196969
|
-
$s =
|
|
197144
|
+
/* } */ case 12:
|
|
197145
|
+
$s = 10; continue;
|
|
196970
197146
|
/* } else if ($assertType(_ref, key.Event, true)[1]) { */ case 5:
|
|
196971
197147
|
e$1 = $clone(_ref.$val, key.Event);
|
|
196972
|
-
$r = $send(w[0].keyEventChan, $clone($clone(e$1, key.Event), key.Event)); /* */ $s =
|
|
196973
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
196974
|
-
$s =
|
|
197148
|
+
$r = $send(w[0].keyEventChan, $clone($clone(e$1, key.Event), key.Event)); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197149
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197150
|
+
$s = 10; continue;
|
|
196975
197151
|
/* } else if ($assertType(_ref, mouse.Event, true)[1]) { */ case 6:
|
|
196976
197152
|
e$2 = $clone(_ref.$val, mouse.Event);
|
|
196977
|
-
$r = $send(w[0].mouseEventChan, $clone($clone(e$2, mouse.Event), mouse.Event)); /* */ $s =
|
|
196978
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
196979
|
-
$s =
|
|
197153
|
+
$r = $send(w[0].mouseEventChan, $clone($clone(e$2, mouse.Event), mouse.Event)); /* */ $s = 16; case 16: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197154
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197155
|
+
$s = 10; continue;
|
|
196980
197156
|
/* } else if ($assertType(_ref, size.Event, true)[1]) { */ case 7:
|
|
196981
197157
|
e$3 = $clone(_ref.$val, size.Event);
|
|
196982
|
-
$r = $send(w[0].sizeEventChan, $clone($clone(e$3, size.Event), size.Event)); /* */ $s =
|
|
196983
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
196984
|
-
$s =
|
|
197158
|
+
$r = $send(w[0].sizeEventChan, $clone($clone(e$3, size.Event), size.Event)); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197159
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 19; case 19: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197160
|
+
$s = 10; continue;
|
|
196985
197161
|
/* } else if ($assertType(_ref, focus.Event, true)[1]) { */ case 8:
|
|
196986
197162
|
e$4 = $clone(_ref.$val, focus.Event);
|
|
196987
|
-
$r = $send(w[0].focusEventChan, $clone($clone(e$4, focus.Event), focus.Event)); /* */ $s =
|
|
196988
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
196989
|
-
|
|
197163
|
+
$r = $send(w[0].focusEventChan, $clone($clone(e$4, focus.Event), focus.Event)); /* */ $s = 20; case 20: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197164
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 21; case 21: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197165
|
+
$s = 10; continue;
|
|
197166
|
+
/* } else if ($assertType(_ref, touch.Event, true)[1]) { */ case 9:
|
|
197167
|
+
e$5 = $clone(_ref.$val, touch.Event);
|
|
197168
|
+
$r = $send(w[0].touchEventChan, $clone($clone(e$5, touch.Event), touch.Event)); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197169
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 23; case 23: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197170
|
+
/* } */ case 10:
|
|
196990
197171
|
$s = 1; continue;
|
|
196991
197172
|
case 2:
|
|
196992
197173
|
$s = -1; return;
|
|
196993
|
-
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r$1, _ref, e, e$1, e$2, e$3, e$4, $s};return $f;
|
|
197174
|
+
/* */ } return; } var $f = {$blk: $b, $c: true, $r, _r$1, _ref, e, e$1, e$2, e$3, e$4, e$5, $s};return $f;
|
|
196994
197175
|
}; })(w, windowChannel), []);
|
|
196995
197176
|
$s = -1; return err;
|
|
196996
197177
|
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.startWindow, $c: true, $r, _r, err, w, windowChannel, $s};return $f;
|
|
@@ -197137,6 +197318,8 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197137
197318
|
w[0].mouseHandler.Start();
|
|
197138
197319
|
w[0].sizeHandler = window.NewSizeHandler(w[0].sizeEventChan, metadataSender);
|
|
197139
197320
|
w[0].sizeHandler.Start();
|
|
197321
|
+
w[0].touchHandler = input.NewTouchHandler(w[0].touchEventChan, metadataSender);
|
|
197322
|
+
w[0].touchHandler.Start();
|
|
197140
197323
|
$go($methodVal(w[0], "startTimestampSyncing"), []);
|
|
197141
197324
|
$go($methodVal(w[0], "startStatsSyncing"), []);
|
|
197142
197325
|
w[0].metadataServer.OnClose((function(w) { return function $b() {
|
|
@@ -197144,11 +197327,13 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197144
197327
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
197145
197328
|
w[0].metadataServer = ptrType$2.nil;
|
|
197146
197329
|
w[0].keyHandler.Close();
|
|
197147
|
-
w[0].keyHandler = ptrType$
|
|
197330
|
+
w[0].keyHandler = ptrType$8.nil;
|
|
197148
197331
|
w[0].mouseHandler.Close();
|
|
197149
|
-
w[0].mouseHandler = ptrType$
|
|
197332
|
+
w[0].mouseHandler = ptrType$9.nil;
|
|
197150
197333
|
w[0].sizeHandler.Close();
|
|
197151
197334
|
w[0].sizeHandler = ptrType$6.nil;
|
|
197335
|
+
w[0].touchHandler.Close();
|
|
197336
|
+
w[0].touchHandler = ptrType$7.nil;
|
|
197152
197337
|
_r$7 = w[0].retriableOpen(-1, $methodVal(w[0], "openMetadata")); /* */ $s = 1; case 1: if($c) { $c = false; _r$7 = _r$7.$blk(); } if (_r$7 && _r$7.$blk !== undefined) { break s; }
|
|
197153
197338
|
err$1 = _r$7;
|
|
197154
197339
|
/* */ if (!($interfaceIsEqual(err$1, $ifaceNil))) { $s = 2; continue; }
|
|
@@ -197354,9 +197539,9 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197354
197539
|
/* */ if (_r$9) { $s = 4; continue; }
|
|
197355
197540
|
/* */ $s = 5; continue;
|
|
197356
197541
|
/* if (_r$9) { */ case 4:
|
|
197357
|
-
if (!(w[0].pinger === ptrType$
|
|
197542
|
+
if (!(w[0].pinger === ptrType$10.nil)) {
|
|
197358
197543
|
w[0].pinger.Close();
|
|
197359
|
-
w[0].pinger = ptrType$
|
|
197544
|
+
w[0].pinger = ptrType$10.nil;
|
|
197360
197545
|
}
|
|
197361
197546
|
if (!(w[0].collectionLoop === ptrType$3.nil)) {
|
|
197362
197547
|
w[0].collectionLoop.Stop();
|
|
@@ -197629,9 +197814,9 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197629
197814
|
return path.Join(new sliceType$3([m.processDir, "S-" + m.username]));
|
|
197630
197815
|
};
|
|
197631
197816
|
ProcessInfoManager.prototype.getUserProcessDirPath = function() { return this.$val.getUserProcessDirPath(); };
|
|
197632
|
-
ptrType$
|
|
197817
|
+
ptrType$12.methods = [{prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "OnClose", name: "OnClose", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "startWindow", name: "startWindow", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "startClipboard", name: "startClipboard", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "retriableOpen", name: "retriableOpen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([$Int, funcType$1], [$error], false)}, {prop: "openMetadata", name: "openMetadata", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createMetadataResponsiveSender", name: "createMetadataResponsiveSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [ptrType$11], false)}, {prop: "createMetadataSender", name: "createMetadataSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "createScreenSender", name: "createScreenSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "startTimestampSyncing", name: "startTimestampSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "startStatsSyncing", name: "startStatsSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "sendStats", name: "sendStats", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "getFrameHealthCheckTimeout", name: "getFrameHealthCheckTimeout", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [time.Duration], false)}, {prop: "openScreen", name: "openScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createScreenBuffer", name: "createScreenBuffer", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.Buffer, $error], false)}];
|
|
197633
197818
|
ptrType.methods = [{prop: "CreateProcessInfo", name: "CreateProcessInfo", pkg: "", typ: $funcType([$String, $Int], [$error], false)}, {prop: "RemoveProcessInfo", name: "RemoveProcessInfo", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "WaitProcess", name: "WaitProcess", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "GetProcessInfo", name: "GetProcessInfo", pkg: "", typ: $funcType([$String], [ProcessInfo, $error], false)}, {prop: "ListScreenIDs", name: "ListScreenIDs", pkg: "", typ: $funcType([], [sliceType$3, $error], false)}, {prop: "getUserProcessDirPath", name: "getUserProcessDirPath", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$String], false)}];
|
|
197634
|
-
ScreenWindow.init("github.com/supraio/client-daemon/pkg/render", [{prop: "processInfoManager", name: "processInfoManager", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "screenDriver", name: "screenDriver", embedded: false, exported: false, typ: netpacket.Driver, tag: ""}, {prop: "screenHost", name: "screenHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "metadataDriver", name: "metadataDriver", embedded: false, exported: false, typ: netstream.Driver, tag: ""}, {prop: "metadataHost", name: "metadataHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientID", name: "clientID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientSecret", name: "clientSecret", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "screenID", name: "screenID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "secure", name: "secure", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "screenSize", name: "screenSize", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "timeoutDuration", name: "timeoutDuration", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "onClose", name: "onClose", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "screen", name: "screen", embedded: false, exported: false, typ: screen.Screen, tag: ""}, {prop: "screenConn", name: "screenConn", embedded: false, exported: false, typ: netpacket.ReaderWriterCloser, tag: ""}, {prop: "metadataServer", name: "metadataServer", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "collectionLoop", name: "collectionLoop", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "decoderLoop", name: "decoderLoop", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "renderingLoop", name: "renderingLoop", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "sizeHandler", name: "sizeHandler", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "keyHandler", name: "keyHandler", embedded: false, exported: false, typ: ptrType$
|
|
197819
|
+
ScreenWindow.init("github.com/supraio/client-daemon/pkg/render", [{prop: "processInfoManager", name: "processInfoManager", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "screenDriver", name: "screenDriver", embedded: false, exported: false, typ: netpacket.Driver, tag: ""}, {prop: "screenHost", name: "screenHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "metadataDriver", name: "metadataDriver", embedded: false, exported: false, typ: netstream.Driver, tag: ""}, {prop: "metadataHost", name: "metadataHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientID", name: "clientID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientSecret", name: "clientSecret", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "screenID", name: "screenID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "secure", name: "secure", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "screenSize", name: "screenSize", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "timeoutDuration", name: "timeoutDuration", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "onClose", name: "onClose", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "screen", name: "screen", embedded: false, exported: false, typ: screen.Screen, tag: ""}, {prop: "screenConn", name: "screenConn", embedded: false, exported: false, typ: netpacket.ReaderWriterCloser, tag: ""}, {prop: "metadataServer", name: "metadataServer", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "collectionLoop", name: "collectionLoop", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "decoderLoop", name: "decoderLoop", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "renderingLoop", name: "renderingLoop", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "sizeHandler", name: "sizeHandler", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "touchHandler", name: "touchHandler", embedded: false, exported: false, typ: ptrType$7, tag: ""}, {prop: "keyHandler", name: "keyHandler", embedded: false, exported: false, typ: ptrType$8, tag: ""}, {prop: "mouseHandler", name: "mouseHandler", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "pinger", name: "pinger", embedded: false, exported: false, typ: ptrType$10, tag: ""}, {prop: "keyEventChan", name: "keyEventChan", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "mouseEventChan", name: "mouseEventChan", embedded: false, exported: false, typ: chanType$1, tag: ""}, {prop: "sizeEventChan", name: "sizeEventChan", embedded: false, exported: false, typ: chanType$2, tag: ""}, {prop: "focusEventChan", name: "focusEventChan", embedded: false, exported: false, typ: chanType$3, tag: ""}, {prop: "touchEventChan", name: "touchEventChan", embedded: false, exported: false, typ: chanType$4, tag: ""}, {prop: "winCloseChannel", name: "winCloseChannel", embedded: false, exported: false, typ: chanType$5, tag: ""}]);
|
|
197635
197820
|
ProcessInfo.init("", [{prop: "ScreenID", name: "ScreenID", embedded: false, exported: true, typ: $String, tag: ""}, {prop: "Pid", name: "Pid", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
197636
197821
|
ProcessInfoManager.init("github.com/supraio/client-daemon/pkg/render", [{prop: "username", name: "username", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "processDir", name: "processDir", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
197637
197822
|
$init = function() {
|
|
@@ -197668,16 +197853,17 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197668
197853
|
$r = lifecycle.$init(); /* */ $s = 29; case 29: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197669
197854
|
$r = mouse.$init(); /* */ $s = 30; case 30: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197670
197855
|
$r = size.$init(); /* */ $s = 31; case 31: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197671
|
-
$r =
|
|
197672
|
-
$r =
|
|
197673
|
-
$r =
|
|
197674
|
-
$r =
|
|
197675
|
-
$r =
|
|
197676
|
-
$r =
|
|
197677
|
-
$r =
|
|
197678
|
-
$r =
|
|
197679
|
-
$r =
|
|
197680
|
-
$r =
|
|
197856
|
+
$r = touch.$init(); /* */ $s = 32; case 32: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197857
|
+
$r = image.$init(); /* */ $s = 33; case 33: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197858
|
+
$r = io.$init(); /* */ $s = 34; case 34: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197859
|
+
$r = ioutil.$init(); /* */ $s = 35; case 35: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197860
|
+
$r = log.$init(); /* */ $s = 36; case 36: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197861
|
+
$r = os.$init(); /* */ $s = 37; case 37: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197862
|
+
$r = path.$init(); /* */ $s = 38; case 38: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197863
|
+
$r = strings.$init(); /* */ $s = 39; case 39: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197864
|
+
$r = sync.$init(); /* */ $s = 40; case 40: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197865
|
+
$r = js.$init(); /* */ $s = 41; case 41: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197866
|
+
$r = time.$init(); /* */ $s = 42; case 42: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197681
197867
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
197682
197868
|
};
|
|
197683
197869
|
$pkg.$init = $init;
|