diff --git a/app/components/liveLoading/index.vue b/app/components/liveLoading/index.vue
index 6381dac..dcc30e2 100644
--- a/app/components/liveLoading/index.vue
+++ b/app/components/liveLoading/index.vue
@@ -7,7 +7,6 @@
- 直播加载中...
diff --git a/app/pages/liveRoom/index.client.vue b/app/pages/liveRoom/index.client.vue
index d57ff6e..6cccad8 100644
--- a/app/pages/liveRoom/index.client.vue
+++ b/app/pages/liveRoom/index.client.vue
@@ -47,11 +47,18 @@ const initializePlayer = async () => {
preload: true,
autoplay: true, // 改为 true
muted: true, // 默认静音
+ diagnosisButtonVisible:false,
autoplayPolicy: {
fallbackToMute: true
},
+ width: '100%', //容器的大小
+ height: '100%', //容器的大小
skinLayout: false,
controlBarVisibility: 'never',
+ license: {
+ domain: "szjixun.cn",
+ key: "OProxmWaOZ2XVHXLtf4030126521c43429403194970aa8af9"
+ }
}
player.value = new AliyunPlayer(playerConfig, (playerInstance) => {
@@ -59,6 +66,7 @@ const initializePlayer = async () => {
if (isWechat) {
console.log('当前是微信浏览器环境')
const startPlay = () => {
+ console.log('执行了startPlay')
playerInstance?.play()
document.removeEventListener('WeixinJSBridgeReady', startPlay)
document.removeEventListener('touchstart', startPlay)
@@ -67,18 +75,13 @@ const initializePlayer = async () => {
document.addEventListener('WeixinJSBridgeReady', startPlay)
document.addEventListener('touchstart', startPlay)
}
-
+ loading1.value = true
playerInstance?.play()
})
-
- player.value.on('init', () => {
- console.log('init')
- loading1.value = true
- })
-
player.value.on('playing', () => {
console.log('playing')
loading1.value = false
+
})
player.value.on('error', handlePlayerError)
@@ -170,17 +173,6 @@ const tipOpen = () => {
-
-
-
@@ -225,20 +217,8 @@ const tipOpen = () => {
-
-
-