diff --git a/package-lock.json b/package-lock.json index 51fb32a1..218392a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41174,7 +41174,7 @@ }, "packages/millicast-sdk": { "name": "@millicast/sdk", - "version": "0.3.0-RC-4", + "version": "0.3.0-RC-5", "license": "See in LICENSE file", "dependencies": { "@dolbyio/webrtc-stats": "^1.0.2", diff --git a/packages/millicast-sdk/package-lock.json b/packages/millicast-sdk/package-lock.json index 93a9cbe5..d95a89ea 100644 --- a/packages/millicast-sdk/package-lock.json +++ b/packages/millicast-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@millicast/sdk", - "version": "0.3.0-RC-3", + "version": "0.3.0-RC-5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@millicast/sdk", - "version": "0.3.0-RC-3", + "version": "0.3.0-RC-5", "license": "See in LICENSE file", "dependencies": { "@dolbyio/webrtc-stats": "^0.4.0", diff --git a/packages/millicast-sdk/package.json b/packages/millicast-sdk/package.json index 3d8cf52f..83e99f03 100644 --- a/packages/millicast-sdk/package.json +++ b/packages/millicast-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@millicast/sdk", - "version": "0.3.0-RC-4", + "version": "0.3.0-RC-5", "description": "SDK for building a realtime broadcaster using the Millicast platform.", "keywords": [ "sdk", diff --git a/packages/millicast-sdk/src/View.js b/packages/millicast-sdk/src/View.js index 20c5f970..d3ccf306 100644 --- a/packages/millicast-sdk/src/View.js +++ b/packages/millicast-sdk/src/View.js @@ -326,6 +326,9 @@ export default class View extends BaseWebRTC { logger.error('Failed to apply DRM on media Id:', mediaId, 'error is: ', error) this.emit('error', new Error('Failed to apply DRM on media Id: ' + mediaId + ' error is: ' + error)) } + if (!this.worker) { + this.worker = new TransformWorker() + } this.worker.addEventListener('message', (message) => { if (message.data.event === 'complete') { // feed the frame to DRM processing worker