From c5c7f6af44cdd3e2f145d8f3eb862f1e898b4300 Mon Sep 17 00:00:00 2001 From: lixuefeng <1126141216@qq.com> Date: Wed, 14 Jan 2026 01:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=9A=E5=BC=80=E5=8F=91?= =?UTF-8?q?=20=E6=8F=8F=E8=BF=B0=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HlsPlayer/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/HlsPlayer/index.vue b/src/components/HlsPlayer/index.vue index f84c220..35400a8 100644 --- a/src/components/HlsPlayer/index.vue +++ b/src/components/HlsPlayer/index.vue @@ -165,14 +165,13 @@ export default { this.immediateCleanup() } if(this.url.startsWith('http://192.168.77.200:8050/')){ - const player = new WebRTCWhep({ + this.hls = new WebRTCWhep({ url: this.url, // WHEP 服务器地址 container: this.video, // 视频播放容器 onError: (error) => { console.error('播放错误:', error) } }) - webrtcRefs.push(player) }else{ this.hls = new Hls({ // 内存优化配置