diff --git a/Sources/LKObjCHelpers/LKObjcCHelpers.m b/Sources/LKObjCHelpers/LKObjcCHelpers.m index d60164234..afcefae56 100644 --- a/Sources/LKObjCHelpers/LKObjcCHelpers.m +++ b/Sources/LKObjCHelpers/LKObjcCHelpers.m @@ -4,7 +4,7 @@ @implementation LKObjCHelpers NS_ASSUME_NONNULL_BEGIN -+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(macos(11.0)) { ++ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(ios(10.0), macCatalyst(13.1), macos(11.0), tvos(10.0)) { // Call finishBroadcastWithError with nil error, which ends the broadcast without an error popup // This is unsupported/undocumented but appears to work and is preferable to an error dialog with a cryptic default message // See https://stackoverflow.com/a/63402492 for more discussion diff --git a/Sources/LKObjCHelpers/include/LKObjcHelpers.h b/Sources/LKObjCHelpers/include/LKObjcHelpers.h index 1f92b91e2..5c5fd239e 100644 --- a/Sources/LKObjCHelpers/include/LKObjcHelpers.h +++ b/Sources/LKObjCHelpers/include/LKObjcHelpers.h @@ -3,6 +3,6 @@ @interface LKObjCHelpers : NSObject -+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(macos(11.0)); ++ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(ios(10.0), macCatalyst(13.1), macos(11.0), tvos(10.0)); @end diff --git a/Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift b/Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift index 2fc9eacb9..ed24905e7 100644 --- a/Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift +++ b/Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift @@ -22,6 +22,7 @@ import ReplayKit import LKObjCHelpers +@available(macCatalyst 13.1, *) open class LKSampleHandler: RPBroadcastSampleHandler { private var clientConnection: BroadcastUploadSocketConnection? private var uploader: SampleUploader?