Commit 18242c44 by 李伟康

提交代码

1 parent a29278d6
...@@ -52,22 +52,31 @@ export default { ...@@ -52,22 +52,31 @@ export default {
mounted () { mounted () {
let _this = this let _this = this
wxConfig.ready(() => { wxConfig.ready(() => {
wx.getNetworkType({ _this.player = TCPlayer("player-container-id", {
success: (result) => { // fileID: "387702304976042167",
_this.player = TCPlayer("player-container-id", { // appID: "1311227058",
// fileID: "387702304976042167", autoplay: true,
// appID: "1311227058", loop: true,
autoplay: true, controlBar: {
loop: true, fullscreenToggle: false
controlBar: { },
fullscreenToggle: false webrtcConfig: {
} showLog: true
})
_this.player.volume(0)
_this.player.src('http://play.glsx.com.cn/live/live.m3u8')
_this.player.play()
} }
}) })
_this.player.src('http://play.glsx.com.cn/live/live.m3u8')
_this.player.ready(function () {
wx.getNetworkType({
success: (result) => {
_this.player.volume(0)
_this.player.play()
}
})
})
_this.player.on('webrtcevent', function (event) {
console.log(event)
})
}) })
}, },
...@@ -113,7 +122,7 @@ export default { ...@@ -113,7 +122,7 @@ export default {
#player-container-id { #player-container-id {
width: 100%; width: 100%;
height: 100%; height: 100%;
video{ video {
object-fit: cover !important; object-fit: cover !important;
} }
} }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<div><span>{{ groupInfo.groupQuantity }}</span>人已参团</div> <div><span>{{ groupInfo.groupQuantity }}</span>人已参团</div>
<div> <span>{{ groupInfo.viewAmount }}</span>人已浏览</div> <div> <span>{{ groupInfo.viewAmount }}</span>人已浏览</div>
</div> </div>
<template v-if="groupInfo.arr && groupInfo.arr.length"> <!-- <template v-if="groupInfo.arr && groupInfo.arr.length">
<van-swipe <van-swipe
class="group-swipe" class="group-swipe"
vertical vertical
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</van-swipe-item> </van-swipe-item>
</template> </template>
</van-swipe> </van-swipe>
</template> </template> -->
</div> </div>
<div <div
class="box progress-box" class="box progress-box"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!