提交 b1c5c7f2 编写于 作者: fxy060608's avatar fxy060608

video 增加条件编译

上级 bdcc8a42
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
@ended="onEnded" @timeupdate="onTimeUpdate" @waiting="onWaiting" @error="onError" @progress="onProgress" @ended="onEnded" @timeupdate="onTimeUpdate" @waiting="onWaiting" @error="onError" @progress="onProgress"
@fullscreenclick="onFullScreenClick" @controlstoggle="onControlsToggle" @fullscreenchange="onFullScreenChange"> @fullscreenclick="onFullScreenClick" @controlstoggle="onControlsToggle" @fullscreenchange="onFullScreenChange">
</video> </video>
<scroll-view class="uni-padding-wrap uni-common-mt uni-flex-item"> <scroll-view class="uni-padding-wrap uni-common-mt uni-flex-item" :scroll-y="true">
<view class="uni-btn-v"> <view class="uni-btn-v">
<navigator url="/pages/component/video/video-format"> <navigator url="/pages/component/video/video-format">
<button type="primary">视频格式示例</button> <button type="primary">视频格式示例</button>
...@@ -71,9 +71,11 @@ ...@@ -71,9 +71,11 @@
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setDanmuBtn()">设置是否显示弹幕按钮</button> <button type="primary" @click="setDanmuBtn()">设置是否显示弹幕按钮</button>
</view> </view>
<!-- #ifndef WEB -->
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setPageGesture()">非全屏模式下,设置是否开启亮度与音量调节手势</button> <button type="primary" @click="setPageGesture()">非全屏模式下,设置是否开启亮度与音量调节手势</button>
</view> </view>
<!-- #endif -->
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setDirection(_direction)">设置全屏时视频的方向</button> <button type="primary" @click="setDirection(_direction)">设置全屏时视频的方向</button>
</view> </view>
...@@ -101,6 +103,7 @@ ...@@ -101,6 +103,7 @@
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setPoster(_poster)">设置视频封面</button> <button type="primary" @click="setPoster(_poster)">设置视频封面</button>
</view> </view>
<!-- #ifndef WEB -->
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setShowMuteBtn()">设置是否显示静音按钮</button> <button type="primary" @click="setShowMuteBtn()">设置是否显示静音按钮</button>
</view> </view>
...@@ -116,6 +119,8 @@ ...@@ -116,6 +119,8 @@
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setVslideGestureInFullscreen()">全屏模式下,设置是否开启亮度与音量调节手势</button> <button type="primary" @click="setVslideGestureInFullscreen()">全屏模式下,设置是否开启亮度与音量调节手势</button>
</view> </view>
<!-- #endif -->
<!-- #ifdef APP -->
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setCodec(_codec)">设置解码器(未播放时设置有效)</button> <button type="primary" @click="setCodec(_codec)">设置解码器(未播放时设置有效)</button>
</view> </view>
...@@ -128,6 +133,7 @@ ...@@ -128,6 +133,7 @@
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="setHeader(_header)">设置header</button> <button type="primary" @click="setHeader(_header)">设置header</button>
</view> </view>
<!-- #endif -->
</scroll-view> </scroll-view>
</view> </view>
</template> </template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册