@livedigital/client 3.18.1 → 3.19.0

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "3.18.1",
5
+ "version": "3.19.0",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -211,9 +211,9 @@ class Media {
211
211
  this.tracks.set(track.getLabel(), track);
212
212
  }
213
213
 
214
- initEffectsSDK(): Promise<void> {
214
+ initEffectsSDK(): Promise<boolean> {
215
215
  if (this.#effectsSDKInitialized) {
216
- return Promise.resolve();
216
+ return Promise.resolve(true);
217
217
  }
218
218
 
219
219
  if (!this.#effectsSDKParams) {
@@ -221,10 +221,10 @@ class Media {
221
221
  throw new Error('Effects SDK config not provided');
222
222
  }
223
223
 
224
- const init = async (resolve: () => void, reject: (error: Error) => void) => {
224
+ const init = async (resolve: (value: boolean) => void, reject: (error: Error) => void) => {
225
225
  if (!window.tsvb) {
226
226
  this.#logger.info('Effects SDK not loaded, skipping initialization', { case: 'initEffectsSDK' });
227
- resolve();
227
+ resolve(false);
228
228
  return;
229
229
  }
230
230
 
@@ -239,7 +239,7 @@ class Media {
239
239
  );
240
240
  this.#effectsSDKInitialized = true;
241
241
  this.#logger.info('Effects SDK initialized', { case: 'initEffectsSDK' });
242
- resolve();
242
+ resolve(true);
243
243
  } catch (error) {
244
244
  this.#logger.error('Failed to initilize Effects SDK', { error, case: 'initEffectsSDK' });
245
245
  reject(error);
package/src/index.ts CHANGED
@@ -121,7 +121,7 @@ class Client {
121
121
  };
122
122
  }
123
123
 
124
- initEffectsSDK() {
124
+ initEffectsSDK(): Promise<boolean> {
125
125
  return this.engine.media.initEffectsSDK();
126
126
  }
127
127