直播后台播放

This commit is contained in:
18401019693 2022-09-30 14:23:15 +08:00
parent dea52ee452
commit 39b4a52ade
4 changed files with 14 additions and 14 deletions

View File

@ -154,10 +154,10 @@ dependencies {
//im
api 'com.tencent.imsdk:imsdk-plus:5.4.666'
api 'com.google.code.gson:gson:2.8.8'
api 'cn.rongcloud.sdk:rtc_lib:5.2.5.3' //
api 'cn.rongcloud.sdk:rtc_lib:5.2.0' //
// 5.1.2
api 'cn.rongcloud.sdk:im_lib:5.2.5.1' //
api 'cn.rongcloud.sdk:im_kit:5.2.5.1' // UI
api 'cn.rongcloud.sdk:im_lib:5.1.3.10' //
api 'cn.rongcloud.sdk:im_kit:5.1.3.10' // UI
// 5.1.2
api 'cn.rongcloud.sdk:im_lib:5.2.5' //
api 'cn.rongcloud.sdk:im_kit:5.2.5' // UI

View File

@ -4,7 +4,7 @@ ext {
buildToolsVersion: "28.0.3",
minSdkVersion : 21,
targetSdkVersion : 31,
versionCode : 215,
versionCode : 217,
versionName : "6.4.2"
]
manifestPlaceholders = [

View File

@ -378,10 +378,10 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
// mVideoView.start();
}
mPaused = false;
if (mPlayer.isPlaying() == 1) {
mPlayer.resumeVideo();
mPlayer.resumeAudio();
}
// if (mPlayer.isPlaying() == 1) {
// mPlayer.resumeVideo();
// mPlayer.resumeAudio();
// }
}
@Override
@ -390,8 +390,8 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
// mVideoView.runInBackground(false);
// }
// mPaused = true;
mPlayer.pauseVideo();
mPlayer.pauseAudio();
// mPlayer.pauseVideo();
// mPlayer.pauseAudio();
}
@Override

View File

@ -365,14 +365,14 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
@Override
public void onResume() {
if (mLivePlayViewHolder != null)
mLivePlayViewHolder.onResume();
// if (mLivePlayViewHolder != null)
// mLivePlayViewHolder.onResume();
}
@Override
public void onPause() {
if (mLivePlayViewHolder != null)
mLivePlayViewHolder.onPause();
// if (mLivePlayViewHolder != null)
// mLivePlayViewHolder.onPause();
}
@Override