Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Comment thread
larryrider marked this conversation as resolved.
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
},
Expand Down
2 changes: 1 addition & 1 deletion modules/RTC/JitsiLocalTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/';

Expand Down
2 changes: 1 addition & 1 deletion modules/RTC/JitsiRemoteTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/decoder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading