修改問題

This commit is contained in:
18401019693 2022-09-20 15:07:05 +08:00
parent 567e403151
commit d77721a0bc
2 changed files with 4 additions and 1 deletions

View File

@ -247,6 +247,7 @@ public class LiveAudienceActivity extends LiveActivity {
// 满足此种条件表明需要加载直播视频以及聊天室了
if (viewGroup.getId() == mCurrentItem && (position == 0) && mCurrentItem != mLastPosition) {
loadData(viewGroup, mCurrentItem);
manager.onPause();
}
}

View File

@ -376,8 +376,9 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
// mVideoView.start();
}
mPaused = false;
if (mPlayer.isPlaying()==0){
if (mPlayer.isPlaying() == 1) {
mPlayer.resumeVideo();
mPlayer.resumeAudio();
}
}
@ -388,6 +389,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
// }
// mPaused = true;
mPlayer.pauseVideo();
mPlayer.pauseAudio();
}
@Override