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({ // 内存优化配置