init
This commit is contained in:
49
xhs-mini-demos/api-case/video/video.xhsml
Normal file
49
xhs-mini-demos/api-case/video/video.xhsml
Normal file
@@ -0,0 +1,49 @@
|
||||
<view class="container">
|
||||
<view class="page-body">
|
||||
<showbox title="默认">
|
||||
<box>
|
||||
<view class="page-section">
|
||||
<view class="weui-cells weui-cells_after-title">
|
||||
<view class="weui-cell weui-cell_input">
|
||||
<view class="weui-cell__hd">
|
||||
<view class="weui-label">视频来源</view>
|
||||
</view>
|
||||
<view class="weui-cell__bd">
|
||||
<picker range="{{sourceType}}" bindchange="sourceTypeChange" value="{{sourceTypeIndex}}">
|
||||
<view class="weui-input">{{sourceType[sourceTypeIndex]}}</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_input">
|
||||
<view class="weui-cell__hd">
|
||||
<view class="weui-label">摄像头</view>
|
||||
</view>
|
||||
<view class="weui-cell__bd">
|
||||
<picker range="{{camera}}" bindchange="cameraChange" value="{{cameraIndex}}">
|
||||
<view class="weui-input">{{camera[cameraIndex]}}</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_input">
|
||||
<view class="weui-cell__hd">
|
||||
<view class="weui-label">拍摄长度</view>
|
||||
</view>
|
||||
<view class="weui-cell__bd">
|
||||
<picker range="{{duration}}" bindchange="durationChange" value="{{durationIndex}}">
|
||||
<view class="weui-input">{{duration[durationIndex]}}</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="page-body-info">
|
||||
<view xhs:if="{{src === ''}}" bindtap="chooseVideo">添加视频</view>
|
||||
<block xhs:if="{{src != ''}}">
|
||||
<video src="{{src}}" class="video"></video>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</box>
|
||||
</showbox>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user