pion / rtwatch

Watch videos with friends using WebRTC, let the server do the pausing and seeking.

Home Page:https://pion.ly/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with playing video / websocket connection

pwFoo opened this issue · comments

commented

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

commented

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!
commented

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

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