Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with playing video / websocket connection #38

Open
pwFoo opened this issue Feb 21, 2021 · 3 comments
Open

Problem with playing video / websocket connection #38

pwFoo opened this issue Feb 21, 2021 · 3 comments

Comments

@pwFoo
Copy link

pwFoo commented Feb 21, 2021

I tried rtwatch locally with my notebook (port 8080, no tls) and it fails with the following error during ws connection is pending.

Request URL: ws://192.168.178.26:8080/ws
Request Method: GET
Status Code: 101 Switching Protocols

Server: Manjaro Linux
Client: Win10, Chrome

@pwFoo
Copy link
Author

pwFoo commented Feb 22, 2021

Tried behind a reverse proxy with tls, but fails because of the mix of http / ws (without tls) and https. Would be nice to get it work with tls https / wss?
If I disable tls same problem as before: 101 Switching Protocols

image

update
http status 101 seems to be ok for websocket? But ws connection isn't established and stucks in pending state. Also with ws:// changed to wss:// for tls.

So looks like a problem to establish websocket connection with and without tls?

Output of rtwatch ist just:

Video file '/data/video.mp4' is now available on ':8080', have fun!

@pwFoo
Copy link
Author

pwFoo commented Feb 22, 2021

Also tested with branch renovate/github.com-pion-webrtc-v3-3.x with same problem. Loading indicator and video can't be played.

@pwFoo pwFoo changed the title Switching protocol status 101 for websocket connection? Problem with playing video / websocket connection Feb 27, 2021
@ponyo877
Copy link

I faced the same issue as you, but it was resolved when I provided an mp4 file with audio.
for example: https://samplelib.com/sample-mp4.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants