@supraio/client-daemon-js 0.0.0-jvmaster.365 → 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/daemon.html +1 -1
- package/daemon.js +2 -4
- package/daemon.js.map +2 -2
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +4 -10
- package/screen.js.map +2 -2
- package/sdk.js +6 -13
- package/sdk.js.map +2 -2
- package/supra-client-daemon.js +234 -130
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +2831 -340
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/sdk.js
CHANGED
|
@@ -18081,7 +18081,7 @@ async function initGoEnvironment() {
|
|
|
18081
18081
|
}
|
|
18082
18082
|
|
|
18083
18083
|
// daemon/plain.ts
|
|
18084
|
-
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-jvmaster.
|
|
18084
|
+
var DAEMON_JS_URL = "supra-client-daemon.js?v=0.0.0-jvmaster.366-jvmaster.375";
|
|
18085
18085
|
async function startPlainDaemon() {
|
|
18086
18086
|
const fs = await initBrowserFS();
|
|
18087
18087
|
window.fs = fs;
|
|
@@ -18092,7 +18092,7 @@ async function startPlainDaemon() {
|
|
|
18092
18092
|
}
|
|
18093
18093
|
|
|
18094
18094
|
// daemon/wasm.ts
|
|
18095
|
-
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-jvmaster.
|
|
18095
|
+
var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=0.0.0-jvmaster.366-jvmaster.375";
|
|
18096
18096
|
async function startWasmDaemon() {
|
|
18097
18097
|
await initGoEnvironment();
|
|
18098
18098
|
await startGoDaemon();
|
|
@@ -18161,7 +18161,7 @@ function getGoArgv2(binFile, options) {
|
|
|
18161
18161
|
}
|
|
18162
18162
|
|
|
18163
18163
|
// screen/plain.ts
|
|
18164
|
-
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-jvmaster.
|
|
18164
|
+
var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-jvmaster.366-jvmaster.375";
|
|
18165
18165
|
async function startPlainScreen(options) {
|
|
18166
18166
|
options = options != null ? options : parseQueryOptions();
|
|
18167
18167
|
initNaCLDecoder();
|
|
@@ -18176,22 +18176,19 @@ async function startPlainScreen(options) {
|
|
|
18176
18176
|
// screen/h264decoder.ts
|
|
18177
18177
|
async function initH264Decoder() {
|
|
18178
18178
|
window.h264Decoder = await createH264Decoder();
|
|
18179
|
-
console.log("ASDF[TS] initH264Decoder done, window.h264Decoder: " + window.h264Decoder);
|
|
18180
18179
|
}
|
|
18181
18180
|
async function createH264Decoder() {
|
|
18182
|
-
const { H264Decoder: H264Decoder2 } = (init_dist(),
|
|
18181
|
+
const { H264Decoder: H264Decoder2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
|
|
18183
18182
|
if (!H264Decoder2.isReady) {
|
|
18184
18183
|
await H264Decoder2.readyPromise;
|
|
18185
18184
|
}
|
|
18186
|
-
|
|
18187
|
-
return h264Decoder;
|
|
18185
|
+
return new H264Decoder2();
|
|
18188
18186
|
}
|
|
18189
18187
|
|
|
18190
18188
|
// screen/wasm.ts
|
|
18191
|
-
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-jvmaster.
|
|
18189
|
+
var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-jvmaster.366-jvmaster.375";
|
|
18192
18190
|
async function startWasmScreen(options) {
|
|
18193
18191
|
options = options != null ? options : parseQueryOptions();
|
|
18194
|
-
console.log("ASDF[TS] startWasmScreen, options: " + options);
|
|
18195
18192
|
await initH264Decoder();
|
|
18196
18193
|
await initGoEnvironment();
|
|
18197
18194
|
await startGoScreen(options);
|
|
@@ -18208,19 +18205,15 @@ async function startGoScreen(options) {
|
|
|
18208
18205
|
// sdk.ts
|
|
18209
18206
|
async function startDaemon(options) {
|
|
18210
18207
|
if (shouldUsePlainJS(options)) {
|
|
18211
|
-
console.log("ASDF[TS] startDaemon: starting plain daemon");
|
|
18212
18208
|
startPlainDaemon();
|
|
18213
18209
|
} else {
|
|
18214
|
-
console.log("ASDF[TS] startDaemon: starting wasm daemon");
|
|
18215
18210
|
startWasmDaemon();
|
|
18216
18211
|
}
|
|
18217
18212
|
}
|
|
18218
18213
|
async function startScreen(options) {
|
|
18219
18214
|
if (shouldUsePlainJS(options)) {
|
|
18220
|
-
console.log("ASDF[TS] startScreen: starting plain screen");
|
|
18221
18215
|
await startPlainScreen(options);
|
|
18222
18216
|
} else {
|
|
18223
|
-
console.log("ASDF[TS] startScreen: starting wasm screen");
|
|
18224
18217
|
await startWasmScreen(options);
|
|
18225
18218
|
}
|
|
18226
18219
|
}
|