<!--components/liveroom/liveroom.wxml-->
<view class="liveroom-wrap">

    <banner room-info="{{roomInfo}}" watchNum="{{watchNum}}"/>

 <!-- 直播未开始提示
    <view class="live-ended" wx:if="{{bool}}" >
        <view class="ended-content">
            <text class="ended-text">直播未开始</text>
            <view class="countdown">
                <text class="countdown-text">距离开始还有：</text>
                <text class="countdown-time">{{roomInfo.onlineDatetime}}</text>
            </view>
            <button class="enter-room-btn" bind:tap="enterRoom">进入房间</button>
        </view>
    </view> -->

    <!-- 直播结束提示 -->
    <view class="live-ended" wx:if="{{roomInfo.state == 2}}">
        <view class="ended-content">
            <text class="ended-text">直播已结束</text>
            <text class="ended-time">结束时间：{{roomInfo.offlineDatetime}}</text>
            <button class="replay-btn">观看回放</button>
        </view>
    </view>


    <banner room-info="{{roomInfo}}"/>

	<player
       is-playback="{{isPlayback}}"
       is-living="{{isLiving}}"
       pull-url-info="{{pullUrlInfo}}"
       vod-info="{{vodInfo}}"
       bind:controlstoggle="controlstoggle"
    />
    <comment wx:if="{{roomInfo.chat}}"/>
    <product-popup joinedGroupId="{{joinedGroupId}}" productNum="{{productNum}}"/>
</view>
