<view class="wxroom">
  <!-- <volc-live-landscape
    wx:if="{{sdk && isLandscape}}"
    sdkInstance="{{sdk}}"
    bind:commentCheck="commentCheck"
  ></volc-live-landscape>

  <volc-live-portrait
    sdkInstance="{{sdk}}"
    bind:commentCheck="commentCheck"
  ></volc-live-portrait> -->
 <!-- 竖屏直播间整体组件 -->
  <volc-live-portrait  wx:if="{{!isLandscape}}" sdkInstance="{{sdk}}" bind:commentCheck="commentCheck"/> 
  <!-- 横屏直播间整体组件 -->
  <volc-live-landscape wx:else sdkInstance="{{sdk}}" bind:commentCheck="commentCheck"/>
<view>

</view>
  <view class="wxroom__overlay" wx:if="{{loading}}">
    <view class="wxroom__panel">
      <view class="wxroom__spinner"></view>
      <view class="wxroom__title">正在进入直播间</view>
      <view class="wxroom__message">{{loadingText}}</view>
    </view>
  </view>

  <view class="wxroom__overlay" wx:if="{{showError}}">
    <view class="wxroom__panel wxroom__panel--error">
      <view class="wxroom__title">{{errorTitle}}</view>
      <view class="wxroom__message">{{errorMessage}}</view>
      <view class="wxroom__actions">
        <view
          class="wxroom__button wxroom__button--primary"
          bindtap="retryEnter"
        >
          重试
        </view>
        <view
          class="wxroom__button wxroom__button--secondary"
          bindtap="goBack"
        >
          返回
        </view>
      </view>
    </view>
  </view>
</view>
