From 0dbd09c41ddc95003b4cf6cd3dba2404617f32db Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Wed, 2 Oct 2024 10:23:59 +0200 Subject: [PATCH] fix(lib): fix zoom ratio max value --- Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift b/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift index aa0eb32..8f5447a 100644 --- a/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift +++ b/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift @@ -114,7 +114,7 @@ public class ApiVideoLiveStream { } set(newValue) { guard let device = rtmpStream.videoCapture(for: 0)?.device, newValue >= 1, - newValue < device.activeFormat.videoMaxZoomFactor else + newValue <= device.activeFormat.videoMaxZoomFactor else { return }