diff --git a/QNDroidRTCDemo/app/build.gradle b/QNDroidRTCDemo/app/build.gradle index 51f5a3c..e187162 100644 --- a/QNDroidRTCDemo/app/build.gradle +++ b/QNDroidRTCDemo/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "com.qiniu.droid.rtc.demo" minSdkVersion 18 targetSdkVersion 30 - versionCode 32 - versionName "4.0.0" + versionCode 33 + versionName "4.0.1" buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L" } diff --git a/QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.0.jar b/QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.1.jar similarity index 69% rename from QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.0.jar rename to QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.1.jar index 38b3ebf..f00d7aa 100644 Binary files a/QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.0.jar and b/QNDroidRTCDemo/app/libs/qndroid-rtc-4.0.1.jar differ diff --git a/QNDroidRTCDemo/app/src/main/java/com/qiniu/droid/rtc/demo/activity/RoomActivity.java b/QNDroidRTCDemo/app/src/main/java/com/qiniu/droid/rtc/demo/activity/RoomActivity.java index b14e25b..436be3a 100644 --- a/QNDroidRTCDemo/app/src/main/java/com/qiniu/droid/rtc/demo/activity/RoomActivity.java +++ b/QNDroidRTCDemo/app/src/main/java/com/qiniu/droid/rtc/demo/activity/RoomActivity.java @@ -51,6 +51,7 @@ import com.qiniu.droid.rtc.QNLiveStreamingErrorInfo; import com.qiniu.droid.rtc.QNLiveStreamingListener; import com.qiniu.droid.rtc.QNLocalTrack; +import com.qiniu.droid.rtc.QNMediaRelayState; import com.qiniu.droid.rtc.QNMicrophoneAudioTrack; import com.qiniu.droid.rtc.QNMicrophoneAudioTrackConfig; import com.qiniu.droid.rtc.QNNetworkQuality; @@ -899,7 +900,7 @@ public void onAudioRouteChanged(QNAudioDevice device) { */ @Override public void onConnectionStateChanged(QNConnectionState state, @Nullable QNConnectionDisconnectedInfo info) { - Log.i(TAG, "onRoomStateChanged:" + state.name()); + Log.i(TAG, "onConnectionStateChanged:" + state.name()); switch (state) { case DISCONNECTED: /** @@ -1115,6 +1116,11 @@ public void onMessageReceived(QNCustomMessage message) { finish(); } } + + @Override + public void onMediaRelayStateChanged(String relayRoom, QNMediaRelayState state) { + + } }; private final QNCameraEventListener mCameraEventListener = new QNCameraEventListener() { diff --git a/QNDroidRTCDemo/app/src/main/jniLibs/x86/libqndroid_rtc.so b/QNDroidRTCDemo/app/src/main/jniLibs/x86/libqndroid_rtc.so new file mode 100755 index 0000000..6940e1f Binary files /dev/null and b/QNDroidRTCDemo/app/src/main/jniLibs/x86/libqndroid_rtc.so differ diff --git a/ReleaseNotes/release-notes-4.0.1.md b/ReleaseNotes/release-notes-4.0.1.md new file mode 100644 index 0000000..04f57c1 --- /dev/null +++ b/ReleaseNotes/release-notes-4.0.1.md @@ -0,0 +1,23 @@ +# QNDroidRTC Release Notes for 4.0.1 + +## 简介 + +QNDroidRTC 是七牛推出的一款适用于 Android 平台的音视频通话 SDK,提供了包括美颜、滤镜、音视频通话等多种功能,提供灵活的接口,支持高度定制以及二次开发。 + +## 版本 + +- 发布 qndroid-rtc-4.0.1.jar + +## 功能 + +- 新增场景和角色设置,详见 QNRTC.createClient, QNRTCClient.setClientRole +- 跨房媒体转发功能,详见 QNRTCClient.(start/update/stop)MediaRelay +- 麦克风被占用时提供检测方法或错误回调 + +## 缺陷 + +- 修复断网时统计信息依然回调质量正常的问题 + +## 问题反馈 + +当你遇到任何问题时,可以通过在 GitHub 的 repo 提交 `issues` 来反馈问题,请尽可能的描述清楚遇到的问题,如果有错误信息也一同附带,并且在 ```Labels``` 中指明类型为 bug 或者其他。 [通过这里查看已有的 issues 和提交 bug](https://github.com/pili-engineering/QNRTC-Android/issues) diff --git a/releases/qndroid-rtc-4.0.0.jar b/releases/qndroid-rtc-4.0.1.jar similarity index 69% rename from releases/qndroid-rtc-4.0.0.jar rename to releases/qndroid-rtc-4.0.1.jar index 38b3ebf..f00d7aa 100644 Binary files a/releases/qndroid-rtc-4.0.0.jar and b/releases/qndroid-rtc-4.0.1.jar differ