闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<video
  id="myVideo"
  src="{{videoSrc}}"
  enable-danmu
  controls
  show-fullscreen-btn
  show-center-play-btn="{{false}}"
  auto-pause-if-navigate
  auto-pause-if-open-native
  show-play-btn
  object-fit="contain"
  bindpause="bindpause"
  bindended="bindended"
  bindplay="bindplayByVideo"
  class="video my-video"
  bindfullscreenchange="bindfullscreenchange"
>
  <view class="video_cover" wx:if="{{isShow}}">
    <view class="my-cover-img">
      <slot name="cover-img" />
    </view>
    <view class="video_play_icon my-play-icon" bindtap="bindplay">
      <slot name="play-icon" />
    </view>
  </view>
</video>