Skip to content

Commit 288b0f9

Browse files
committed
adapt to online 4.1.1 sdk
1 parent 4d8c7a5 commit 288b0f9

13 files changed

Lines changed: 20 additions & 20 deletions

File tree

Android/APIExample-Audio/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
implementation fileTree(dir: "${localSdkPath}", include: ['*.jar', '*.aar'])
4949
}
5050
else{
51-
def agora_sdk_version = "4.1.0-1"
51+
def agora_sdk_version = "4.1.1"
5252
// case 1: full single lib with voice only
5353
implementation "io.agora.rtc:voice-sdk:${agora_sdk_version}"
5454
// case 2: partial libs with voice only

Android/APIExample/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
implementation fileTree(dir: "${localSdkPath}", include: ['*.jar', '*.aar'])
6161
}
6262
else{
63-
def agora_sdk_version = "4.1.0-1"
63+
def agora_sdk_version = "4.1.1"
6464
// case 1: full libs
6565
implementation "io.agora.rtc:full-sdk:${agora_sdk_version}"
6666
implementation "io.agora.rtc:full-screen-sharing:${agora_sdk_version}"

iOS/APIExample-Audio/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ target 'APIExample-Audio' do
77

88
pod 'Floaty', '~> 4.2.0'
99
pod 'AGEVideoLayout', '~> 1.0.2'
10-
pod 'AgoraAudio_iOS', '4.1.0'
10+
pod 'AgoraAudio_iOS', '4.1.1'
1111
# pod 'sdk', :path => 'sdk.podspec'
1212
end
1313

iOS/APIExample/APIExample/Examples/Advanced/ARKit/ARKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ extension ARKitMain: AgoraRtcEngineDelegate {
308308
}
309309
}
310310

311-
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaRenderTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
311+
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
312312
statsLabel.isHidden = tracingInfo.elapsedTime <= 0
313313
statsLabel.text = "firstFrameTime: \(tracingInfo.elapsedTime)"
314314
}

iOS/APIExample/APIExample/Examples/Advanced/LiveStreaming/LiveStreaming.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ extension LiveStreamingMain: AgoraRtcEngineDelegate {
444444
backgroundVideo.statsInfo?.updateAudioStats(stats)
445445
}
446446

447-
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaRenderTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
447+
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
448448
backgroundVideo.statsInfo?.updateFirstFrameInfo(tracingInfo)
449449
}
450450
}

iOS/APIExample/Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ target 'APIExample' do
88
pod 'Floaty', '~> 4.2.0'
99
pod 'AGEVideoLayout', '~> 1.0.2'
1010
pod 'CocoaAsyncSocket', '7.6.5'
11-
pod 'AgoraRtcEngine_iOS', '4.1.0'
11+
pod 'AgoraRtcEngine_iOS', '4.1.1'
1212
# pod 'sdk', :path => 'sdk.podspec'
1313
# pod 'senseLib', :path => 'sense.podspec'
1414
# pod 'bytedEffect', :path => 'bytedEffect.podspec'
@@ -18,11 +18,11 @@ end
1818
target 'Agora-ScreenShare-Extension' do
1919
use_frameworks!
2020
# pod 'sdk', :path => 'sdk.podspec'
21-
pod 'AgoraRtcEngine_iOS', '4.1.0'
21+
pod 'AgoraRtcEngine_iOS', '4.1.1'
2222
end
2323

2424
target 'SimpleFilter' do
2525
use_frameworks!
2626
# pod 'sdk', :path => 'sdk.podspec'
27-
pod 'AgoraRtcEngine_iOS', '4.1.0'
27+
pod 'AgoraRtcEngine_iOS', '4.1.1'
2828
end

macOS/APIExample/Examples/Advanced/LiveStreaming/LiveStreaming.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ extension LiveStreamingMain: AgoraRtcEngineDelegate {
573573

574574
/// Reports the statistics of the uploading local video streams once every two seconds.
575575
/// @param stats stats struct
576-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats) {
576+
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats, sourceType:AgoraVideoSourceType) {
577577
videos[0].statsInfo?.updateLocalVideoStats(stats)
578578
}
579579

@@ -595,11 +595,11 @@ extension LiveStreamingMain: AgoraRtcEngineDelegate {
595595
videos.first(where: { $0.uid == stats.uid })?.statsInfo?.updateAudioStats(stats)
596596
}
597597

598-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState, error: AgoraLocalVideoStreamError) {
598+
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState, error: AgoraLocalVideoStreamError, sourceType:AgoraVideoSourceType) {
599599
LogUtils.log(message: "AgoraRtcEngineKit state: \(state), error \(error)", level: .info)
600600
}
601601

602-
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaRenderTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
602+
func rtcEngine(_ engine: AgoraRtcEngineKit, videoRenderingTracingResultOfUid uid: UInt, currentEvent: AgoraMediaTraceEvent, tracingInfo: AgoraVideoRenderingTracingInfo) {
603603
videos.first(where: { $0.uid == uid })?.statsInfo?.updateFirstFrameInfo(tracingInfo)
604604
}
605605
}

macOS/APIExample/Examples/Advanced/SimpleFilter/SimpleFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ extension SimpleFilterMain: AgoraRtcEngineDelegate {
508508

509509
/// Reports the statistics of the uploading local video streams once every two seconds.
510510
/// @param stats stats struct
511-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats) {
511+
private func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats, sourceType: AgoraMediaSourceType) {
512512
videos[0].statsInfo?.updateLocalVideoStats(stats)
513513
}
514514

macOS/APIExample/Examples/Advanced/VideoProcess/VideoProcess.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ extension VideoProcess: AgoraRtcEngineDelegate {
475475

476476
/// Reports the statistics of the uploading local video streams once every two seconds.
477477
/// @param stats stats struct
478-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats) {
478+
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats, sourceType: AgoraVideoSourceType) {
479479
videos[0].statsInfo?.updateLocalVideoStats(stats)
480480
}
481481

macOS/APIExample/Examples/Basic/JoinChannelVideo(Token)/JoinChannelVideoToken.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ extension JoinChannelVideoToken: AgoraRtcEngineDelegate {
503503

504504
/// Reports the statistics of the uploading local video streams once every two seconds.
505505
/// @param stats stats struct
506-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats) {
506+
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats, sourceType:AgoraVideoSourceType) {
507507
videos[0].statsInfo?.updateLocalVideoStats(stats)
508508
}
509509

@@ -525,7 +525,7 @@ extension JoinChannelVideoToken: AgoraRtcEngineDelegate {
525525
videos.first(where: { $0.uid == stats.uid })?.statsInfo?.updateAudioStats(stats)
526526
}
527527

528-
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState, error: AgoraLocalVideoStreamError) {
528+
func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState, error: AgoraLocalVideoStreamError, sourceType:AgoraVideoSourceType) {
529529
LogUtils.log(message: "AgoraRtcEngineKit state: \(state), error \(error)", level: .info)
530530
}
531531
}

0 commit comments

Comments
 (0)