<!--packageH/Advertising/advertisingPlayPage/advertisingPlayPage.wxml-->
<view id="adPlayPage">
  <video 
      id="myVideo" 
      src="{{ADDetails.video_link}}" 
      autoplay
      controls="{{false}}"
      bindloadedmetadata="bindloadedmetadata"
      bindtimeupdate="bindtimeupdate"
      bindended="bindended"
      bindpause="bindpause"
      bindplay="bindplay"
    ></video>

    <view class="video-btn" wx:if="{{Loadeddata}}" catchtap="clickADVideo" style="background-image:url({{ADDetails.video_cover}})">
      <icon class="iconfont icon-bofang1" wx:if="{{!isPlaying}}"></icon>
    </view>

    <!-- 广告音频 胶囊按钮-->
    <view class="capsule-box Audio-box" >
      <view class="capsule-text">广告</view>
      <view class="capsule-border"></view>
      <icon class="iconfont  " class="{{isMuted ? 'icon-fontclass-jingyin' : 'icon-ht_btn_news'}}" catchtap="changeMuted"></icon>
    </view>

    <!-- 关闭广告 胶囊按钮-->
    <view class="capsule-box clone-box">
      <view class="capsule-text">{{ countdown ? countdown + "s" : "--" }}</view>
      <view class="capsule-border"></view>
      <view class="capsule-text" catchtap="cloneADs">关闭</view>
    </view>

    <!-- 底部广告 -->
    <!-- <view class="bottom-ads-box" wx:if="{{ADDetails.bottom_status == 1}}">
      <view class="ads-box-img" wx:if="{{ADDetails.bottom_banner}}">
        <image src="{{ADDetails.bottom_banner}}" alt="" />
      </view>
      <view class="ads-box-text">
        <view class="ads-box-title" wx:if="{{ADDetails.bottom_title}}">{{ ADDetails.bottom_title }}</view>
        <view class="ads-box-description" wx:if="{{ADDetails.bottom_remark}}">{{ ADDetails.bottom_remark }}</view>
      </view>
      <view class="ads-box-btn" wx:if="{{ADDetails.bottom_link}}" catchtap="linkToUrl">点击进入</view>
    </view> -->

    <van-popup show="{{showReward}}" class="van-popup-transparent" close-on-click-overlay="false" custom-style="background-color:transparent">
      <view class="reward-box rollback" wx:if="{{showReward}}">
        <view class="reward-title">恭喜您获得</view>
        <view class="reward-total">
          {{ redpack_amount }}
          <view class="reward-type">余额</view>
        </view>
        <view class="reward-btn" catchtap="nextADData">确定</view>
      </view>
    </van-popup>
  </view>
