diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java index 6d001c6a8..e32a32c7d 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicAnchorPresenter.java @@ -496,4 +496,8 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener { mLastApplyLinkMicTime = 0; DialogUitl.showSimpleTipDialog(mContext, WordUtil.getString(R.string.link_mic_play_game)); } + + public void setLiveSdk(int mLiveSDK) { + this.mLiveSdk=mLiveSDK; + } } diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java index b6e427e10..8855e7d8a 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveLinkMicPresenter.java @@ -856,4 +856,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener { mLiveLinkMicPushViewHolder = null; } + public void setLiveSdk(int mLiveSDK) { + this.mLiveSdk=mLiveSDK; + } } diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java index 38868614e..374978a99 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayKsyViewHolder.java @@ -249,6 +249,11 @@ public class LivePlayKsyViewHolder extends LiveRoomPlayViewHolder { } } + @Override + public void setLiveBeanLandscape(int landscape) { + LivePlayKsyViewHolder.landscape =landscape; + } + @Override public ViewGroup getSmallContainer() { diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java index 3528bc106..13477491f 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java @@ -164,6 +164,11 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { } } + @Override + public void setLiveBeanLandscape(int landscape) { + LivePlayRyViewHolder.landscape =landscape; + } + /** * 暂停播放 */ diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java index b92a299bd..9aef30b33 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder.java @@ -79,6 +79,10 @@ public class LivePlayTxViewHolder extends LiveRoomPlayViewHolder implements ITXL } + @Override + public void setLiveBeanLandscape(int landscape) { + } + @Override protected int getLayoutId() { return R.layout.view_live_play_tx; diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java index 50afb11ef..2aaa2705e 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayTxViewHolder_backup.java @@ -67,6 +67,11 @@ public class LivePlayTxViewHolder_backup extends LiveRoomPlayViewHolder implemen } + @Override + public void setLiveBeanLandscape(int landscape) { + + } + public LivePlayTxViewHolder_backup(Context context, ViewGroup parentView) { super(context, parentView); } diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java index 8d5d8fa7e..55a6412e4 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomPlayViewHolder.java @@ -39,4 +39,6 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL public abstract void setPkview(); public abstract void setPkEndview(); + + public abstract void setLiveBeanLandscape(int landscape); } diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 79a0eef94..ccd5fb86e 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -258,6 +258,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveAudienceViewHolder.addToParent(); mLiveRoomViewHolder.addToParent(); mLiveAudienceViewHolder.subscribeActivityLifeCycle(); + }else{ + mLivePlayViewHolder.setLiveBeanLandscape(mLiveBean.getLandscape()); + mLiveLinkMicPresenter.setLiveSdk(mLiveSDK); + mLiveLinkMicAnchorPresenter.setLiveSdk(mLiveSDK); + } //直播间背景 ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);