Skip to content

Commit

Permalink
Merge pull request #80 from HeraShowFeng/v5.2.7-release
Browse files Browse the repository at this point in the history
v5.2.7 release
  • Loading branch information
HeraShowFeng authored Nov 17, 2023
2 parents b48d91b + d448832 commit beb1c8b
Show file tree
Hide file tree
Showing 29 changed files with 714 additions and 451 deletions.
17 changes: 17 additions & 0 deletions APIDiffs/api-diffs-5.2.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# QNRTCKit 5.2.6 to 5.2.7 API Differences

## General Headers

```
QNMicrophoneAudioTrackDelegate
```
- *Added* method `- (void)microphoneAudioTrack:(QNMicrophoneAudioTrack *)microphoneAudioTrack didFailWithError:(NSError *)error;`


```
QNMicrophoneAudioTrack
```
- *Added* method `@property (nonatomic, weak) id<QNMicrophoneAudioTrackDelegate> microphoneDelegate;`
- *Added* method `- (BOOL)startRecording;`
- *Added* method `- (BOOL)stopRecording;`
- *Added* method `- (void)pushAudioFrame:(const uint8_t*)data dataSize:(uint32_t)dataSize bitsPerSample:(uint32_t)bitsPerSample sampleRate:(uint32_t)sampleRate channels:(uint32_t)channels bigEndian:(bool)bigEndian planar:(bool)planar;`
Binary file modified Pod/iphoneos/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Pod/iphoneos/QNRTCKit.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>5.2.6</string>
<string>5.2.7</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.
62 changes: 61 additions & 1 deletion Pod/iphoneos/QNRTCKit.framework/Headers/QNTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,50 @@ NS_ASSUME_NONNULL_BEGIN

@end

@class QNMicrophoneAudioTrack;
@protocol QNMicrophoneAudioTrackDelegate <NSObject>

@optional

/*!
* @abstract 麦克风采集运行过程中发生错误会通过该方法回调。
*
* @since v5.2.7
*/
- (void)microphoneAudioTrack:(QNMicrophoneAudioTrack *)microphoneAudioTrack didFailWithError:(NSError *)error;

@end

#pragma mark -- QNMicrophoneAudioTrack
@interface QNMicrophoneAudioTrack : QNLocalAudioTrack

/*!
* @abstract 麦克风 Track 回调代理。
*
* @since v5.2.7
*/
@property (nonatomic, weak) id<QNMicrophoneAudioTrackDelegate> microphoneDelegate;

- (instancetype)init NS_UNAVAILABLE;

/*!
* @abstract 开始麦克风采集
*
* @return 是否调用成功
*
* @since v5.2.7
*/
- (BOOL)startRecording;

/*!
* @abstract 停止麦克风采集
*
* @return 是否调用成功
*
* @since v5.2.7
*/
- (BOOL)stopRecording;

@end

#pragma mark -- QNCustomAudioTrack
Expand Down Expand Up @@ -254,7 +293,28 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)pushAudioBuffer:(AudioBuffer *)audioBuffer asbd:(AudioStreamBasicDescription *)asbd;


/*!
* @abstract 导入音频数据
*
* @discussion 支持的音频数据格式为:PCM 格式
*
* @warning 音频数据的格式信息,请务必对应实际数据信息传入
*
* @param data PCM 裸数据
*
* @param bitsPerSample 位宽
*
* @param sampleRate 采样率
*
* @param channels 声道数
*
* @param bigEndian 是否是大端,默认是小端
*
* @param planar 是否是平面结构,双声道模式下,默认是 packed
*
* @since v5.2.7
*/
- (void)pushAudioFrame:(const uint8_t*)data dataSize:(uint32_t)dataSize bitsPerSample:(uint32_t)bitsPerSample sampleRate:(uint32_t)sampleRate channels:(uint32_t)channels bigEndian:(bool)bigEndian planar:(bool)planar;
@end

