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

Not working with newest plex media server version #87

Open
Murianwind opened this issue Feb 28, 2023 · 13 comments
Open

Not working with newest plex media server version #87

Murianwind opened this issue Feb 28, 2023 · 13 comments

Comments

@Murianwind
Copy link

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
Copy link

wonkymedz commented Mar 1, 2023

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

@iwalton3
Copy link
Owner

iwalton3 commented Mar 1, 2023

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:

  • Test TV via app.plex.tv - OK
  • Test Movie via app.plex.tv - OK
  • Test TV via local - Fail
  • Test Movie via local - Fail
  • Test TV via app.plex.tv greasemonkey - OK
  • Test Movie via app.plex.tv greasemonkey - OK
  • Test TV via local greasemonkey - Fail
  • Test Movie via local greasemonkey - Fail

Fixes:

  • Fix is_local_domain to handle IPv6.

Tests with fix:

  • Test TV via local - OK
  • Test Movie via local - OK
  • Test TV via local greasemonkey - OK
  • Test Movie via local greasemonkey - OK
  • Test TV via Android - OK
  • Test Movie via Android - OK

@wonkymedz
Copy link

wonkymedz commented Mar 1, 2023

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
Copy link
Owner

iwalton3 commented Mar 1, 2023

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
Copy link

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

@iwalton3
Copy link
Owner

iwalton3 commented Mar 1, 2023

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:

  • Test TV via app.plex.tv - Fail
  • Test Movie via app.plex.tv - Fail
  • Test TV via local - Fail
  • Test Movie via local - Fail
  • Test TV via app.plex.tv greasemonkey - OK
  • Test Movie via app.plex.tv greasemonkey - OK
  • Test TV via local greasemonkey - OK
  • Test Movie via local greasemonkey - OK
  • Test TV via Android - OK
  • Test Movie via Android - OK

@iwalton3
Copy link
Owner

iwalton3 commented Mar 1, 2023

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? #24 (comment)

@iwalton3 iwalton3 pinned this issue Mar 1, 2023
@wonkymedz
Copy link

Hmm wierd im on the public release channel too!

@deposted
Copy link

deposted commented Mar 15, 2023

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
Copy link

arshpsps commented Apr 8, 2023

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

@arlinsandbulte
Copy link

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
Copy link

Plex Server 1.32.8.7639 has fixed this issue for me!

@Jerrk
Copy link

Jerrk commented Dec 10, 2023

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 🤷

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

7 participants