Paul Posted April 6, 2020 Share Posted April 6, 2020 https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-Publishing I'm following the above tutorial. I can manage to get a screen successfully on the page, but the console outputs the following: browser screen share supported webrtc_adaptor.js:1184 WebSocket connection to 'wss://myserverIP:5443/WebRTCApp/' failed: Error during WebSocket handshake: Unexpected response code: 200 My question is. code: should the websocket_url look like a b or c? At the minute, using community edition I can't seem to get a handshake to work. a) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/", b) websocket - as shown in some documentation var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/websocket", c) ( the long URL which is available via the management console) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/12432dfs34fsd324fsd", Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted April 7, 2020 Share Posted April 7, 2020 Hi,Can you specify on which step do you get the error? When exactly does it happen?Best,AsimOn Tuesday, April 7, 2020 at 12:09:43 AM UTC+3, Paul wrote: https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-Publishing I'm following the above tutorial. I can manage to get a screen successfully on the page, but the console outputs the following: browser screen share supported webrtc_adaptor.js:1184 WebSocket connection to 'wss://myserverIP:5443/WebRTCApp/' failed: Error during WebSocket handshake: Unexpected response code: 200 My question is. code: should the websocket_url look like a b or c? At the minute, using community edition I can't seem to get a handshake to work. a) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/", b) websocket - as shown in some documentation var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/websocket", c) ( the long URL which is available via the management console) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/12432dfs34fsd324fsd", Link to comment Share on other sites More sharing options...
0 Paul Posted April 7, 2020 Author Share Posted April 7, 2020 I get this problem when loading the Sample application in my browser. See below example app: https://stream.capable.app:5443/NewSample/ On Tuesday, 7 April 2020 11:33:47 UTC+1, mahmut asım Onat wrote:Hi,Can you specify on which step do you get the error? When exactly does it happen?Best,AsimOn Tuesday, April 7, 2020 at 12:09:43 AM UTC+3, Paul wrote: https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-Publishing I'm following the above tutorial. I can manage to get a screen successfully on the page, but the console outputs the following: browser screen share supported webrtc_adaptor.js:1184 WebSocket connection to 'wss://myserverIP:5443/WebRTCApp/' failed: Error during WebSocket handshake: Unexpected response code: 200 My question is. code: should the websocket_url look like a b or c? At the minute, using community edition I can't seem to get a handshake to work. a) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/", b) websocket - as shown in some documentation var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/websocket", c) ( the long URL which is available via the management console) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/12432dfs34fsd324fsd", Link to comment Share on other sites More sharing options...
0 Paul Posted April 7, 2020 Author Share Posted April 7, 2020 As I say, I'm somewhat confused as to where the WSS should point.. Below tutorial offers some guidance... but I'm not sure if I need the /websocket ? Or if /websocket represents a socket ID or anything? https://antmedia.io/how-to-embed-webrtc-publishing-to-another-web-site/ On Tuesday, 7 April 2020 11:33:47 UTC+1, mahmut asım Onat wrote:Hi,Can you specify on which step do you get the error? When exactly does it happen?Best,AsimOn Tuesday, April 7, 2020 at 12:09:43 AM UTC+3, Paul wrote: https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-Publishing I'm following the above tutorial. I can manage to get a screen successfully on the page, but the console outputs the following: browser screen share supported webrtc_adaptor.js:1184 WebSocket connection to 'wss://myserverIP:5443/WebRTCApp/' failed: Error during WebSocket handshake: Unexpected response code: 200 My question is. code: should the websocket_url look like a b or c? At the minute, using community edition I can't seem to get a handshake to work. a) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/", b) websocket - as shown in some documentation var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/websocket", c) ( the long URL which is available via the management console) var webRTCAdaptor = new WebRTCAdaptor({ websocket_url : "wss://myserverIP:5443/WebRTCApp/12432dfs34fsd324fsd", Link to comment Share on other sites More sharing options...
Question
Paul
Link to comment
Share on other sites
Top Posters For This Question
3
1
Popular Days
Apr 7
3
Apr 6
1
Top Posters For This Question
Paul 3 posts
Mahmut As1m Onat 1 post
Popular Days
Apr 7 2020
3 posts
Apr 6 2020
1 post
3 answers to this question
Recommended Posts