diff --git a/apps/100ms-custom-app/package.json b/apps/100ms-custom-app/package.json index 1a62730554..027d39f61f 100644 --- a/apps/100ms-custom-app/package.json +++ b/apps/100ms-custom-app/package.json @@ -3,8 +3,8 @@ "version": "0.1.0", "private": true, "dependencies": { - "@100mslive/react-icons": "0.8.20", - "@100mslive/roomkit-react": "0.1.11", + "@100mslive/react-icons": "0.8.21", + "@100mslive/roomkit-react": "0.1.12", "axios": "^0.21.1", "js-cookies": "^1.0.4", "lodash.merge": "^4.6.2", diff --git a/apps/100ms-web/package.json b/apps/100ms-web/package.json index c92e3cda32..0af0865c33 100644 --- a/apps/100ms-web/package.json +++ b/apps/100ms-web/package.json @@ -9,11 +9,11 @@ "src" ], "dependencies": { - "@100mslive/hls-player": "0.1.20", - "@100mslive/hms-virtual-background": "1.11.20", - "@100mslive/react-icons": "0.8.20", - "@100mslive/react-sdk": "0.8.20", - "@100mslive/roomkit-react": "0.1.11", + "@100mslive/hls-player": "0.1.21", + "@100mslive/hms-virtual-background": "1.11.21", + "@100mslive/react-icons": "0.8.21", + "@100mslive/react-sdk": "0.8.21", + "@100mslive/roomkit-react": "0.1.12", "@emoji-mart/data": "^1.0.6", "@emoji-mart/react": "^1.0.1", "@tldraw/tldraw": "^1.18.4", diff --git a/packages/hls-player/package.json b/packages/hls-player/package.json index c3882a1005..9b0e87641b 100644 --- a/packages/hls-player/package.json +++ b/packages/hls-player/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/hls-player", - "version": "0.1.20", + "version": "0.1.21", "description": "HLS client library which uses HTML5 Video element and Media Source Extension for playback", "main": "dist/index.cjs.js", "module": "dist/index.js", @@ -31,7 +31,7 @@ "author": "100ms", "license": "MIT", "dependencies": { - "@100mslive/hls-stats": "0.2.20", + "@100mslive/hls-stats": "0.2.21", "eventemitter2": "^6.4.7", "hls.js": "1.4.12" } diff --git a/packages/hls-stats/package.json b/packages/hls-stats/package.json index 3dd9bf2b6e..1d458b991a 100644 --- a/packages/hls-stats/package.json +++ b/packages/hls-stats/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/hls-stats", - "version": "0.2.20", + "version": "0.2.21", "description": "A simple library that provides stats for your hls stream", "main": "dist/index.cjs.js", "module": "dist/index.js", diff --git a/packages/hms-noise-suppression/package.json b/packages/hms-noise-suppression/package.json index 89b44a9103..591b4aef5b 100644 --- a/packages/hms-noise-suppression/package.json +++ b/packages/hms-noise-suppression/package.json @@ -1,5 +1,5 @@ { - "version": "0.9.20", + "version": "0.9.21", "license": "MIT", "main": "dist/index.cjs.js", "typings": "dist/index.d.ts", @@ -37,6 +37,6 @@ "author": "vishaldhull09", "module": "dist/index.js", "devDependencies": { - "@100mslive/hms-video": "0.9.20" + "@100mslive/hms-video": "0.9.21" } } diff --git a/packages/hms-video-store/package.json b/packages/hms-video-store/package.json index 3e2551a040..002fed5e6e 100644 --- a/packages/hms-video-store/package.json +++ b/packages/hms-video-store/package.json @@ -1,5 +1,5 @@ { - "version": "0.10.20", + "version": "0.10.21", "license": "MIT", "main": "dist/index.cjs.js", "module": "dist/index.js", @@ -41,7 +41,7 @@ "author": "100ms", "sideEffects": false, "dependencies": { - "@100mslive/hms-video": "0.9.20", + "@100mslive/hms-video": "0.9.21", "eventemitter2": "^6.4.7", "immer": "^9.0.6", "reselect": "4.0.0", diff --git a/packages/hms-video-web/package.json b/packages/hms-video-web/package.json index 07c24122bd..66c2e62f30 100644 --- a/packages/hms-video-web/package.json +++ b/packages/hms-video-web/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/hms-video", - "version": "0.9.20", + "version": "0.9.21", "license": "MIT", "main": "dist/index.cjs.js", "typings": "dist/index.d.ts", diff --git a/packages/hms-video-web/src/utils/timer-utils.ts b/packages/hms-video-web/src/utils/timer-utils.ts index 3696536dfe..717224ee89 100644 --- a/packages/hms-video-web/src/utils/timer-utils.ts +++ b/packages/hms-video-web/src/utils/timer-utils.ts @@ -14,8 +14,6 @@ export const worker = `(function metronomeWorkerSetup() { }; })()`; -const WorkerThread = new Worker(URL.createObjectURL(new Blob([worker], { type: 'application/javascript' }))); - /** * Delay for a @see ms amount of time * @param ms -- time in milliseconds @@ -34,12 +32,16 @@ export function workerSleep(ms: number): Promise { if (ms < 0) { throw Error('`ms` should be a positive integer'); } - // const buffer = new ArrayBuffer(8); + if (typeof Worker === 'undefined') { + return sleep(ms); + } + const WorkerThread = new Worker(URL.createObjectURL(new Blob([worker], { type: 'application/javascript' }))); WorkerThread.postMessage(['start', ms]); return new Promise(resolve => { WorkerThread.onmessage = event => { if (event.data === 'tick') { resolve(); + WorkerThread.terminate(); } }; }); diff --git a/packages/hms-virtual-background/package.json b/packages/hms-virtual-background/package.json index 6c8c97485a..da7356c9b9 100755 --- a/packages/hms-virtual-background/package.json +++ b/packages/hms-virtual-background/package.json @@ -1,5 +1,5 @@ { - "version": "1.11.20", + "version": "1.11.21", "license": "MIT", "main": "dist/index.cjs.js", "typings": "dist/index.d.ts", @@ -24,13 +24,13 @@ "format": "prettier --write src/**/*.ts" }, "peerDependencies": { - "@100mslive/hms-video": "^0.7.2" + "@100mslive/hms-video": "0.9.21" }, "name": "@100mslive/hms-virtual-background", "author": "ashish17", "module": "dist/index.js", "devDependencies": { - "@100mslive/hms-video": "0.9.20" + "@100mslive/hms-video": "0.9.21" }, "dependencies": { "@mediapipe/selfie_segmentation": "^0.1.1632777926", diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 8366b0406f..3631805a3f 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -4,7 +4,7 @@ "main": "dist/index.cjs.js", "module": "dist/index.js", "typings": "dist/index.d.ts", - "version": "0.8.20", + "version": "0.8.21", "author": "100ms", "license": "MIT", "files": [ diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json index 11118a4ab7..b812ffa4ba 100644 --- a/packages/react-sdk/package.json +++ b/packages/react-sdk/package.json @@ -4,7 +4,7 @@ "main": "dist/index.cjs.js", "module": "dist/index.js", "typings": "dist/index.d.ts", - "version": "0.8.20", + "version": "0.8.21", "author": "100ms", "license": "MIT", "files": [ @@ -43,7 +43,7 @@ "react": ">=16.8 <19.0.0" }, "dependencies": { - "@100mslive/hms-video-store": "0.10.20", + "@100mslive/hms-video-store": "0.10.21", "react-resize-detector": "^7.0.0", "zustand": "^3.6.2" } diff --git a/packages/roomkit-react/package.json b/packages/roomkit-react/package.json index 1f83ac95dc..78113a5534 100644 --- a/packages/roomkit-react/package.json +++ b/packages/roomkit-react/package.json @@ -10,7 +10,7 @@ "prebuilt", "roomkit" ], - "version": "0.1.11", + "version": "0.1.12", "author": "100ms", "license": "MIT", "files": [ @@ -76,10 +76,10 @@ "react": ">=17.0.2 <19.0.0" }, "dependencies": { - "@100mslive/hls-player": "0.1.20", - "@100mslive/hms-virtual-background": "1.11.20", - "@100mslive/react-icons": "0.8.20", - "@100mslive/react-sdk": "0.8.20", + "@100mslive/hls-player": "0.1.21", + "@100mslive/hms-virtual-background": "1.11.21", + "@100mslive/react-icons": "0.8.21", + "@100mslive/react-sdk": "0.8.21", "@100mslive/types-prebuilt": "0.12.0", "@emoji-mart/data": "^1.0.6", "@emoji-mart/react": "^1.0.1", diff --git a/packages/roomkit-web/package.json b/packages/roomkit-web/package.json index 693fd28dc0..1180c9b793 100644 --- a/packages/roomkit-web/package.json +++ b/packages/roomkit-web/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/roomkit-web", - "version": "0.0.4", + "version": "0.0.5", "description": "A web component implementation of 100ms Prebuilt component", "keywords": [ "web-components", @@ -28,7 +28,7 @@ "build": "rm -rf dist && node ../../scripts/build-webapp" }, "dependencies": { - "@100mslive/roomkit-react": "0.1.11", + "@100mslive/roomkit-react": "0.1.12", "@r2wc/react-to-web-component": "2.0.2" } }