Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-10.7.13036 #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Android/README.en.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Quick Run of TUIVoiceRoom Demo for Android
_[中文](README.md) | English_

This document describes how to quickly run the TUIVoiceRoom demo project to make a high-quality audio/video chat. For more information on the TUIVoiceRoom component connection process, see **[Integrating TUIVoiceRoom (Android)](https://www.tencentcloud.com/document/product/647/37286)**.
This document describes how to quickly run the TUIVoiceRoom demo project to make a high-quality audio/video chat. For more information on the TUIVoiceRoom component connection process, see **[Integrating TUIVoiceRoom (Android)](https://cloud.tencent.com/document/product/647/45737)**.

## Directory Structure

```
TUIVoiceRoom
├─ app // Main panel, which provides entries of various scenarios
├─ debug // Debugging code
└─ tuivoicerooom // Integrating audio chat business logic
└─ tuivoicerooom // Video meeting business logic
```

## Environment Requirements
Expand All @@ -25,7 +25,7 @@ TUIVoiceRoom
3. On the application information page, note down the `SDKAppID` and key as shown below:
<img src="https://qcloudimg.tencent-cloud.cn/raw/bea06852e22a33c77cb41d287cac25db.png" width="900">

>! This feature uses two basic PaaS services of Tencent Cloud: [TRTC](https://www.tencentcloud.com/document/product/647/35078) and [IM](https://www.tencentcloud.com/document/product/1047/33513). When you activate TRTC, IM will be activated automatically. IM is a value-added service.
>! This feature uses two basic PaaS services of Tencent Cloud: [TRTC](https://cloud.tencent.com/document/product/647/16788) and [IM](https://cloud.tencent.com/document/product/269). When you activate TRTC, IM will be activated automatically. IM is a value-added service. See [Pricing](https://cloud.tencent.com/document/product/269/11673) for its billing details.


[](id:ui.step2)
Expand All @@ -51,11 +51,18 @@ Note: You need to prepare at least two devices to try out TUIVoiceRoom. Here, us
- Step 3: Enter a room subject and click **Start**.
- Step 4: Enter the room.

| Step 1 | Step 2 | Step 3 | Step 4 |
|---------|---------|---------|---------|
| <img src="https://liteav.sdk.qcloud.com/doc/res/trtc/picture/zh-cn/user_a.png" width="250"> | <img src="https://liteav.sdk.qcloud.com/doc/res/trtc/picture/zh-cn/tuivoiceroom_create_room.png" width="250"> | <img src="https://qcloudimg.tencent-cloud.cn/raw/d974a54fa71b221ff342e9789d6e125a.png" width="250"> |<img src="https://qcloudimg.tencent-cloud.cn/raw/b2d8de0412d5378a8b269d277338902d.jpg" width="250"> |

**Device B (userId: 222)**

- Step 1: Enter the username (which must be unique), such as `222`.
- Step 2: Click **Enter Room** and enter the ID of the room created by use A (the room ID that you noted down in step 4 on device A) to enter the room.

| Step 1 | Step 2 |
|---------|---------|
| <img src="https://liteav.sdk.qcloud.com/doc/res/trtc/picture/zh-cn/user_b.png" width="320"/> | <img src="https://liteav.sdk.qcloud.com/doc/res/trtc/picture/zh-cn/tuivoiceroom_enter_room.png" width="320"/> |

## Have any questions?
Welcome to join our Telegram Group to communicate with our professional engineers! We are more than happy to hear from you~
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.tencent.liteav.basic;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class Constants {
public static final String URL_PUSH = "url_push"; // RTMP 推流地址
public static final String URL_PLAY_FLV = "url_play_flv"; // FLV 播放地址
public static final String POPULAR_RECOMMENDATION_BEAN_KEY = "popular_recommendation_bean_key";

public static final int APP_ID = 1500005830;

public static final int NOT_SELECTED = -1;

public static boolean isNetworkConnected(Context context) {
if (context != null) {
ConnectivityManager mConnectivityManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
if (mNetworkInfo != null) {
return mNetworkInfo.isAvailable();
}
}
return false;
}
}