Skip to content

Commit 0dbd09c

Browse files
committed
fix(lib): fix zoom ratio max value
1 parent abca7aa commit 0dbd09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class ApiVideoLiveStream {
114114
}
115115
set(newValue) {
116116
guard let device = rtmpStream.videoCapture(for: 0)?.device, newValue >= 1,
117-
newValue < device.activeFormat.videoMaxZoomFactor else
117+
newValue <= device.activeFormat.videoMaxZoomFactor else
118118
{
119119
return
120120
}

0 commit comments

Comments
 (0)