Skip to content

Commit e395e80

Browse files
committed
feat: mp-alipay video
1 parent 277d724 commit e395e80

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎pages/component/video/video.vue‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
<page-head :title="title"></page-head>
44
<view class="uni-padding-wrap uni-common-mt">
55
<view>
6-
<video id="myVideo" src="https://dcloud-img.oss-cn-hangzhou.aliyuncs.com/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20181126.mp4" @error="videoErrorCallback" :danmu-list="danmuList"
7-
enable-danmu danmu-btn controls></video>
6+
<video id="myVideo" src="https://dcloud-img.oss-cn-hangzhou.aliyuncs.com/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20181126.mp4"
7+
@error="videoErrorCallback" :danmu-list="danmuList" enable-danmu danmu-btn controls></video>
88
</view>
9+
<!-- #ifndef MP-ALIPAY -->
910
<view class="uni-list uni-common-mt">
1011
<view class="uni-list-cell">
1112
<view>
@@ -19,6 +20,7 @@
1920
<view class="uni-btn-v">
2021
<button @click="sendDanmu" class="page-body-button">发送弹幕</button>
2122
</view>
23+
<!-- #endif -->
2224
</view>
2325
</view>
2426
</view>
@@ -44,7 +46,9 @@
4446
}
4547
},
4648
onReady: function(res) {
49+
// #ifndef MP-ALIPAY
4750
this.videoContext = uni.createVideoContext('myVideo')
51+
// #endif
4852
},
4953
methods: {
5054
sendDanmu: function() {

0 commit comments

Comments
 (0)