This commit is contained in:
启星
2025-08-12 14:27:12 +08:00
parent 9d18b353b1
commit 1bd5e77c45
8785 changed files with 978163 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>AgoraReplayKitExtension.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>AgoraReplayKitExtension.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>

View File

@@ -0,0 +1,45 @@
//
// AgoraSampleHander.h
// BroadCastUI
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#import <Foundation/Foundation.h>
#import <ReplayKit/ReplayKit.h>
typedef enum {
// Failed to connect to the app process, Please call startScreenCapture in the app process.
AgoraReplayKitExtReasonConnectFail = 1,
// Disconnected from the app process. Please Check the APP process exits or not.
AgoraReplayKitExtReasonDisconnect = 2,
// Stopped by the user or the app process.
AgoraReplayKitExtReasonInitiativeStop = 3,
} AgoraReplayKitExtReason;
@class AgoraReplayKitExt;
@protocol AgoraReplayKitExtDelegate <NSObject>
- (void)broadcastFinished:(AgoraReplayKitExt* _Nonnull)broadcast
reason:(AgoraReplayKitExtReason)reason;
@end
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0))
NS_SWIFT_NAME(AgoraReplayKitExt)
__attribute__((visibility("default")))
@interface AgoraReplayKitExt : NSObject
+ (instancetype)shareInstance;
- (void)start:(id<AgoraReplayKitExtDelegate>)delegate;
- (void)stop;
- (void)resume;
- (void)pause;
- (void)pushSampleBuffer:(CMSampleBufferRef)sampleBuffer
withType:(RPSampleBufferType)sampleBufferType;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,16 @@
//
// AgoraReplayKitExtension.h
// AgoraScreenShare
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#ifndef AgoraReplayKitExtension_h
#define AgoraReplayKitExtension_h
#import <AgoraReplayKitExtension/AgoraReplayKitExt.h>
#import <AgoraReplayKitExtension/AgoraReplayKitHandler.h>
#endif /* AgoraReplayKitExtension_h */

View File

@@ -0,0 +1,15 @@
//
// SampleHandler.h
// BroadCastUI
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#import <ReplayKit/ReplayKit.h>
API_AVAILABLE(ios(11.0))
__attribute__((visibility("default")))
@interface AgoraReplayKitHandler : RPBroadcastSampleHandler
@end

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>AgoraReplayKitExtension</string>
<key>CFBundleIdentifier</key>
<string>io.agora.AgoraReplayKitExtension</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AgoraReplayKitExtension</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2014-2025 Agora. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@@ -0,0 +1,12 @@
framework module AgoraReplayKitExtension {
header "AgoraReplayKitExtension.h"
module AgoraReplayKitExt {
header "AgoraReplayKitExt.h"
export *
}
module AgoraReplayKitHandler {
header "AgoraReplayKitHandler.h"
export *
}
export *
}

View File

@@ -0,0 +1,45 @@
//
// AgoraSampleHander.h
// BroadCastUI
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#import <Foundation/Foundation.h>
#import <ReplayKit/ReplayKit.h>
typedef enum {
// Failed to connect to the app process, Please call startScreenCapture in the app process.
AgoraReplayKitExtReasonConnectFail = 1,
// Disconnected from the app process. Please Check the APP process exits or not.
AgoraReplayKitExtReasonDisconnect = 2,
// Stopped by the user or the app process.
AgoraReplayKitExtReasonInitiativeStop = 3,
} AgoraReplayKitExtReason;
@class AgoraReplayKitExt;
@protocol AgoraReplayKitExtDelegate <NSObject>
- (void)broadcastFinished:(AgoraReplayKitExt* _Nonnull)broadcast
reason:(AgoraReplayKitExtReason)reason;
@end
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0))
NS_SWIFT_NAME(AgoraReplayKitExt)
__attribute__((visibility("default")))
@interface AgoraReplayKitExt : NSObject
+ (instancetype)shareInstance;
- (void)start:(id<AgoraReplayKitExtDelegate>)delegate;
- (void)stop;
- (void)resume;
- (void)pause;
- (void)pushSampleBuffer:(CMSampleBufferRef)sampleBuffer
withType:(RPSampleBufferType)sampleBufferType;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,16 @@
//
// AgoraReplayKitExtension.h
// AgoraScreenShare
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#ifndef AgoraReplayKitExtension_h
#define AgoraReplayKitExtension_h
#import <AgoraReplayKitExtension/AgoraReplayKitExt.h>
#import <AgoraReplayKitExtension/AgoraReplayKitHandler.h>
#endif /* AgoraReplayKitExtension_h */

View File

@@ -0,0 +1,15 @@
//
// SampleHandler.h
// BroadCastUI
//
// Created by Agora on 2022/1/25.
// Copyright (c) 2022 Agora IO. All rights reserved.
#import <ReplayKit/ReplayKit.h>
API_AVAILABLE(ios(11.0))
__attribute__((visibility("default")))
@interface AgoraReplayKitHandler : RPBroadcastSampleHandler
@end

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>AgoraReplayKitExtension</string>
<key>CFBundleIdentifier</key>
<string>io.agora.AgoraReplayKitExtension</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AgoraReplayKitExtension</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2014-2025 Agora. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@@ -0,0 +1,12 @@
framework module AgoraReplayKitExtension {
header "AgoraReplayKitExtension.h"
module AgoraReplayKitExt {
header "AgoraReplayKitExt.h"
export *
}
module AgoraReplayKitHandler {
header "AgoraReplayKitHandler.h"
export *
}
export *
}