iwalton3 / plex-mpv-shim

Cast media from Plex Mobile and Web apps to MPV. (Unofficial)
MIT License
372 stars 22 forks source link

Not working with newest plex media server version #87

Open Murianwind opened 1 year ago

Murianwind commented 1 year ago

With the newest plex media version installed (1.31.2.6739), mpv shim won't connect to either the plex windows client or web client. The "select a player" button lists plex mpv shim as connectable but when you click it nothing happens.

wonkymedz commented 1 year ago

Have the same issue here was working fine. But can cast from phone

iwalton3 commented 1 year ago

Does this build fix it? https://github.com/iwalton3/plex-mpv-shim/suites/11292387609/artifacts/579357565

Server Version 1.31.1.6733 - (slightly outdated because of docker)

Tests before fix:

Fixes:

Tests with fix:

wonkymedz commented 1 year ago

Not working with that build either. Still will work on Mobile, but Plex desktop app local to Shim doesn't work still. Shim console shows no connection attempt from the plex desktop app.

Logs from plex server `Mar 01, 2023 22:35:17.325 [0x7ffaae775b38] Debug — Request: [192.168.1.92:60458 (Subnet)] GET /clients (7 live) #8982 TLS GZIP Signed-in Token (willmea4) (Winblows11)

Mar 01, 2023 22:35:17.326 [0x7ffab24fdb38] Debug — Completed: [192.168.1.92:60458] 200 GET /clients (7 live) #8982 TLS GZIP 0ms 696 bytes (pipelined: 4)

Mar 01, 2023 22:35:17.327 [0x7ffaaffe8b38] Debug — Request: [192.168.1.92:60457 (Subnet)] GET /neighborhood/devices (7 live) #8975 TLS GZIP Signed-in Token (willmea4) (Winblows11)

Mar 01, 2023 22:35:17.327 [0x7ffab22fab38] Debug — Completed: [192.168.1.92:60457] 200 GET /neighborhood/devices (7 live) #8975 TLS GZIP 0ms 1121 bytes (pipelined: 2)

Mar 01, 2023 22:35:19.977 [0x7ffaae775b38] Debug — Request: [192.168.1.92:60457 (Subnet)] GET /player/timeline/poll?commandID=0 (7 live) #898c TLS GZIP Signed-in Token (willmea4) (Winblows11)

Mar 01, 2023 22:35:19.978 [0x7ffab22fab38] Debug — Completed: [192.168.1.92:60457] 404 GET /player/timeline/poll?commandID=0 (7 live) #898c TLS GZIP 0ms 379 bytes (pipelined: 3)

Mar 01, 2023 22:35:19.988 [0x7ffaaffe8b38] Debug — Request: [192.168.1.92:60457 (Subnet)] GET /player/timeline/unsubscribe?commandID=0 (7 live) #8991 TLS GZIP Signed-in Token (willmea4) (Winblows11)

Mar 01, 2023 22:35:19.988 [0x7ffab24fdb38] Debug — Completed: [192.168.1.92:60457] 404 GET /player/timeline/unsubscribe?commandID=0 (7 live) #8991 TLS GZIP 0ms 379 bytes (pipelined: 4)`

iwalton3 commented 1 year ago

Hmm looks like you are on a Plex Pass beta version so the docker container I used for testing is not running it yet... Maybe I can build it manually.

wonkymedz commented 1 year ago

More then happy to keep doing testing and further logging for you :)

iwalton3 commented 1 year ago

Alright I have version 1.31.2.6739 in docker now. I get a 404 on the /player/timeline/poll in the web client which is what the Plex server uses to proxy requests to MPV Shim through the web app and desktop app. You can use this user script to bypass the issue: https://greasyfork.org/en/scripts/398049-mpv-shim-local-connection

I am taking a look further to see if there is a possible fix or workaround.

Tests:

iwalton3 commented 1 year ago

I did some additional looking and didn't find anything. It seems the server is just returning a 404 error for an endpoint that is critical for normal functionality through the web app.

This has happened before, so maybe beta builds just often have this break? https://github.com/iwalton3/plex-mpv-shim/issues/24#issuecomment-705223386

wonkymedz commented 1 year ago

Hmm wierd im on the public release channel too!

deposted commented 1 year ago

Can confirm that updating to the beta branch for Plex borked my setup. Been using the greasyfork script as a workaround. Thanks again for sharing it! I've tried downgrading to the stable branch but it seems that casting it to MPV shim doesn't allow for a successful connection on my W10 PC.

arshpsps commented 1 year ago

can cast to "plex mpv shim" when using the script but mpv doesnt open up. audio plays for some reason

arlinsandbulte commented 1 year ago

I am having this issue too. I think 90 is the same issue (I'm cross-posting to there). And, I think this is an issue with the Plex Server. I cannot cast from the web client to Roku or "Plex MPV Shim". Here is an issue on Plex support confirming, I think. https://forums.plex.tv/t/plex-web-flinging-casting-broken/837738

My Plex Server Version 1.32.5.7516 My Plex Web Client Version: Version 4.115.2

arlinsandbulte commented 1 year ago

Plex Server 1.32.8.7639 has fixed this issue for me!

Jerrk commented 1 year ago

It works for me as well on Plex server Version 1.32.8.7639

I can also cast from the Plex windows desktop client now in Version 1.83.1.4061-d3f45728

edit: restarted my computer and casting no longer works from the desktop app or the local webui, only through the app.plex.tv domain. all the version numbers are the same and while writing this edit it started working again... not sure whats happening 🤷