iOS/macOS(Objective-C)[v1.7.5.0]
PanoExternalObjects.h
浏览该文件的文档.
1
2//
3// PanoExternalObjects.h
4// PanoRtc
5//
6// Copyright © 2020 Pano. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "PanoEnumerates.h"
11#import "PanoObjects.h"
12
13NS_ASSUME_NONNULL_BEGIN
14
15#pragma mark - PanoExternalAudioRecorder
16
23__attribute__((visibility("default"))) @interface PanoExternalAudioRecorder : NSObject
24
26+ (instancetype)new NS_UNAVAILABLE;
27
29- (instancetype)init NS_UNAVAILABLE;
30
49- (PanoResult)setEnableStatus:(BOOL)enable
50 withSampleRate:(SInt32)sampleRate
51 channels:(SInt32)channels;
52
73- (PanoResult)pushData:(void *)buffer
74 withLength:(SInt32)length
75 format:(PanoRtcAudioFormat *)format
76 timestamp:(UInt64)timestamp;
77
78@end
79
80
81#pragma mark - PanoExternalAudioPlayer
82
89__attribute__((visibility("default"))) @interface PanoExternalAudioPlayer : NSObject
90
92+ (instancetype)new NS_UNAVAILABLE;
93
95- (instancetype)init NS_UNAVAILABLE;
96
115- (PanoResult)setEnableStatus:(BOOL)enable
116 withSampleRate:(SInt32)sampleRate
117 channels:(SInt32)channels;
118
139- (PanoResult)pullData:(void *)buffer
140 withLength:(SInt32)length
141 format:(PanoRtcAudioFormat *)format
142 timestamp:(UInt64)timestamp;
143
144@end
145
146#pragma mark - PanoExternalVideoCapturer
147
154__attribute__((visibility("default"))) @interface PanoExternalVideoCapturer : NSObject
155
157+ (instancetype)new NS_UNAVAILABLE;
158
160- (instancetype)init NS_UNAVAILABLE;
161
168@property (copy, readonly, nonatomic) NSString *deviceId;
169
190- (PanoResult)putData:(void *)buffer
191 withLength:(SInt32)length
192 format:(PanoRtcVideoFormat *)format
193 timestamp:(UInt64)timestamp;
194
195
196@end
197
198#pragma mark - PanoExternalAudioProcessor
199
200@protocol PanoExternalAudioProcessor <NSObject>
201@required
218- (PanoResult)onAudioFrame:(void *)buffer length:(SInt32)length maxBufferByteLens:(SInt32)maxBufferByteLens format:(PanoRtcAudioFormat *)format;
219
220@end
221
222#pragma mark - PanoExternalVideoProcessor
223
224@protocol PanoExternalVideoProcessor <NSObject>
225@required
240- (PanoResult)onVideoFrame:(void *)buffer length:(SInt32)length format:(PanoRtcVideoFormat *)format;
241
254- (PanoResult)onVideoFrame:(void *)native format:(PanoRtcVideoFormat *)format;
255
256@end
257
258NS_ASSUME_NONNULL_END
PanoResult
返回。
Definition: PanoEnumerates.h:19
PanoExternalAudioPlayer 接口类提供了所有的外置音频播放相关方法。
Definition: PanoExternalObjects.h:90
instancetype new()
此方法不可用。
instancetype init()
此方法不可用。
PanoExternalAudioRecorder 接口类提供了所有的外置音频录制相关方法。
Definition: PanoExternalObjects.h:24
instancetype init()
此方法不可用。
instancetype new()
此方法不可用。
PanoExternalVideoCapturer 接口类提供了所有的外置视频采集相关方法。
Definition: PanoExternalObjects.h:155
instancetype init()
此方法不可用。
instancetype new()
此方法不可用。
NSString * deviceId
获取此外接视频采集设备 ID
Definition: PanoExternalObjects.h:168
音频格式类。
Definition: PanoObjects.h:147
视频格式类。
Definition: PanoObjects.h:163
Definition: PanoExternalObjects.h:200
Definition: PanoExternalObjects.h:224