From 0f03a754c1c4c8c9113e0e1f703449d8cfffb3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Sat, 7 Sep 2024 10:17:35 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=85=BE=E8=AE=AF=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=99=A8=E5=8A=A8=E6=80=81=E5=8A=A0=E8=BD=BDso---=E4=BB=A5?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E6=90=9E=202=E3=80=81=E8=85=BE=E8=AE=AFIM=20?= =?UTF-8?q?SDK=E5=8F=AF=E4=BB=A5=E5=88=A0=E9=99=A4---=E4=BB=A5=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E6=90=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/shayu/phonelive/activity/LauncherActivity.java | 3 +++ common/build.gradle | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java index 071336a27..0e8409a16 100644 --- a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java +++ b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java @@ -409,6 +409,9 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL CommonAppConfig.getInstance().setAnchorPkTime(bean.getPkTime()); if (!TextUtils.isEmpty(bean.getTxVideoUgcLicenceUrl()) && !TextUtils.isEmpty(bean.getTxVideoUgcKey())) Log.i("tvv", bean.getTxVideoUgcLicenceUrl() + "是" + bean.getTxVideoUgcKey()); + + //sdk接口动态加载so TXLiveBase.setLibraryPath(); https://brands.cnblogs.com/tencentcloud/p/6137 + TXLiveBase.getInstance().setLicence(LauncherActivity.this, bean.getTxVideoUgcLicenceUrl(), bean.getTxVideoUgcKey()); TXUGCBase.getInstance().setLicence(LauncherActivity.this, bean.getTxPlayUgcLicenceUrl(), bean.getTxVideoUgcKey()); diff --git a/common/build.gradle b/common/build.gradle index 7a9cddc19..a963c28a4 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -173,10 +173,13 @@ dependencies { api 'com.squareup.picasso:picasso:2.5.2' api "com.immomo.cosmos.mediax:beautyutils:2.2.1_01071700" + // 腾讯播放器 liteavsdk.jar、libtxffmpeg.so、libliteavsdk.so、libtxsoundtouch.so https://cloud.tencent.com/document/product/881/81205 api files('libs/liteavsdk.jar') - api 'com.xw.repo:bubbleseekbar:3.20-lite' - //腾讯im + //腾讯im libImSDK.so https://cloud.tencent.com/document/product/269/75283 api 'com.tencent.imsdk:imsdk-plus:5.4.666' + + api 'com.xw.repo:bubbleseekbar:3.20-lite' + api 'com.google.code.gson:gson:2.8.8' api 'cn.rongcloud.sdk:rtc_lib:5.7.0' // 音视频通话基础能力库