#pragma mark -- QNLocalVideoTrackDelegate
Expand Down
Binary file modified Pod/iphoneos/QNRTCKit.framework/Info.plist
Binary file not shown.
Binary file modified Pod/iphoneos/QNRTCKit.framework/QNRTCKit
Binary file not shown.
Binary file modified Pod/universal/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Pod/universal/QNRTCKit.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>5.2.6</string>
<string>5.2.7</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Binary file not shown.
Binary file modified Pod/universal/QNRTCKit.framework/.DS_Store
Binary file not shown.
62 changes: 61 additions & 1 deletion Pod/universal/QNRTCKit.framework/Headers/QNTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,50 @@ NS_ASSUME_NONNULL_BEGIN

@end

@class QNMicrophoneAudioTrack;
@protocol QNMicrophoneAudioTrackDelegate <NSObject>

@optional

/*!
* @abstract 麦克风采集运行过程中发生错误会通过该方法回调。
*
* @since v5.2.7
*/
- (void)microphoneAudioTrack:(QNMicrophoneAudioTrack *)microphoneAudioTrack didFailWithError:(NSError *)error;

@end

#pragma mark -- QNMicrophoneAudioTrack
@interface QNMicrophoneAudioTrack : QNLocalAudioTrack

/*!
* @abstract 麦克风 Track 回调代理。
*
* @since v5.2.7
*/
@property (nonatomic, weak) id<QNMicrophoneAudioTrackDelegate> microphoneDelegate;

- (instancetype)init NS_UNAVAILABLE;

/*!
* @abstract 开始麦克风采集
*
* @return 是否调用成功
*
* @since v5.2.7
*/
- (BOOL)startRecording;

/*!
* @abstract 停止麦克风采集
*
* @return 是否调用成功
*
* @since v5.2.7
*/
- (BOOL)stopRecording;

@end

#pragma mark -- QNCustomAudioTrack
Expand Down Expand Up @@ -254,7 +293,28 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)pushAudioBuffer:(AudioBuffer *)audioBuffer asbd:(AudioStreamBasicDescription *)asbd;


/*!
* @abstract 导入音频数据
*
* @discussion 支持的音频数据格式为:PCM 格式
*
* @warning 音频数据的格式信息,请务必对应实际数据信息传入
*
* @param data PCM 裸数据
*
* @param bitsPerSample 位宽
*
* @param sampleRate 采样率
*
* @param channels 声道数
*
* @param bigEndian 是否是大端,默认是小端
*
* @param planar 是否是平面结构,双声道模式下,默认是 packed
*
* @since v5.2.7
*/
- (void)pushAudioFrame:(const uint8_t*)data dataSize:(uint32_t)dataSize bitsPerSample:(uint32_t)bitsPerSample sampleRate:(uint32_t)sampleRate channels:(uint32_t)channels bigEndian:(bool)bigEndian planar:(bool)planar;
@end

#pragma mark -- QNLocalVideoTrackDelegate
Expand Down
Binary file modified Pod/universal/QNRTCKit.framework/Info.plist
Binary file not shown.
Binary file modified Pod/universal/QNRTCKit.framework/QNRTCKit
Binary file not shown.
Binary file modified QNRTC-API-Examples/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion QNRTC-API-Examples/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
# platform :ios, '11.0'

target 'Api-Examples-iOS' do
# Comment the next line if you don't want to use dynamic frameworks
Expand Down
10 changes: 5 additions & 5 deletions QNRTC-API-Examples/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- Masonry (1.1.0)
- QNRTCKit-iOS (5.2.6):
- QNRTCKit-iOS/Core (= 5.2.6)
- QNRTCKit-iOS/Core (5.2.6)
- QNRTCKit-iOS (5.2.7):
- QNRTCKit-iOS/Core (= 5.2.7)
- QNRTCKit-iOS/Core (5.2.7)

DEPENDENCIES:
- Masonry (= 1.1.0)
Expand All @@ -18,8 +18,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
QNRTCKit-iOS: 8a3fe030639f0be630bf811a3b3bb8fb190c2692
QNRTCKit-iOS: c3ceac7cf62c755bbd1d05af5cb98b171b1c4581

PODFILE CHECKSUM: c720700c5f736c56079e4fdd029795870c4a4043
PODFILE CHECKSUM: e7771e20c9aac4bcb5ef9d2b4aa243675bd09687

COCOAPODS: 1.12.1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions QNRTC-API-Examples/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit beb1c8b

Please sign in to comment.