File tree Expand file tree Collapse file tree
Android/APIExample/app/src/main
java/io/agora/api/example
windows/APIExample/APIExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232import io .agora .api .example .examples .advanced .RhythmPlayer ;
3333import io .agora .api .example .examples .advanced .SendDataStream ;
3434import io .agora .api .example .examples .advanced .SetAudioProfile ;
35- import io .agora .api .example .examples .advanced .SimpleExtension ;
3635import io .agora .api .example .examples .advanced .SpatialSound ;
3736import io .agora .api .example .examples .advanced .SwitchCameraScreenShare ;
3837import io .agora .api .example .examples .advanced .VideoMetadata ;
@@ -148,9 +147,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
148147 case R .id .action_mainFragment_raw_audio :
149148 fragment = new ProcessAudioRawData ();
150149 break ;
151- case R .id .action_mainFragment_extension :
152- fragment = new SimpleExtension ();
153- break ;
154150 case R .id .action_mainFragment_video_enhancement :
155151 fragment = new VideoProcessExtension ();
156152 break ;
Original file line number Diff line number Diff line change 11package io .agora .api .example ;
22
33import android .app .Application ;
4- import android .content .Context ;
4+
5+ import com .tencent .bugly .crashreport .CrashReport ;
56
67import java .lang .annotation .Annotation ;
7- import java .util .Collections ;
88import java .util .Set ;
99
1010import io .agora .api .example .annotation .Example ;
@@ -19,6 +19,7 @@ public class MainApplication extends Application {
1919 @ Override
2020 public void onCreate () {
2121 super .onCreate ();
22+ CrashReport .initCrashReport (getApplicationContext (), "7cb50ce921" , BuildConfig .DEBUG );
2223 initExamples ();
2324 }
2425
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9898 <action
9999 android : id =" @+id/action_mainFragment_raw_audio"
100100 app : destination =" @id/RawAudio" />
101- <action
102- android : id =" @+id/action_mainFragment_extension"
103- app : destination =" @id/SimpleExtension" />
104101 <action
105102 android : id =" @+id/action_mainFragment_video_enhancement"
106103 app : destination =" @id/VideoEnhance" />
258255 android : name =" io.agora.api.example.examples.advanced.ProcessAudioRawData"
259256 android : label =" RawAudio"
260257 tools : layout =" @layout/fragment_raw_audio" />
261- <fragment
262- android : id =" @+id/SimpleExtension"
263- android : name =" io.agora.api.example.examples.advanced.SimpleExtension"
264- android : label =" AudioExtension"
265- tools : layout =" @layout/fragment_extension" />
266258 <fragment
267259 android : id =" @+id/VideoEnhance"
268260 android : name =" io.agora.api.example.examples.advanced.VideoProcessExtension"
Original file line number Diff line number Diff line change 109109 <string name =" item_arcore" >现实增强集成</string >
110110 <string name =" item_senddatastream" >发送数据流</string >
111111 <string name =" item_raw_audio" >原始音频数据</string >
112- <string name =" item_ext" >插件系统</string >
113112 <string name =" item_spatial_sound" >空间音效</string >
114113 <string name =" item_content_inspect" >视频鉴黄</string >
115114
144143 <string name =" arcore" >此示例演示了如何将一个基于Google ARCore构建的AR画面实时分享给远端观众。</string >
145144 <string name =" senddatastream" >此示例演示了在音视频通话过程中如何伴随视频帧发送数据流信息的方法。</string >
146145 <string name =" rawaudio" >此示例演示了在音频通话过程中如何通过回调获取裸数据的功能。</string >
147- <string name =" simple_extension" >此示例演示了一个简单音视频插件是如何使用的。</string >
148146 <string name =" rhythmplayer" >此示例演示了音频通话过程中如何使用虚拟节拍器。</string >
149147 <string name =" videoEnhancement" >此示例演示了音频通话过程中SDK内置的各类视频增强功能。</string >
150148 <string name =" writeback" >音频回写</string >
Original file line number Diff line number Diff line change 111111 <string name =" item_livestreaming" >RTC Live Streaming</string >
112112 <string name =" item_twoProcessScreenShare" >Multi Process - Screen Sharing</string >
113113 <string name =" item_raw_audio" >Raw Audio Data</string >
114- <string name =" item_ext" >Simple Extension</string >
115114 <string name =" item_senddatastream" >Send Data Stream</string >
116115 <string name =" item_arcore" >ARCore</string >
117116 <string name =" item_spatial_sound" >Spatial Audio</string >
148147 <string name =" arcore" >This example shows how to use RTC Engine to share Artifactial Reality App to remote audience. AR module is based on Google ARCore in this Example.</string >
149148 <string name =" senddatastream" >This example shows how to use sendDataStream API to send your custom data along with Video Frame in Channel.</string >
150149 <string name =" rawaudio" >This example shows how to register Audio Observer to engine for extract raw audio data during RTC communication.</string >
151- <string name =" simple_extension" >This example shows how to use simple extension during RTC communication.</string >
152150 <string name =" rhythmplayer" >This example shows how to use virtual rhythm player for during RTC communication.</string >
153151 <string name =" videoEnhancement" >This example shows the features for video enhancement for RTC communication.</string >
154152 <string name =" writeback" >Write Back Audio</string >
Original file line number Diff line number Diff line change 2323 <ProjectGuid >{DB16CA2F-3910-4449-A5BD-6A602B33BE0F}</ProjectGuid >
2424 <Keyword >MFCProj</Keyword >
2525 <RootNamespace >APIExample</RootNamespace >
26- <WindowsTargetPlatformVersion >10.0.19041 .0</WindowsTargetPlatformVersion >
26+ <WindowsTargetPlatformVersion >10.0.17763 .0</WindowsTargetPlatformVersion >
2727 </PropertyGroup >
2828 <Import Project =" $(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2929 <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|Win32'" Label =" Configuration" >
4444 <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" Label =" Configuration" >
4545 <ConfigurationType >Application</ConfigurationType >
4646 <UseDebugLibraries >true</UseDebugLibraries >
47- <PlatformToolset >v142 </PlatformToolset >
47+ <PlatformToolset >v141 </PlatformToolset >
4848 <CharacterSet >Unicode</CharacterSet >
4949 <UseOfMfc >Dynamic</UseOfMfc >
5050 </PropertyGroup >
@@ -367,8 +367,8 @@ copy $(SolutionDir)APIExample\Advanced\LocalVideoTranscoding\agora.jpg $(Solutio
367367 <ItemGroup >
368368 <Image Include =" res\APIExample.ico" />
369369 <Image Include =" res\IDB_NETWORK_QUALITY.bmp" />
370- <Image Include =" res\local.bmp" />
371- <Image Include =" res\remote.bmp" />
370+ <CopyFileToFolders Include =" res\local.bmp" />
371+ <CopyFileToFolders Include =" res\remote.bmp" />
372372 </ItemGroup >
373373 <ItemGroup >
374374 <CopyFileToFolders Include =" res\audiomixing.wav" >
Original file line number Diff line number Diff line change 374374 <Image Include =" res\IDB_NETWORK_QUALITY.bmp" >
375375 <Filter >Resource Files</Filter >
376376 </Image >
377- <Image Include =" res\local.bmp" >
378- <Filter >Resource Files</Filter >
379- </Image >
380- <Image Include =" res\remote.bmp" >
381- <Filter >Resource Files</Filter >
382- </Image >
383377 </ItemGroup >
384378 <ItemGroup >
385379 <Media Include =" res\ID_TEST_AUDIO.wav" >
390384 <CopyFileToFolders Include =" res\audiomixing.wav" >
391385 <Filter >Resource Files</Filter >
392386 </CopyFileToFolders >
387+ <CopyFileToFolders Include =" res\local.bmp" >
388+ <Filter >Resource Files</Filter >
389+ </CopyFileToFolders >
390+ <CopyFileToFolders Include =" res\remote.bmp" >
391+ <Filter >Resource Files</Filter >
392+ </CopyFileToFolders >
393393 </ItemGroup >
394394</Project >
Original file line number Diff line number Diff line change 33#include " AGVideoWnd.h"
44#include < map>
55#include < string>
6+ #include < IAgoraRtcEngineEx.h>
7+
68// CMultiCameraDlg
79typedef struct _CameraInfos {
810 std::string deviceId;
@@ -144,7 +146,7 @@ class CMultiCameraDlg : public CDialogEx
144146 std::string m_strChannel;
145147
146148 agora::rtc::IRtcEngineEx* m_rtcEngine = nullptr ;
147-
149+
148150 conn_id_t m_conn_camera2;
149151 conn_id_t m_conn_camera;
150152 std::vector<CAMERAINFO> m_vecCameraInfos;
You can’t perform that action at this time.
0 commit comments