Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaozhong committed Apr 28, 2021
1 parent ceb7fef commit 64cd95c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AR-Android-Tutorial-1to1/sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(path: ':logger')
implementation 'io.anyrtc:rtc:4.1.4.3'
implementation 'io.anyrtc:rtc:4.2.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private void initializeEngine() {
mRtcEngine = RtcEngine.create(getBaseContext(), getResources().getString(R.string.app_id), mRtcEventHandler);
//启用视频模块
mRtcEngine.enableVideo();
mRtcEngine.startPreview();
} catch (Exception e) {
throw new RuntimeException("NEED TO check rtc sdk init fatal error\n" + Log.getStackTraceString(e));
}
Expand Down Expand Up @@ -169,7 +170,7 @@ private void setupLocalVideo() {
}
rlLocal.addView(mLocalView);
//设置本地视图
mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_FIT, userId));
mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, userId));
}


Expand Down

0 comments on commit 64cd95c

Please sign in to comment.