-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from HeraShowFeng/v6.2.0-docs
v6.2.0 release
- Loading branch information
Showing
69 changed files
with
11,520 additions
and
10,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# QNRTCKit 5.2.7 to 6.0.0 API Differences | ||
# None | ||
# QNRTCKit 6.0.0 to 6.1.0 API Differences | ||
# None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# QNRTCKit 6.1.0 to 6.2.0 API Differences | ||
|
||
## General Headers | ||
|
||
``` | ||
QNRTC.h | ||
``` | ||
- *Added* method `+ (QNMediaRecorder *)createMediaRecorder;` | ||
|
||
``` | ||
QNMediaRecorder.h | ||
``` | ||
- *Added* property `@property (nonatomic, weak) id<QNMediaRecorderDelegate> delegate;` | ||
- *Added* method `- (int)startRecording:(QNMediaRecorderConfig *)configuration;` | ||
- *Added* method `- (int)stopRecording;` | ||
|
||
``` | ||
QNMediaRecorderConfig.h | ||
``` | ||
|
||
- *Added* property `@property (nonatomic, copy, readonly) NSString * _Nullable filePath;` | ||
- *Added* property `@property (nonatomic, strong, readonly) QNLocalAudioTrack *localAudioTrack;` | ||
- *Added* property `@property (nonatomic, strong, readonly) QNLocalVideoTrack *localVideoTrack;` | ||
- *Added* method `- (instancetype)initWithFilePath:(NSString *_Nullable)filePath localAudioTrack:(QNLocalAudioTrack *_Nullable)localAudioTrack localVideoTrack:(QNLocalVideoTrack *_Nullable)localVideoTrack;` | ||
|
||
``` | ||
QNMediaRecordInfo.h | ||
``` | ||
|
||
- *Added* property `@property(nonatomic, copy, readonly) NSString * _Nullable filePath;` | ||
- *Added* property `@property(nonatomic, assign, readonly) int32_t fileSize;` | ||
- *Added* property `@property(nonatomic, assign, readonly) int64_t duration;` | ||
|
||
``` | ||
QNMediaRecorderDelegate | ||
``` | ||
|
||
- *Added* method `- (void)mediaRecorder:(QNMediaRecorder* _Nonnull)recorder infoDidUpdated:(QNMediaRecordInfo* _Nonnull)info;` | ||
- *Added* method `- (void)mediaRecorder:(QNMediaRecorder* _Nonnull)recorder stateDidChanged:(QNMediaRecorderState)state reason:(QNMediaRecorderReasonCode)reason;` | ||
|
||
``` | ||
QNTypeDefines | ||
``` | ||
- *Added* `QNMediaRecorderState` | ||
- *Added* `QNMediaRecorderReasonCode` | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+241 KB
(100%)
Pod/iphoneos/QNRTCKit.framework.dSYM/Contents/Resources/DWARF/QNRTCKit
Binary file not shown.
9,300 changes: 4,676 additions & 4,624 deletions
9,300
Pod/iphoneos/QNRTCKit.framework.dSYM/Contents/Resources/Relocations/aarch64/QNRTCKit.yml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
41 changes: 41 additions & 0 deletions
41
Pod/iphoneos/QNRTCKit.framework/Headers/QNMediaRecordInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// QNMediaRecordInfo.h | ||
// QNRTCKit | ||
// | ||
// Created by 冯文秀 on 2024/4/7. | ||
// Copyright © 2024 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNTypeDefines.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface QNMediaRecordInfo : NSObject | ||
|
||
/*! | ||
* @abstract 录制文件的存储路径 | ||
* | ||
* @discussion 支持 wav、aac、h264、mp4 格式 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property(nonatomic, copy, readonly) NSString * _Nullable filePath; | ||
|
||
/*! | ||
* @abstract 录制文件的大小,单位为字节 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property(nonatomic, assign, readonly) int32_t fileSize; | ||
|
||
/*! | ||
* @abstract 录制文件的时长,单位毫秒 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property(nonatomic, assign, readonly) int64_t duration; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// | ||
// QNMediaRecorder.h | ||
// QNRTCKit | ||
// | ||
// Created by 冯文秀 on 2024/4/3. | ||
// Copyright © 2024 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNTypeDefines.h" | ||
#import "QNMediaRecordInfo.h" | ||
#import "QNMediaRecorderConfig.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class QNMediaRecorder; | ||
|
||
@protocol QNMediaRecorderDelegate <NSObject> | ||
|
||
/*! | ||
* @abstract 录制信息更新回调 | ||
* | ||
* @param recorder 音视频录制实例 | ||
* | ||
* @param info 音视频录制完成的信息 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
- (void)mediaRecorder:(QNMediaRecorder* _Nonnull)recorder infoDidUpdated:(QNMediaRecordInfo* _Nonnull)info; | ||
|
||
/*! | ||
* @abstract 录制状态发生变化回调 | ||
* | ||
* @warning 出现错误状态时,会自动停止录制并回调错误信息 | ||
* | ||
* @param recorder 音视频录制实例 | ||
* | ||
* @param state 录制状态 | ||
* | ||
* @param reason 录制错误信息 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
- (void)mediaRecorder:(QNMediaRecorder* _Nonnull)recorder stateDidChanged:(QNMediaRecorderState)state reason:(QNMediaRecorderReasonCode)reason; | ||
|
||
@end | ||
|
||
@interface QNMediaRecorder : NSObject | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
/*! | ||
* @abstract 录制信息回调代理 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property (nonatomic, weak) id<QNMediaRecorderDelegate> delegate; | ||
|
||
/*! | ||
* @abstract 开始音视频录制 | ||
* | ||
* @return 返回 0 成功,其他失败 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
- (int)startRecording:(QNMediaRecorderConfig *)configuration; | ||
|
||
/*! | ||
* @abstract 停止音视频录制 | ||
* | ||
* @return 返回 0 成功,其他失败 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
- (int)stopRecording; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
64 changes: 64 additions & 0 deletions
64
Pod/iphoneos/QNRTCKit.framework/Headers/QNMediaRecorderConfig.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// QNMediaRecorderConfig.h | ||
// QNRTCKit | ||
// | ||
// Created by 冯文秀 on 2024/4/3. | ||
// Copyright © 2024 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNTypeDefines.h" | ||
#import "QNTrack.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface QNMediaRecorderConfig : NSObject | ||
/*! | ||
* @abstract 文件路径 | ||
* | ||
* @warning 自定义传入的路径,请确保路径完整精确到文件名和类型,存在有效且可读可写 | ||
* 传空则默认存储在 App Container/Library/Caches/Pili/RecordFile | ||
* | ||
* @discussion 支持 aac、wav、h264、mp4 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property (nonatomic, copy, readonly) NSString * _Nullable filePath; | ||
|
||
/*! | ||
* @abstract 本地音频,支持麦克风或自定义音频 | ||
* | ||
* @discussion 仅支持一路音频轨的设置,重复设置会被覆盖 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property (nonatomic, strong, readonly) QNLocalAudioTrack *localAudioTrack; | ||
|
||
/*! | ||
* @abstract 本地视频,支持摄像头或自定义视频 | ||
* | ||
* @discussion 仅支持一路视频轨的设置,重复设置会被覆盖 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
@property (nonatomic, strong, readonly) QNLocalVideoTrack *localVideoTrack; | ||
|
||
/*! | ||
* @abstract 初始化指定文件路径、本地音频录制 Track。 | ||
* | ||
* @param filePath 文件路径,传空默认存储在 App Container/Library/Caches/Pili/RecordFile | ||
* | ||
* @param localAudioTrack 本地音频 Track | ||
* | ||
* @param localVideoTrack 本地视频 Track | ||
* | ||
* @return 音视频录制配置实例 | ||
* | ||
* @since v6.2.0 | ||
*/ | ||
- (instancetype)initWithFilePath:(NSString *_Nullable)filePath | ||
localAudioTrack:(QNLocalAudioTrack *_Nullable)localAudioTrack | ||
localVideoTrack:(QNLocalVideoTrack *_Nullable)localVideoTrack; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Oops, something went wrong.