-
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 #83 from ShengQiangLiu/v6.1.0-release
release v6.1.0
- Loading branch information
Showing
45 changed files
with
9,978 additions
and
241 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# QNRTCKit 5.2.7 to 6.0.0 API Differences | ||
# None |
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
+343 KB
(100%)
Pod/iphoneos/QNRTCKit.framework.dSYM/Contents/Resources/DWARF/QNRTCKit
Binary file not shown.
4,628 changes: 4,628 additions & 0 deletions
4,628
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.
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.
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,6 +1,6 @@ | ||
framework module QNRTCKit { | ||
umbrella header "QNRTCKit.h" | ||
|
||
export * | ||
|
||
module * { export * } | ||
} |
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 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
+2.12 MB
(120%)
Pod/universal/QNRTCKit.framework.dSYM/Contents/Resources/DWARF/QNRTCKit
Binary file not shown.
4,628 changes: 4,628 additions & 0 deletions
4,628
Pod/universal/QNRTCKit.framework.dSYM/Contents/Resources/Relocations/aarch64/QNRTCKit.yml
Large diffs are not rendered by default.
Oops, something went wrong.
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
52 changes: 52 additions & 0 deletions
52
Pod/universal/QNRTCKit.framework/Headers/QNAudioFilterProtocol.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,52 @@ | ||
// | ||
// QNAudioFilterProtocol.h | ||
// QNRTCKit | ||
// | ||
// Created by ShengQiang'Liu on 2023/8/22. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNAudioFrame.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol QNAudioFilterProtocol <NSObject> | ||
|
||
/** | ||
* Audio frame 处理. | ||
* @param inAudioFrame 需要处理的 audio frame. | ||
* @param adaptedFrame 处理完的 audio frame. | ||
* @return | ||
* - `true`: Success. | ||
* - `false`: Failure. 丢弃 audio frame. | ||
*/ | ||
- (BOOL)adaptAudioFrame:(const QNAudioFrame *)inAudioFrame adaptedFrame:(QNAudioFrame *)adaptedFrame; | ||
|
||
/** | ||
* 获取 QNAudioFilter 类的标识名称 | ||
* | ||
* @return | ||
* - 标识名称 | ||
*/ | ||
- (const NSString *)getName; | ||
|
||
/** | ||
* 开启或者关闭当前 filter. | ||
* @param enable 是否开启 filter: | ||
* - `true`: 开启. | ||
* - `false`: 关闭. | ||
*/ | ||
- (void)setEnabled:(BOOL)enable; | ||
|
||
/** | ||
* 检查当前 Filter 是否开启. | ||
* @return | ||
* - `true`: 已开启. | ||
* - `false`: 已关闭. | ||
*/ | ||
- (BOOL)isEnabled; | ||
|
||
@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,33 @@ | ||
// | ||
// QNAudioFrame.h | ||
// QNRTCKit | ||
// | ||
// Created by ShengQiang'Liu on 2023/9/7. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
enum QNBytesPerSample { | ||
kTwoBytesPerSample = 2, | ||
}; | ||
|
||
// Stereo, 32 kHz, 120 ms (2 * 32 * 120) | ||
static const int kQNMaxDataSizeSamples = 7680; | ||
static const int kQNMaxDataSizeBytes = kQNMaxDataSizeSamples * sizeof(int16_t); | ||
|
||
@interface QNAudioFrame : NSObject | ||
|
||
@property (nonatomic, assign) uint32_t captureTimestamp; | ||
@property (nonatomic, assign) size_t samplesPerChannel; | ||
@property (nonatomic, assign) int sampleRateHz; | ||
@property (nonatomic, assign) size_t numChannels; | ||
@property (nonatomic, assign, readonly) enum QNBytesPerSample bytePerSample; | ||
// 最大 size 为 kQNMaxDataSizeBytes | ||
@property (nonatomic, strong) NSData *data; | ||
|
||
@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
29 changes: 29 additions & 0 deletions
29
Pod/universal/QNRTCKit.framework/Headers/QNAudioVolumeInfo.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,29 @@ | ||
// | ||
// QNAudioVolumeInfo.h | ||
// QNRTCKit | ||
// | ||
// Created by 冯文秀 on 2023/5/18. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface QNAudioVolumeInfo : NSObject | ||
/*! | ||
* @abstract 用户 ID | ||
* | ||
* @since v5.2.3 | ||
*/ | ||
@property (nonatomic, readonly) NSString *userID; | ||
|
||
/*! | ||
* @abstract 用户实时音量 | ||
* | ||
* @since v5.2.3 | ||
*/ | ||
@property (nonatomic, readonly) float volume; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
80 changes: 80 additions & 0 deletions
80
Pod/universal/QNRTCKit.framework/Headers/QNCDNStreamingClient.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,80 @@ | ||
// | ||
// QNCDNStreamingClient.h | ||
// QNRTCKit | ||
// | ||
// Created by ShengQiang'Liu on 2023/11/6. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNTypeDefines.h" | ||
#import "QNCDNStreamingConfig.h" | ||
#import "QNCDNStreamingStats.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class QNCDNStreamingClient; | ||
|
||
@protocol QNCDNStreamingDelegate <NSObject> | ||
|
||
/*! | ||
* @abstract 推流状态回调 | ||
* | ||
* @param client 推流实例 | ||
* @param state 推流状态 | ||
* @param code 错误码,请参考 QNErrorCode | ||
* @param message 描述信息 | ||
* | ||
* @since v6.0.0 | ||
*/ | ||
- (void)cdnStreamingClient:(QNCDNStreamingClient *)client didCDNStreamingConnectionStateChanged:(QNConnectionState)state | ||
errorCode:(int)code | ||
message:(NSString *)message; | ||
|
||
/*! | ||
* @abstract 推流统计信息回调 | ||
* | ||
* @param stats 统计信息 | ||
* @see QNCDNStreamingStats. | ||
* | ||
* @since v6.0.0 | ||
*/ | ||
- (void)cdnStreamingClient:(QNCDNStreamingClient *)client didCDNStreamingStats:(QNCDNStreamingStats *)stats; | ||
|
||
@end | ||
|
||
@interface QNCDNStreamingClient : NSObject | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
/*! | ||
* @abstract 设置推流回调的监听 | ||
* | ||
* @see QNCDNStreamingDelegate. | ||
* | ||
* @since v6.0.0 | ||
*/ | ||
@property (nonatomic, weak) id<QNCDNStreamingDelegate> delegate; | ||
|
||
/*! | ||
* @abstract 开始推流到 CDN | ||
* | ||
* @param config 推流参数配置。 | ||
* @see QNCDNStreamingConfig. | ||
* @return 请参考 QNErrorCode | ||
* | ||
* @since v6.0.0 | ||
*/ | ||
- (int)startWithConfig:(QNCDNStreamingConfig *)config; | ||
|
||
/*! | ||
* @abstract 停止推流到 CDN | ||
* | ||
* @since v6.0.0 | ||
* @return 请参考 QNErrorCode | ||
*/ | ||
- (int)stop; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.