vod视频播放
This commit is contained in:
@@ -9,8 +9,23 @@
|
||||
<view style="display: flex; align-items: center; padding: 0 20rpx; height: 70rpx; background: #FFF7E6;">
|
||||
<view style="font-size: 22rpx; color: #999;">本视频仅用于科普,无任何恶意引导行为</view>
|
||||
</view>
|
||||
<my-video id="myVideo" src="{{dataList.url}}" backgroundUrl="{{dataList.background}}"></my-video>
|
||||
|
||||
<!-- VOD 云点播短视频插件方案:续播 seek / 进度缓存上报 / 电话中断恢复 / 全屏状态同步 -->
|
||||
<my-player
|
||||
width="100%"
|
||||
height="210px"
|
||||
appid="1304584727"
|
||||
fileid="{{fileid}}"
|
||||
enable-progress-gesture="{{false}}"
|
||||
playerid="myPlayerId"
|
||||
bindplay="onPlayerPlay"
|
||||
bindpause="onPlayerPause"
|
||||
bindended="onPlayerEnded"
|
||||
binderror="onPlayerError"
|
||||
bindtimeupdate="onPlayerTimeUpdate"
|
||||
show-fullscreen-btn
|
||||
>
|
||||
<cover-view class="cover"></cover-view>
|
||||
</my-player>
|
||||
<block wx:if="{{dataList.tipUrl}}">
|
||||
<image alt="提示" mode="widthFix" src="{{dataList.tipUrl}}" style="width: 100%" />
|
||||
</block>
|
||||
@@ -32,8 +47,8 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</van-tab>
|
||||
<!-- <view class="history" bind:tap="handleViewHitory">
|
||||
<view class="history" bind:tap="handleViewHitory">
|
||||
<image class="icon" src="./assets/1.png" />
|
||||
</view> -->
|
||||
</view>
|
||||
</van-tabs>
|
||||
</scroll-view>
|
||||
Reference in New Issue
Block a user