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