直播后台播放

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 //im
api 'com.tencent.imsdk:imsdk-plus:5.4.666' api 'com.tencent.imsdk:imsdk-plus:5.4.666'
api 'com.google.code.gson:gson:2.8.8' 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 // 5.1.2
api 'cn.rongcloud.sdk:im_lib:5.2.5.1' // api 'cn.rongcloud.sdk:im_lib:5.1.3.10' //
api 'cn.rongcloud.sdk:im_kit:5.2.5.1' // UI api 'cn.rongcloud.sdk:im_kit:5.1.3.10' // UI
// 5.1.2 // 5.1.2
api 'cn.rongcloud.sdk:im_lib:5.2.5' // api 'cn.rongcloud.sdk:im_lib:5.2.5' //
api 'cn.rongcloud.sdk:im_kit:5.2.5' // UI api 'cn.rongcloud.sdk:im_kit:5.2.5' // UI

View File

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

View File

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

View File

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