类型:开发
描述:
This commit is contained in:
@@ -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({
|
||||
// 内存优化配置
|
||||
|
||||
Reference in New Issue
Block a user