Skip to content

Commit e0c3765

Browse files
author
xianing
committed
Merge branch 'dev/3.4.0' of https://github.i.agoralab.co/AgoraIO/API-Examples into dev/3.4.0
� Conflicts: � Android/APIExample/lib-component/build.gradle
2 parents 58e3ce0 + 339ed99 commit e0c3765

6 files changed

Lines changed: 13 additions & 6 deletions

File tree

Android/APIExample/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ buildscript {
44
repositories {
55
google()
66
jcenter()
7+
maven { url 'https://www.jitpack.io' }
78

89
}
910
dependencies {
@@ -20,6 +21,7 @@ allprojects {
2021
repositories {
2122
google()
2223
jcenter()
24+
maven { url 'https://www.jitpack.io' }
2325
}
2426
}
2527

Android/APIExample/lib-component/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies {
3030
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
3131
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
3232

33-
// api 'io.agora.rtc:full-sdk:3.4.0'0
33+
api 'com.github.agorabuilder:native-full-sdk:3.4.0'
3434
api 'io.agora:agoraplayer:1.2.2'
3535

36-
}
36+
}

Android/APIExample/lib-raw-data/src/main/cpp/io_agora_advancedvideo_rawdata_MediaPreProcessing.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ class AgoraVideoFrameObserver : public agora::media::IVideoFrameObserver
179179
return true;
180180
}
181181

182+
virtual VIDEO_FRAME_TYPE getVideoFormatPreference() override {
183+
return FRAME_TYPE_YUV420; // Please don't modify videoFormatPreference in this raw data processing plugin, otherwise it won't work.
184+
}
182185
};
183186

184187
/**Listener to get audio frame*/
@@ -295,6 +298,8 @@ class AgoraAudioFrameObserver : public agora::media::IAudioFrameObserver
295298
writebackAudioFrame(audioFrame, _javaDirectPlayBufferMixAudio);
296299
return true;
297300
}
301+
302+
298303
};
299304

300305

iOS/APIExample/Examples/Advanced/VideoChat/VideoChat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class VideoChatEntry: UIViewController {
1717
@IBOutlet var resolutionBtn: UIButton!
1818
@IBOutlet var fpsBtn: UIButton!
1919
@IBOutlet var orientationBtn: UIButton!
20-
var width:Int = 640, height:Int = 360, orientation:AgoraVideoOutputOrientationMode = .adaptative, fps: AgoraVideoFrameRate = .fps30
20+
var width:Int = 640, height:Int = 360, orientation:AgoraVideoOutputOrientationMode = .adaptative, fps: AgoraVideoFrameRate = .fps15
2121

2222
override func viewDidLoad() {
2323
super.viewDidLoad()

iOS/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ target 'APIExample' do
66
use_frameworks!
77
pod 'Floaty', '~> 4.2.0'
88
pod 'AGEVideoLayout', '~> 1.0.2'
9-
# pod 'AgoraRtcEngine_iOS', '3.4.0'
9+
pod 'AgoraRtcEngine_iOS', '3.4.0'
1010
pod 'AgoraMediaPlayer_iOS', '1.2.2'
1111
end
1212

1313
target 'Agora-ScreenShare-Extension' do
1414

1515
use_frameworks!
16-
# pod 'AgoraRtcEngine_iOS', '3.4.0'
16+
pod 'AgoraRtcEngine_iOS', '3.4.0'
1717
end

macOS/Podfile

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

88
# Pods for APIExample
99
pod 'AGEVideoLayout', '~> 1.0.2'
10-
# pod 'AgoraRtcEngine_macOS', '3.4.0'
10+
pod 'AgoraRtcEngine_macOS', '3.4.0'
1111

1212
target 'APIExampleTests' do
1313
inherit! :search_paths

0 commit comments

Comments
 (0)