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 }