Skip to content

Commit 604b1ca

Browse files
committed
[Android]fix rtc sdk update compile error.
1 parent 999bece commit 604b1ca

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/InCallReport.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,9 @@ public void onRemoteVideoStats(RemoteVideoStats remoteVideoStats) {
480480
}
481481

482482
@Override
483-
public void onLocalVideoStats(LocalVideoStats localVideoStats) {
484-
statisticsInfo.setLocalVideoStats(localVideoStats);
483+
public void onLocalVideoStats(Constants.VideoSourceType source, LocalVideoStats stats) {
484+
super.onLocalVideoStats(source, stats);
485+
statisticsInfo.setLocalVideoStats(stats);
485486
updateLocalStats();
486487
}
487488

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ else if(v.getId() == R.id.btn_bgm)
261261
bgm.setActivated(!bgm.isActivated());
262262
bgm.setText(!bgm.isActivated()?getString(R.string.bgm_on):getString(R.string.bgm_off));
263263
if(bgm.isActivated()){
264-
int ret = engine.startAudioMixing(Constant.MIX_FILE_PATH, false, false, -1, 0);
264+
int ret = engine.startAudioMixing(Constant.MIX_FILE_PATH, false, -1, 0);
265265
Log.i(TAG, ""+ret);
266266
}
267267
else{

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchCameraScreenShare.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ public void onJoinChannelSuccess(String channel, int uid, int elapsed) {
452452
}
453453

454454
@Override
455-
public void onLocalVideoStateChanged(int localVideoState, int error) {
456-
super.onLocalVideoStateChanged(localVideoState, error);
457-
if (localVideoState == 1) {
455+
public void onLocalVideoStateChanged(Constants.VideoSourceType source, int state, int error) {
456+
super.onLocalVideoStateChanged(source, state, error);
457+
if (state == 1) {
458458
Log.i(TAG, "local view published successfully!");
459459
}
460460
}

0 commit comments

Comments
 (0)