@viji-dev/core 0.3.2 → 0.3.4
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/dist/assets/{viji.worker-BGYUuaFF.js → viji.worker-Cx1WpxdF.js} +11 -9
- package/dist/assets/{viji.worker-BGYUuaFF.js.map → viji.worker-Cx1WpxdF.js.map} +1 -1
- package/dist/{essentia-wasm.web-Ca8e6Ylt.js → essentia-wasm.web-tiEk3E7k.js} +2 -2
- package/dist/{essentia-wasm.web-Ca8e6Ylt.js.map → essentia-wasm.web-tiEk3E7k.js.map} +1 -1
- package/dist/{index-BTtBhJW4.js → index-C45WlX2a.js} +43 -11
- package/dist/{index-BTtBhJW4.js.map → index-C45WlX2a.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -3960,20 +3960,22 @@ class VijiWorkerRuntime {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
handleVideoFrameUpdate(message) {
|
|
3962
3962
|
const index = message.data.streamIndex || 0;
|
|
3963
|
-
|
|
3964
|
-
|
|
3963
|
+
const vs = this.videoSystems[index];
|
|
3964
|
+
if (vs) {
|
|
3965
|
+
vs.handleFrameUpdate({
|
|
3965
3966
|
imageBitmap: message.data.imageBitmap,
|
|
3966
3967
|
timestamp: message.data.timestamp
|
|
3967
3968
|
});
|
|
3968
|
-
if (
|
|
3969
|
-
Object.assign(this.viji.video,
|
|
3969
|
+
if (vs.getStreamType() === "main") {
|
|
3970
|
+
Object.assign(this.viji.video, vs.getVideoAPI());
|
|
3970
3971
|
}
|
|
3971
3972
|
}
|
|
3972
3973
|
}
|
|
3973
3974
|
handleVideoConfigUpdate(message) {
|
|
3974
3975
|
const index = message.data.streamIndex || 0;
|
|
3975
|
-
|
|
3976
|
-
|
|
3976
|
+
const vs = this.videoSystems[index];
|
|
3977
|
+
if (vs) {
|
|
3978
|
+
vs.handleVideoConfigUpdate({
|
|
3977
3979
|
...message.data.targetFrameRate && { targetFrameRate: message.data.targetFrameRate },
|
|
3978
3980
|
...message.data.cvConfig && { cvConfig: message.data.cvConfig },
|
|
3979
3981
|
...message.data.width && { width: message.data.width },
|
|
@@ -3981,8 +3983,8 @@ class VijiWorkerRuntime {
|
|
|
3981
3983
|
...message.data.disconnect && { disconnect: message.data.disconnect },
|
|
3982
3984
|
timestamp: message.data.timestamp
|
|
3983
3985
|
});
|
|
3984
|
-
if (
|
|
3985
|
-
Object.assign(this.viji.video,
|
|
3986
|
+
if (vs.getStreamType() === "main") {
|
|
3987
|
+
Object.assign(this.viji.video, vs.getVideoAPI());
|
|
3986
3988
|
}
|
|
3987
3989
|
}
|
|
3988
3990
|
}
|
|
@@ -4301,4 +4303,4 @@ async function setSceneCode(sceneCode) {
|
|
|
4301
4303
|
}
|
|
4302
4304
|
}
|
|
4303
4305
|
self.setSceneCode = setSceneCode;
|
|
4304
|
-
//# sourceMappingURL=viji.worker-
|
|
4306
|
+
//# sourceMappingURL=viji.worker-Cx1WpxdF.js.map
|