File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed
lib-switch-external-video/src/main/java/io/agora/advancedvideo/externvideosource
APIExample/Common/ExternalVideo Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ dependencies {
30
30
androidTestImplementation ' androidx.test.ext:junit:1.1.1'
31
31
androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
32
32
33
- api ' io.agora.rtc:full-sdk:3.0 .0'
33
+ api ' io.agora.rtc:full-sdk:3.1 .0'
34
34
}
Original file line number Diff line number Diff line change @@ -181,6 +181,17 @@ public int getBufferType()
181
181
return MediaIO .BufferType .TEXTURE .intValue ();
182
182
}
183
183
184
+ @ Override
185
+ public int getCaptureType () {
186
+ return MediaIO .CaptureType .CAMERA .intValue ();
187
+ }
188
+
189
+ @ Override
190
+ public int getContentHint () {
191
+ return MediaIO .ContentHint .NONE .intValue ();
192
+ }
193
+
194
+
184
195
private class ExternalVideoInputThread extends Thread
185
196
{
186
197
private final String TAG = ExternalVideoInputThread .class .getSimpleName ();
Original file line number Diff line number Diff line change @@ -178,6 +178,14 @@ extension AgoraCameraSourceMediaIO: AgoraVideoSourceProtocol {
178
178
func bufferType( ) -> AgoraVideoBufferType {
179
179
return . pixelBuffer
180
180
}
181
+
182
+ func contentHint( ) -> AgoraVideoContentHint {
183
+ return . none
184
+ }
185
+
186
+ func captureType( ) -> AgoraVideoCaptureType {
187
+ return . camera
188
+ }
181
189
}
182
190
183
191
extension AgoraCameraSourceMediaIO : AVCaptureVideoDataOutputSampleBufferDelegate {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ target 'APIExample' do
7
7
use_frameworks!
8
8
9
9
pod 'AGEVideoLayout' , '~> 1.0.2'
10
- pod 'AgoraRtcEngine_iOS' , '~> 3.0 .0'
10
+ pod 'AgoraRtcEngine_iOS' , '~> 3.1 .0'
11
11
pod 'NewPopMenu' , '~> 2.0'
12
12
end
13
13
Original file line number Diff line number Diff line change 1
1
$ThirdPartysrc = ' https://agora-adc-artifacts.oss-cn-beijing.aliyuncs.com/libs/ThirdParty.zip'
2
2
$ThirdPartydes = ' ThirdParty.zip'
3
- $agora_sdk = ' https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows_v3_0_1_1_FULL .zip'
4
- $agora_des = ' Agora_Native_SDK_for_Windows_v3_0_1_1_FULL .zip'
3
+ $agora_sdk = ' https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows_v3_1_0_FULL .zip?_ga=2.112897604.1543767373.1598420161-359641476.1551176445 '
4
+ $agora_des = ' Agora_Native_SDK_for_Windows_v3_1_0_FULL .zip'
5
5
$MediaPlayerSDK = ' https://download.agora.io/sdk/release/Agora_Media_Player_for_Windows_x86_rel.v1.1.0.16486_20200507_1537.zip'
6
6
$MediaPlayerDes = ' MediaPlayerPartSave.zip'
7
7
You can’t perform that action at this time.
0 commit comments