Skip to content

Commit

Permalink
Merge pull request #31 from york1996/release-2.1.1
Browse files Browse the repository at this point in the history
release v2.1.1
  • Loading branch information
geeklok authored Mar 27, 2019
2 parents 2ed804c + b24ef98 commit e08c8d3
Show file tree
Hide file tree
Showing 17 changed files with 56 additions and 11 deletions.
4 changes: 2 additions & 2 deletions QNDroidRTCDemo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.qiniu.droid.rtc.demo"
minSdkVersion 18
targetSdkVersion 28
versionCode 18
versionName "2.1.0"
versionCode 21
versionName "2.1.1"
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
}

Expand Down
Binary file removed QNDroidRTCDemo/app/libs/qndroid-rtc-2.1.0.jar
Binary file not shown.
Binary file added QNDroidRTCDemo/app/libs/qndroid-rtc-2.1.1.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -445,17 +445,22 @@ public void onCreateMergeJobSuccess(String mergeJobId) {

@Override
public void onError(int errorCode, String description) {
if (errorCode == QNErrorCode.ERROR_TOKEN_ERROR
|| errorCode == QNErrorCode.ERROR_TOKEN_EXPIRED
|| errorCode == QNErrorCode.ERROR_AUTH_FAIL
|| errorCode == QNErrorCode.ERROR_RECONNECT_TOKEN_ERROR
|| errorCode == QNErrorCode.ERROR_SIGNAL_IO_EXCEPTION
|| errorCode == QNErrorCode.ERROR_TOKEN_INVALID) {
if (errorCode == QNErrorCode.ERROR_TOKEN_INVALID
|| errorCode == QNErrorCode.ERROR_TOKEN_ERROR
|| errorCode == QNErrorCode.ERROR_TOKEN_EXPIRED) {
reportError("roomToken 错误,请重新加入房间");
} else if (errorCode == QNErrorCode.ERROR_AUTH_FAIL
|| errorCode == QNErrorCode.ERROR_RECONNECT_TOKEN_ERROR) {
// reset TrackWindowMgr
mTrackWindowMgr.reset();
// display local videoTrack
List<QNTrackInfo> localTrackListExcludeScreenTrack = new ArrayList<>(mLocalTrackList);
localTrackListExcludeScreenTrack.remove(mLocalScreenTrack);
mTrackWindowMgr.addTrackInfo(mUserId, localTrackListExcludeScreenTrack);
// rejoin Room
mEngine.joinRoom(mRoomToken);
} else if (errorCode == QNErrorCode.ERROR_PUBLISH_FAIL) {
reportError("发布失败,请重新加入房间发布");
} else if (errorCode == QNErrorCode.ERROR_ACCESSTOKEN_INVALID) {
reportError("服务端发生了一些问题,加入房间失败,请重试");
} else {
logAndToast("errorCode:" + errorCode + " description:" + description);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.webrtc.Logging;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class TrackWindowMgr {
Expand Down Expand Up @@ -305,4 +306,11 @@ private void updateLayoutParams(UserTrackView targetView, int width, int height,
lp.setMarginStart(marginStart);
targetView.setLayoutParams(lp);
}

public void reset() {
Collection<String> users = new ArrayList<>(mUserWindowMap.keySet());
for (String userId : users) {
removeTrackWindow(userId);
}
}
}
Binary file modified QNDroidRTCDemo/app/src/main/jniLibs/arm64-v8a/libqndroid_rtc.so
Binary file not shown.
Binary file not shown.
Binary file modified QNDroidRTCDemo/app/src/main/jniLibs/armeabi/libqndroid_rtc.so
Binary file not shown.
Binary file modified QNDroidRTCDemo/app/src/main/jniLibs/x86/libqndroid_rtc.so
Binary file not shown.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ QNDroidRTC 是七牛云推出的一款适用于 Android 平台的实时音视频
- 支持自动订阅功能
- 支持本地发布多路视频
- 支持音频与视频分开发布
- 支持蓝牙耳机通话
- 支持蓝牙耳机通话
- 支持截帧功能
- 支持采集分辨率与编码分辨率分别采用不同朝向

# 3 方案介绍

Expand Down
31 changes: 31 additions & 0 deletions ReleaseNotes/release-notes-2.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# QNDroidRTC Release Notes for 2.1.1

## 简介

QNDroidRTC 是七牛推出的一款适用于 Android 平台的音视频通话 SDK,提供了包括美颜、滤镜、水印、音视频通话等多种功能,提供灵活的接口,支持高度定制以及二次开发。

## 版本

- 发布 qndroid-rtc-2.1.1.jar
- 更新 libqndroid_rtc.so

## 功能

- 支持在硬编时自动调节分辨率
- 支持采集分辨率与编码分辨率分别采用不同朝向
- 新增销毁指定 Track 的接口
- 本地视频预览增加开始采集/停止采集回调

## 缺陷

- 修复部分机型及部分情况下的花屏问题
- 修复统计信息接口无法统计所有用户信息的问题

## 优化

- 合并部分状态码以便开发者处理
- SDK 内部增加对订阅失败及发布失败的重试逻辑

## 问题反馈

当你遇到任何问题时,可以通过在 GitHub 的 repo 提交 `issues` 来反馈问题,请尽可能的描述清楚遇到的问题,如果有错误信息也一同附带,并且在 ```Labels``` 中指明类型为 bug 或者其他。 [通过这里查看已有的 issues 和提交 bug](https://github.com/pili-engineering/QNRTC-Android/issues)
Binary file modified releases/arm64-v8a/libqndroid_rtc.so
Binary file not shown.
Binary file modified releases/armeabi-v7a/libqndroid_rtc.so
Binary file not shown.
Binary file modified releases/armeabi/libqndroid_rtc.so
Binary file not shown.
Binary file removed releases/qndroid-rtc-2.1.0.jar
Binary file not shown.
Binary file added releases/qndroid-rtc-2.1.1.jar
Binary file not shown.
Binary file modified releases/x86/libqndroid_rtc.so
Binary file not shown.

0 comments on commit e08c8d3

Please sign in to comment.