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' // 音视频通话基础能力库