vr-shopxo-uniapp/pages/plugins/live/pull/pull.vue

39 lines
1.1 KiB
Vue
Raw Normal View History

2025-10-27 10:38:30 +00:00
<template>
2025-10-27 13:29:50 +00:00
<view :class="theme_view">
<video class="wh-auto ht dis-block" :is-live="true" src="rtmp://live-pull.shopxo.vip/68f764013572f9240ca7ce6c/shopxo"
@error="video_error_callback"
:autoplay="autoplay"
:controls="controls"
:show-fullscreen-btn="show_fullscreen_btn"
:enable-play-gesture="false"
></video>
2025-10-27 10:38:30 +00:00
</view>
</template>
<script>
2025-10-27 13:29:50 +00:00
const app = getApp();
export default {
data() {
return {
theme_view: app.globalData.get_theme_value_view(),
// 自动播放
autoplay: true,
// 控制
controls: false,
// 全屏按钮
show_fullscreen_btn: false,
}
2025-10-27 10:38:30 +00:00
},
2025-10-27 13:29:50 +00:00
methods: {
// 播放错误回调
video_error_callback: function(e) {
uni.showModal({
content: e.target.errMsg,
showCancel: false
})
}
2025-10-27 10:38:30 +00:00
}
}
</script>
<style>
2025-10-27 13:29:50 +00:00
2025-10-27 10:38:30 +00:00
</style>