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

video 增加条件编译

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