Skip to content

mpv on screen chat broken when using own server (race condition) #545

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

Closed
Abu-AM opened this issue Jul 16, 2022 · 7 comments
Closed

mpv on screen chat broken when using own server (race condition) #545

Abu-AM opened this issue Jul 16, 2022 · 7 comments

Comments

@Abu-AM
Copy link

Abu-AM commented Jul 16, 2022

Tried it with the latest beta release and the current 1.6.9 release using the latest mpv with no extra configs. Hitting Enter in mpv won't bring up the chat. I reverted to an old version for both syncplay and mpv and got it to work so I assume it's a bug with the latest releases.

@Et0h
Copy link
Contributor

Et0h commented Jul 17, 2022

Hi, I've just tried the latest build of Syncplay 1.7.0 on Windows 10 with mpv-x86_64-20220717-git-70fa950 which is the latest build from https://sourceforge.net/projects/mpv-player-windows/files/64bit/ and it works fine.

Not sure why it isn't working for you - maybe a lua issue? Is the problem just about pressing enter not being detected, or are the formatted notifications also not showing up?

@Abu-AM
Copy link
Author

Abu-AM commented Jul 17, 2022

I found that it works when using public servers but when I host my own server (without TLS support) it doesn't work. And yes pressing enter isn't detected. The formatted notifications do show up.

@Et0h
Copy link
Contributor

Et0h commented Jul 18, 2022

Okay I just looked into it, and it looks like the issue isn't with the version of Syncplay/mpv or if it is a private/public server or if there is or is not TLS but actually whether or not you are connecting to yourself. It appears that if you are connecting to yourself then the Syncplay client connects to the server so fast that some things seem to be done in the wrong order which causes the problem. I'm not sure exactly which bit happens too soon or how best to fix it, but at least I can confirm the general scope of the issue.

@Et0h Et0h changed the title mpv on screen chat doesn't work anymore mpv on screen chat doesn't work when connecting to own server Sep 27, 2022
@Et0h Et0h changed the title mpv on screen chat doesn't work when connecting to own server mpv on screen chat doesn't work when connecting to own server (race condition) Sep 27, 2022
@Et0h Et0h changed the title mpv on screen chat doesn't work when connecting to own server (race condition) mpv on screen chat broken when using own server (race condition) Sep 27, 2022
@Ziyann
Copy link

Ziyann commented Feb 15, 2023

I also encountered this issue. Connecting to a server on my local network resulted in the chat input not working in mpv (pressing enter didn't bring it up). Hosting on a close remote server also didn't work (maybe the ping was too low - around 20).
My quick workaround was switching my PC to a mobile a hotspot, connecting to the server (so that mpv loaded properly, with working chat - maybe because of the higher ping), then switching back my PC to the wired network.

@Et0h
Copy link
Contributor

Et0h commented Feb 19, 2023

The issue should be fixed by e1bcf12, meaning you should now be able to use the chat feature when connecting to localhost without having to use mobile hotspots, etc.

@Ziyann and @Abu-AM Could you please test this and confirm that it fixed the bug: https://github.com/Syncplay/syncplay/actions/runs/4217399884

@Ziyann
Copy link

Ziyann commented Feb 19, 2023

Thanks @Et0h, I can confirm that it fixed the issue for me - chat input works fine when connecting to localhost now.

@Et0h
Copy link
Contributor

Et0h commented Feb 19, 2023

Great. In that case I'll consider this matter closed.

@Et0h Et0h closed this as completed Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants