aeinstein / webrtmp

A javascript RTMP client for browsers
Apache License 2.0
27 stars 1 forks source link

Error connect #2

Open centratelemedia opened 6 months ago

centratelemedia commented 6 months ago

what the problem going on, is this client side or rtmp server?

WebSocket server settings:
  - Listen on :9107
  - Flash security policy server
  - SSL/TLS support
  - Deny non-SSL/TLS connections
  - proxying from :9107 to 127.0.0.1:1935
36.68.223.195 - - [24/Feb/2024 14:56:45] code 400, message Client must support 'binary' or 'base64' protocol
36.68.223.195 - - [24/Feb/2024 14:56:45] code 405, message Method Not Allowed

Another error

36.68.223.195 - - [24/Feb/2024 15:07:48] code 400, message Bad request syntax ('\x88\x8f\x89*\xe6L\x8a\xc2\xb2-\xfbM\x838\xa9I\x8a#\xfaO\x82')
36.68.223.195 - - [24/Feb/2024 15:07:58] 36.68.223.195: SSL/TLS (wss://) WebSocket connection
36.68.223.195 - - [24/Feb/2024 15:07:58] 36.68.223.195: Version hybi-13, base64: 'False'
36.68.223.195 - - [24/Feb/2024 15:07:58] connecting to: 127.0.0.1:1935
36.68.223.195 - - [24/Feb/2024 15:08:10] code 400, message Bad HTTP/0.9 request type ('\x88\x8f\x0e\xf6\xdf\x01')
aeinstein commented 6 months ago

What Websocket Proxy do you use and what rtmp Server ?

centratelemedia commented 6 months ago

i create proxy using golang and echo, rtmp server using mediamtx

On Tue, 27 Feb 2024, 12:00 Michael Balen, @.***> wrote:

What Websocket Proxy do you use and what rtmp Server ?

— Reply to this email directly, view it on GitHub https://github.com/aeinstein/webrtmp/issues/2#issuecomment-1965789792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXW7N5MCA453ZYDXIUADSXLYVVR6HAVCNFSM6AAAAABDX2EZB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVG44DSNZZGI . You are receiving this because you authored the thread.Message ID: @.***>

aeinstein commented 5 months ago

I guess, the log is from this proxy ? its look like that is it cant handle the websockets connections. BTW I have only used Chrome, Safari, Edge, Firefox to test. pls try websockify, I have tested it with hundreds of connections for more than a week without any problems. I will help to localise the prob.