@apocaliss92/scrypted-reolink-native 0.3.1 → 0.3.2

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/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apocaliss92/scrypted-reolink-native",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Use any reolink camera with Scrypted, even older/unsupported models without HTTP protocol support",
5
5
  "author": "@apocaliss92",
6
6
  "license": "Apache",
package/src/camera.ts CHANGED
@@ -2534,7 +2534,12 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
2534
2534
  if (!this.streamManager) {
2535
2535
  const logger = this.getBaichuanLogger();
2536
2536
  logger.warn('StreamManager not initialized, initializing now...');
2537
- this.initStreamManager(logger);
2537
+ try {
2538
+ this.initStreamManager(logger);
2539
+ } catch (e) {
2540
+ logger.error('Failed to initialize StreamManager in getVideoStream', e?.message || String(e), e);
2541
+ throw e;
2542
+ }
2538
2543
  }
2539
2544
 
2540
2545
  const streamKey = selected.id;
@@ -2731,7 +2736,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
2731
2736
  this.initStreamManager();
2732
2737
  }
2733
2738
  catch (e) {
2734
- logger.error('Failed to initialize StreamManager', e?.message || String(e));
2739
+ logger.error('Failed to initialize StreamManager in init', e?.message || String(e), e);
2735
2740
  }
2736
2741
 
2737
2742
  const { hasIntercom, hasPtz } = await this.getAbilities();