iOS/macOS(Objective-C)[v1.7.5.0]
PanoScreenSharingExt.h
浏览该文件的文档.
1
2//
3// PanoScreenSharingExt.h
4// PanoReplayKitExt
5//
6// Copyright © 2019 Pano. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <CoreMedia/CoreMedia.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14typedef NS_ENUM(NSUInteger, PanoScreenSharingResult) {
15 PanoScreenSharingResultCloseByHost,
16 PanoScreenSharingResultDisconnected,
17 PanoScreenSharingResultVersionMismatch
18};
19
20@protocol PanoScreenSharingExtDelegate <NSObject>
21
22@optional
35- (void)screenSharingFinished:(PanoScreenSharingResult)reason error:(nullable NSError *)error;
36
49- (void)screenSharingFinished:(PanoScreenSharingResult)reason;
50
51@end
52
53@interface PanoScreenSharingExt : NSObject
54
55@property (nonatomic, weak) id<PanoScreenSharingExtDelegate> delegate;
56
57+ (instancetype)sharedInstance;
58
71- (void)setupWithAppGroup:(NSString *)appGroupId delegate:(id<PanoScreenSharingExtDelegate>)delegate;
72
83- (void)sendVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer;
84
94
95@end
96
97NS_ASSUME_NONNULL_END
Definition: PanoScreenSharingExt.h:54
void finishScreenSharing()
结束屏幕录制。
Definition: PanoScreenSharingExt.m:94
Definition: PanoScreenSharingExt.h:20