filesbox/miniprogram/FilesBox/pages/files-preview/files-preview.wxml

9 lines
581 B
Plaintext
Raw Permalink Normal View History

2023-09-21 02:23:31 +00:00
<!--packageB/pages/files/files-preview/files-preview.wxml-->
<web-view src="{{previewUrl}}" wx:if="{{fileType == 1}}"></web-view>
<video class="preview-video" autoplay show-center-play-btn="{{false}}" src="{{previewUrl}}" wx:if="{{fileType == 2}}"></video>
<!-- <audio id="audio" class="audio" src="{{previewUrl}}" controls wx:if="{{fileType == 3}}"></audio> -->
<music-play src="{{audioPlayUrl}}" fileName="{{name}}" wx:if="{{fileType == 3}}"></music-play>
<view class="text-box" wx:if="{{fileType == 4}}">
<text>{{srtText}}</text>
</view>
<canvas-watermark></canvas-watermark>