Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/LiveKit/Track/Capturers/CameraCapturer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import ReplayKit

internal import LiveKitWebRTC

@available(iOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
@available(tvOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
public class CameraCapturer: VideoCapturer, @unchecked Sendable {
/// Current device used for capturing
@objc
Expand Down Expand Up @@ -284,6 +286,8 @@ class VideoCapturerDelegateAdapter: NSObject, LKRTCVideoCapturerDelegate, Loggab
}
}

@available(iOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
@available(tvOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
public extension LocalVideoTrack {
@objc
static func createCameraTrack() -> LocalVideoTrack {
Expand Down
8 changes: 6 additions & 2 deletions Sources/LiveKit/Views/VideoView+PinchToZoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ extension VideoView {
/// Auto reset to default zoom level when pinch is released.
public static let resetOnRelease = PinchToZoomOptions(rawValue: 1 << 2)
}
}

#if os(iOS)
#if os(iOS)
@available(iOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
@available(tvOSApplicationExtension, unavailable, message: "Camera capture is not supported in app extensions.")
extension VideoView {
func _rampZoomFactorToAllowedBounds(options: PinchToZoomOptions) {
guard let device = _currentCaptureDevice else { return }

Expand Down Expand Up @@ -112,5 +116,5 @@ extension VideoView {

return lowerBound ... upperBound
}
#endif
}
#endif
Loading