类型:开发
描述:
This commit is contained in:
@@ -164,12 +164,12 @@
|
||||
|
||||
this.hls = new Hls({
|
||||
// 内存优化配置
|
||||
maxBufferSize: 15 * 1000 * 1000, // 降低缓冲区大小(15MB)
|
||||
maxBufferLength: 50, // 更小的缓冲窗口
|
||||
maxBufferSize: 0, // 降低缓冲区大小(15MB)
|
||||
maxBufferLength: 0.1, // 更小的缓冲窗口
|
||||
liveSyncDuration: 1, // 紧跟直播点
|
||||
liveMaxLatencyDuration: 5, // 最大延迟5秒
|
||||
liveDurationInfinity: true,
|
||||
lowLatencyMode: false, // 启用低延迟模式
|
||||
lowLatencyMode: true, // 启用低延迟模式
|
||||
maxMaxBufferLength: 60,
|
||||
backBufferLength: 1, // 减少保留的缓冲数据
|
||||
manifestLoadingTimeOut: 10000,
|
||||
@@ -198,7 +198,6 @@
|
||||
this.retryCount = 0
|
||||
this.safePlay()
|
||||
})
|
||||
|
||||
this.hls.on(Hls.Events.ERROR, (event, data) => {
|
||||
this.handleHlsError(data)
|
||||
})
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="desc-box">
|
||||
<title2 title="酒店简介" />
|
||||
<title2 title="简介" />
|
||||
<div class="desc-content" v-html="info?.introduction"></div>
|
||||
<div class="desc-container">
|
||||
<div>
|
||||
|
||||
@@ -29,6 +29,13 @@
|
||||
(val) => {
|
||||
if (val[0] && val[1]) {
|
||||
sendMessage(JSON.stringify({ action: 'start', type: '', scenicSpotId: scenicSpotId.value }))
|
||||
sendMessage(
|
||||
JSON.stringify({
|
||||
action: 'start',
|
||||
type: 'secureData',
|
||||
scenicSpotId: scenicSpotId.value
|
||||
})
|
||||
)
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
@@ -56,7 +63,6 @@
|
||||
scenicStore.setScenicBearData(val)
|
||||
break
|
||||
case 'stopCarData':
|
||||
console.log(val,'valvalvalvalvalvalval')
|
||||
scenicStore.setStopCarData(val)
|
||||
break
|
||||
case 'secureData':
|
||||
@@ -100,7 +106,6 @@
|
||||
}, 20000)
|
||||
}
|
||||
const sendCarShip = (e) => {
|
||||
|
||||
timer = setInterval(() => {
|
||||
if (isConnected.value) {
|
||||
//车船数据
|
||||
@@ -111,13 +116,7 @@
|
||||
scenicSpotId: scenicSpotId.value
|
||||
})
|
||||
) //车窗数据
|
||||
sendMessage(
|
||||
JSON.stringify({
|
||||
action: 'start',
|
||||
type: 'secureData',
|
||||
scenicSpotId: scenicSpotId.value
|
||||
})
|
||||
)
|
||||
|
||||
}
|
||||
}, 5000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user