@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/dist/engine/media/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/engine/media/index.ts +5 -5
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -211,9 +211,9 @@ class Media {
|
|
|
211
211
|
this.tracks.set(track.getLabel(), track);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
initEffectsSDK(): Promise<
|
|
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);
|