diff --git a/karma.conf.js b/karma.conf.js index 51e3fd26e0..971d43db31 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -50,13 +50,13 @@ module.exports = function(config) { }, { included: false, - pattern: 'node_modules/onnxruntime-web/dist/*.wasm', + pattern: 'node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.wasm', served: true, watched: false }, { included: false, - pattern: 'node_modules/onnxruntime-web/dist/*.mjs', + pattern: 'node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.mjs', served: true, watched: false }, diff --git a/modules/RTC/JitsiLocalTrack.ts b/modules/RTC/JitsiLocalTrack.ts index 62f273546f..564a5240fe 100644 --- a/modules/RTC/JitsiLocalTrack.ts +++ b/modules/RTC/JitsiLocalTrack.ts @@ -28,7 +28,7 @@ import RTCUtils from './RTCUtils'; import TraceablePeerConnection from './TraceablePeerConnection'; // eslint-disable-next-line @typescript-eslint/no-require-imports -const ort = require('onnxruntime-web'); +const ort = require('onnxruntime-web/wasm'); ort.env.wasm.wasmPaths = '/libs/dist/'; diff --git a/modules/RTC/JitsiRemoteTrack.ts b/modules/RTC/JitsiRemoteTrack.ts index a0a5b49d7c..3e4a3d9e97 100644 --- a/modules/RTC/JitsiRemoteTrack.ts +++ b/modules/RTC/JitsiRemoteTrack.ts @@ -18,7 +18,7 @@ import RTCUtils from './RTCUtils'; const logger = getLogger('rtc:JitsiRemoteTrack'); // eslint-disable-next-line @typescript-eslint/no-require-imports -const ort = require('onnxruntime-web'); +const ort = require('onnxruntime-web/wasm'); ort.env.wasm.wasmPaths = '/libs/dist/'; ort.env.wasm.numThreads = 1; diff --git a/package-lock.json b/package-lock.json index cddb6421ab..369ebd977d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "emoji-regex": "10.4.0", "jwt-decode": "4.0.0", "lodash-es": "4.18.1", - "onnxruntime-web": "=1.23.0", + "onnxruntime-web": "1.29.0", "sdp-transform": "2.3.0", "strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz", "uuid": "14.0.0", @@ -7289,21 +7289,21 @@ } }, "node_modules/onnxruntime-common": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.23.0.tgz", - "integrity": "sha512-Auz8S9D7vpF8ok7fzTobvD1XdQDftRf/S7pHmjeCr3Xdymi4z1C7zx4vnT6nnUjbpelZdGwda0BmWHCCTMKUTg==", + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.29.0.tgz", + "integrity": "sha512-/F63/e2VJoaVXGGNu6S5QH7jivBThGO95OzAVXXQ8hTta/b1QxI8udHa6cI3+3mAb5WWIIaMMwfZw01oivjJ1g==", "license": "MIT" }, "node_modules/onnxruntime-web": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.23.0.tgz", - "integrity": "sha512-w0bvC2RwDxphOUFF8jFGZ/dYw+duaX20jM6V4BIZJPCfK4QuCpB/pVREV+hjYbT3x4hyfa2ZbTaWx4e1Vot0fQ==", + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.29.0.tgz", + "integrity": "sha512-LuQlpX6MFLJZu756erwUeb1mNfoJGbs1kzDwJGNlf5RvfYMdqhcY3vNpDPK40CUV2HoWTkIj+uS0o36GFHjeYw==", "license": "MIT", "dependencies": { "flatbuffers": "^25.1.24", "guid-typescript": "^1.0.9", "long": "^5.2.3", - "onnxruntime-common": "1.23.0", + "onnxruntime-common": "1.29.0", "platform": "^1.3.6", "protobufjs": "^7.2.4" } diff --git a/package.json b/package.json index 8f6c09d663..ea1edfb0d9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "emoji-regex": "10.4.0", "jwt-decode": "4.0.0", "lodash-es": "4.18.1", - "onnxruntime-web": "=1.23.0", + "onnxruntime-web": "1.29.0", "sdp-transform": "2.3.0", "strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz", "uuid": "14.0.0", diff --git a/tests/decoder.spec.ts b/tests/decoder.spec.ts index edece180f0..5e61334d7d 100644 --- a/tests/decoder.spec.ts +++ b/tests/decoder.spec.ts @@ -216,7 +216,7 @@ describe('JitsiRemoteTrack decoder', () => { it('if decoder suddenly fails, turns it off and uses original stream', async () => { track.increaseResolution(container); await waitUntil(() => track.isDecoderOn()=== true); - const ort = require('onnxruntime-web'); + const ort = require('onnxruntime-web/wasm'); const badTensor = new ort.Tensor('float32', new Float32Array(0), [ 0, 0, 0, 0 ]); (track as any).inputTensor = badTensor;