@supraio/client-daemon-js 0.0.0-jvmaster.366 → 0.0.0-jvmaster.366-jvmaster.375

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supraio/client-daemon-js",
3
- "version": "0.0.0-jvmaster.366",
3
+ "version": "0.0.0-jvmaster.366-jvmaster.375",
4
4
  "description": "",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",
package/screen.html CHANGED
@@ -5,6 +5,6 @@
5
5
  <link rel="stylesheet" href="screen.css"></link>
6
6
  </head>
7
7
  <body>
8
- <script type="text/javascript" src="screen.js?v=0.0.0-jvmaster.366"></script>
8
+ <script type="text/javascript" src="screen.js?v=0.0.0-jvmaster.366-jvmaster.375"></script>
9
9
  </body>
10
10
  </html>
package/screen.js CHANGED
@@ -31,7 +31,6 @@
31
31
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
32
  mod
33
33
  ));
34
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
34
 
36
35
  // node_modules/browserfs/dist/browserfs.js
37
36
  var require_browserfs = __commonJS({
@@ -18124,7 +18123,7 @@
18124
18123
  }
18125
18124
 
18126
18125
  // screen/plain.ts
18127
- var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-jvmaster.366";
18126
+ var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-jvmaster.366-jvmaster.375";
18128
18127
  async function startPlainScreen(options) {
18129
18128
  options = options != null ? options : parseQueryOptions();
18130
18129
  initNaCLDecoder();
@@ -18139,22 +18138,19 @@
18139
18138
  // screen/h264decoder.ts
18140
18139
  async function initH264Decoder() {
18141
18140
  window.h264Decoder = await createH264Decoder();
18142
- console.log("ASDF[TS] initH264Decoder done, window.h264Decoder: " + window.h264Decoder);
18143
18141
  }
18144
18142
  async function createH264Decoder() {
18145
- const { H264Decoder: H264Decoder2 } = (init_dist(), __toCommonJS(dist_exports));
18143
+ const { H264Decoder: H264Decoder2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
18146
18144
  if (!H264Decoder2.isReady) {
18147
18145
  await H264Decoder2.readyPromise;
18148
18146
  }
18149
- const h264Decoder = new H264Decoder2();
18150
- return h264Decoder;
18147
+ return new H264Decoder2();
18151
18148
  }
18152
18149
 
18153
18150
  // screen/wasm.ts
18154
- var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-jvmaster.366";
18151
+ var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-jvmaster.366-jvmaster.375";
18155
18152
  async function startWasmScreen(options) {
18156
18153
  options = options != null ? options : parseQueryOptions();
18157
- console.log("ASDF[TS] startWasmScreen, options: " + options);
18158
18154
  await initH264Decoder();
18159
18155
  await initGoEnvironment();
18160
18156
  await startGoScreen(options);
@@ -18171,10 +18167,8 @@
18171
18167
  // sdk.ts
18172
18168
  async function startScreen(options) {
18173
18169
  if (shouldUsePlainJS(options)) {
18174
- console.log("ASDF[TS] startScreen: starting plain screen");
18175
18170
  await startPlainScreen(options);
18176
18171
  } else {
18177
- console.log("ASDF[TS] startScreen: starting wasm screen");
18178
18172
  await startWasmScreen(options);
18179
18173
  }
18180
18174
  }