类型:开发
描述:
This commit is contained in:
@@ -332,7 +332,7 @@
|
||||
const player = new WebRTCWhep({
|
||||
url:url, // WHEP 服务器地址
|
||||
container: videoElement, // 视频播放容器
|
||||
iceServers: [{ urls: 'turn:192.168.77.200:3478',Username: 'ZLMediaKit',credential: 'ZLMediaKit'}]
|
||||
iceServers: [{ urls: 'turn:192.168.77.200:3478',username: 'ZLMediaKit',credential: 'ZLMediaKit'}]
|
||||
})
|
||||
player.on('error', (error) => {
|
||||
console.error('错误:', error.message, error.type)
|
||||
@@ -422,7 +422,6 @@
|
||||
cameraIndexCode.value = code
|
||||
setTimeout(() => {
|
||||
if (url.startsWith('http://192.168.77.200:8050/')) {
|
||||
console.error(1111111111)
|
||||
if(hlsRef){
|
||||
hlsRef.updateUrl(url);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user