类型:开发

描述:
This commit is contained in:
2026-01-14 01:29:32 +08:00
parent 80a448f9b9
commit c5c7f6af44

View File

@@ -165,14 +165,13 @@ export default {
this.immediateCleanup() this.immediateCleanup()
} }
if(this.url.startsWith('http://192.168.77.200:8050/')){ if(this.url.startsWith('http://192.168.77.200:8050/')){
const player = new WebRTCWhep({ this.hls = new WebRTCWhep({
url: this.url, // WHEP 服务器地址 url: this.url, // WHEP 服务器地址
container: this.video, // 视频播放容器 container: this.video, // 视频播放容器
onError: (error) => { onError: (error) => {
console.error('播放错误:', error) console.error('播放错误:', error)
} }
}) })
webrtcRefs.push(player)
}else{ }else{
this.hls = new Hls({ this.hls = new Hls({
// 内存优化配置 // 内存优化配置