diff --git a/src/streaming/unifi-streaming-delegate.ts b/src/streaming/unifi-streaming-delegate.ts index 7a75a03..2d5aff4 100644 --- a/src/streaming/unifi-streaming-delegate.ts +++ b/src/streaming/unifi-streaming-delegate.ts @@ -75,6 +75,7 @@ export class UnifiStreamingDelegate implements CameraStreamingDelegate { this.ongoingSessions = {}; this.pendingSessions = {}; this.videoProcessor = videoProcessor || ffmpegPath || "ffmpeg"; + log.info('VIDEO PROCESSOR: ' + this.videoProcessor); this.cameraConfig = cameraConfig; diff --git a/src/unifi-protect-motion-platform.ts b/src/unifi-protect-motion-platform.ts index b7aceca..e51c927 100644 --- a/src/unifi-protect-motion-platform.ts +++ b/src/unifi-protect-motion-platform.ts @@ -31,7 +31,7 @@ export class UnifiProtectMotionPlatform implements DynamicPlatformPlugin { private uFlows: UnifiFlows; constructor(private readonly log: Logging, private readonly config: PlatformConfig, private readonly api: API) { - if (!config || !this.config.unifi || !this.config.videoConfig) { + if (!config || !this.config.unifi) { this.log.info('Incorrect plugin configuration!'); return; } @@ -39,8 +39,6 @@ export class UnifiProtectMotionPlatform implements DynamicPlatformPlugin { //Set config defaults (this.config.unifi as UnifiConfig).excluded_cameras = (this.config.unifi as UnifiConfig).excluded_cameras ? (this.config.unifi as UnifiConfig).excluded_cameras : []; - log.info('VIDEO PROCESSOR: ' + ((this.config.videoConfig as any).videoProcessor || pathToFfmpeg || 'ffmpeg')); - this.api.on(APIEvent.DID_FINISH_LAUNCHING, () => { //Hack to get async functions! setTimeout(async () => {