Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -136,6 +136,11 @@ export struct DetailPlayVLivePage { | @@ -136,6 +136,11 @@ export struct DetailPlayVLivePage { | ||
| 136 | const padObj = JSON.parse(liveRoomItemBean.data ?? "") as Record<string, string | number | boolean> | 136 | const padObj = JSON.parse(liveRoomItemBean.data ?? "") as Record<string, string | number | boolean> |
| 137 | const showPad = padObj["showPad"] == "1" | 137 | const showPad = padObj["showPad"] == "1" |
| 138 | this.liveDetailPageLogic.showPad = showPad | 138 | this.liveDetailPageLogic.showPad = showPad |
| 139 | + | ||
| 140 | + if (!showPad) { | ||
| 141 | + ///aboutToDisappear时playerController被release了,所以要重新初始化 | ||
| 142 | + this.playerController = new WDAliPlayerController() | ||
| 143 | + } | ||
| 139 | } break | 144 | } break |
| 140 | default: { | 145 | default: { |
| 141 | Logger.warn(TAG, "暂未处理类型:" + liveRoomItemBean.optionType) | 146 | Logger.warn(TAG, "暂未处理类型:" + liveRoomItemBean.optionType) |
-
Please register or login to post a comment