Skip to content

Commit

Permalink
update sdk 4.1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaozhong committed Aug 28, 2020
1 parent fa169be commit ff4b2d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 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 'org.ar:rtc:4.0.1.0'
implementation 'org.ar:rtc:4.1.0.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class VideoActivity extends AppCompatActivity implements View.OnClickList
private ImageView ivSwitch,ivMuteAudio,ivMuteVideo,ivCall;
private LoggerRecyclerView mLogView;
private String userId = String.valueOf((int) ((Math.random() * 9 + 1) * 100000));
private String CHANNEL_NAME = "808080";
private RtcEngine mRtcEngine;
private boolean mCallEnd;
private String remoteId= "";
Expand Down Expand Up @@ -93,7 +92,7 @@ private void initializeEngine() {


private void joinChannel() {
mRtcEngine.joinChannel("", CHANNEL_NAME, "Extra Optional Data",userId );
mRtcEngine.joinChannel("", getResources().getString(R.string.channel), "Extra Optional Data",userId );
}

private void leaveChannel() {
Expand Down Expand Up @@ -183,7 +182,7 @@ private void setupRemoteVideo(String uid) {
remoteId = uid;
TextureView mRemoteView = RtcEngine.CreateRendererView(getBaseContext());
rlRemote.addView(mRemoteView);
mRtcEngine.setupRemoteVideo(new VideoCanvas(mRemoteView, Constants.RENDER_MODE_HIDDEN,CHANNEL_NAME, uid,Constants.VIDEO_MIRROR_MODE_DISABLED));
mRtcEngine.setupRemoteVideo(new VideoCanvas(mRemoteView, Constants.RENDER_MODE_HIDDEN,getResources().getString(R.string.channel), uid,Constants.VIDEO_MIRROR_MODE_DISABLED));
}


Expand All @@ -201,7 +200,6 @@ private void removeLocalVideo() {
}
}
private void startCall() {
// initializeEngine();
setupLocalVideo();
joinChannel();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string translatable="false" name="app_id"></string>
<string translatable="false" name="channel">808080</string>
</resources>
Binary file modified SDK/rtc-release.aar
Binary file not shown.

0 comments on commit ff4b2d2

Please sign in to comment.