-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46c201d
commit 2af6e5d
Showing
63 changed files
with
3,600 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Demo/app/src/main/java/com/tencent/liteav/demo/TXCSDKService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.tencent.liteav.demo; | ||
|
||
import android.content.Context; | ||
|
||
import com.tencent.rtmp.TXLiveBase; | ||
import com.tencent.rtmp.TXLiveBaseListener; | ||
|
||
public class TXCSDKService { | ||
private static final String TAG = "TXCSDKService"; | ||
// 如何获取License? 请参考官网指引 https://cloud.tencent.com/document/product/454/34750 | ||
private static final String licenceUrl = | ||
"请替换成您的licenseUrl"; | ||
private static final String licenseKey = "请替换成您的licenseKey"; | ||
|
||
private TXCSDKService() { | ||
} | ||
|
||
/** | ||
* 初始化腾讯云相关sdk。 | ||
* SDK 初始化过程中可能会读取手机型号等敏感信息,需要在用户同意隐私政策后,才能获取。 | ||
* | ||
* @param appContext The application context. | ||
*/ | ||
public static void init(Context appContext) { | ||
TXLiveBase.getInstance().setLicence(appContext, licenceUrl, licenseKey); | ||
TXLiveBase.setListener(new TXLiveBaseListener() { | ||
@Override | ||
public void onUpdateNetworkTime(int errCode, String errMsg) { | ||
if (errCode != 0) { | ||
TXLiveBase.updateNetworkTime(); | ||
} | ||
} | ||
}); | ||
TXLiveBase.updateNetworkTime(); | ||
|
||
// 短视频licence设置 | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
Demo/app/src/main/res/drawable/app_update_dialog_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<!-- rectangle表示为矩形 --> | ||
|
||
<!-- 填充的颜色 --> | ||
<solid android:color="@color/main_item_unselected_color" /> | ||
|
||
<!-- 边框的颜色和粗细 --> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/white" | ||
/> | ||
|
||
<!-- android:radius 圆角的半径 --> | ||
<corners | ||
android:radius="2dp" | ||
/> | ||
|
||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.