Uncaught SyntaxError: Failed to construct ‘RTCPeerConnection‘:

目录

解决方法:


报错:

Uncaught SyntaxError: Failed to construct 'RTCPeerConnection': ICE server parsing failed: Invalid hostname format at PeerConnectionController.createPeerConnection (PeerConnectionController.js:40:1) at new PeerConnectionController (PeerConnectionController.js:30:1) at WebRtcPlayerController.startSession (WebRtcPlayerController.js:625:1) at WebRtcPlayerController.handleOnConfigMessage (WebRtcPlayerController.js:695:1) at PixelStreamingEventListener._callback (WebRtcPlayerController.js:75:50) at PixelStreamingEventListener.handleEvent (EventEmitter.js:12:1) at SignallingProtocol.emit (EventEmitter.js:235:1) at WebSocketTransport.onMessage (SignallingProtocol.js:49:1) at WebSocketTransport.handleOnMessage (WebSocketTransport.js:99:1) at WebSocket.<anonymous> (WebSocketTransport.js:38:1) createPeerConnection @ PeerConnectionController.js:40 PeerConnectionController @ PeerConnectionController.js:30 startSession @ WebRtcPlayerController.js:625 handleOnConfigMessage @ WebRtcPlayerController.js:695 (匿名) @ WebRtcPlayerController.js:75 handleEvent @ EventEmitter.js:12 emit @ EventEmitter.js:235 (匿名) @ SignallingProtocol.js:49 handleOnMessage @ WebSocketTransport.js:99 (匿名) @ WebSocketTransport.js:38 WebRtcPlayerController.js:158 Uncaught TypeError: Cannot read properties of undefined (reading 'peerConnection') at SettingOption.onChange (WebRtcPlayerController.js:158:1) at set value (SettingBase.js:45:1) at set selected (SettingOption.js:62:1) at Config.setOptionSettingValue (Config.js:429:1) at WebRtcPlayerController.handleStreamerListMessage (WebRtcPlayerController.js:745:1) at PixelStreamingEventListener._callback (WebRtcPlayerController.js:77:56) at PixelStreamingEventListener.handleEvent (EventEmitter.js:12:1) at SignallingProtocol.emit (EventEmitter.js:235:1) at WebSocketTransport.onMessage (SignallingProtocol.js:49:1) at WebSocketTransport.handleOnMessage (WebSocketTransport.js:99:1)

解决方法:

SignallingWebServer/platform_scripts/cmd/common.bat

bash 复制代码
:SetupTurnStun
IF "%TURN_SERVER%"=="" (
    set TURN_SERVER=%PUBLIC_IP%:19303
    set TURN_USER=PixelStreamingUser
    set TURN_PASS=AnotherTURNintheroad
)
IF "%STUN_SERVER%"=="" (
    set STUN_SERVER=stun.l.google.com:19302
)

改为:

bash 复制代码
:SetupTurnStun
IF "%TURN_SERVER%"=="" (
    set TURN_SERVER=stun.l.google.com:19302
    set TURN_USER=PixelStreamingUser
    set TURN_PASS=AnotherTURNintheroad
)
IF "%STUN_SERVER%"=="" (
    set STUN_SERVER=stun.l.google.com:19302
)
相关推荐
尽意啊5 小时前
echarts树图动态添加子节点
前端·javascript·echarts
吃面必吃蒜5 小时前
echarts 极坐标柱状图 如何定义柱子颜色
前端·javascript·echarts
O_oStayPositive5 小时前
Vue3使用ECharts
前端·javascript·echarts
竹秋…5 小时前
echarts自定义tooltip中的内容
前端·javascript·echarts
宝贝露.5 小时前
Axure引入Echarts图无法正常显示问题
前端·javascript·echarts
shmily麻瓜小菜鸡5 小时前
前端文字转语音
前端
人良爱编程5 小时前
Hugo的Stack主题配置记录03-背景虚化-导航栏-Apache ECharts创建地图
前端·javascript·apache·echarts·css3·html5
来颗仙人掌吃吃5 小时前
解决Echarts设置宽度为100%发现宽度变为100px的问题(Echarts图标宽度自适应问题)
前端·javascript·echarts
余子桃5 小时前
Echarts图表官网打开太慢怎么办?echarts.apache.org
前端·javascript·echarts
pas1365 小时前
41-parse的实现原理&有限状态机
开发语言·前端·javascript