jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.59k stars 93 forks source link

Cannot cast anything to client - PlayerManager : play no URL found #251

Open lwsx opened 2 years ago

lwsx commented 2 years ago

Describe the bug Can select the client from the cast menu in Jellyfin, but cannot cast anything to the mpv-shim client. I have tried different users and URLs as well (error logs show local IP, though I have tried through HTTPS / domain as well).

Edit Funny enough, music playback works as expected.

To Reproduce Steps to reproduce the behavior:

  1. Install mpv-shim & configure server
  2. Select client from Jellyfin menu
  3. Nothing happens
  4. Errors printed in log

Desktop (please complete the following information):

Error / Debug Messages 2022-01-30 18:36:45,116 [ DEBUG] event_handler: Handled Event Play: {'ItemIds': ['a98eabca90da0955e0d09a0841847d98', '066a085b389da11dc66afca1d3fd9d34', '9574b9dea4e2b1bd052818a35f34a056'], 'PlayCommand': 'PlayNow', 'ControllingUserId': 'bdbe582d5ce3430892c041fb634439a4', 'ServerId': '5e99ae96ca204b30b6a5a5b6db3cefbe'} 2022-01-30 18:36:45,117 [ DEBUG] urllib3.connectionpool: Resetting dropped connection: 192.168.50.50 2022-01-30 18:36:45,129 [ DEBUG] urllib3.connectionpool: http://192.168.50.50:8096 "GET /Users/bdbe582d5ce3430892c041fb634439a4/Items/a98eabca90da0955e0d09a0841847d98 HTTP/1.1" 200 None 2022-01-30 18:36:45,130 [ DEBUG] event_handler: EventHandler::playMedia <jellyfin_mpv_shim.media.Media object at 0x000001F9C814C1C8> 2022-01-30 18:36:45,130 [ DEBUG] media: Bandwidth: local=True, bitrate=None, force=False 2022-01-30 18:36:45,138 [ DEBUG] urllib3.connectionpool: http://192.168.50.50:8096 "POST /Items/a98eabca90da0955e0d09a0841847d98/PlaybackInfo HTTP/1.1" 200 None 2022-01-30 18:36:45,139 [ ERROR] player: PlayerManager::play no URL found

iwalton3 commented 2 years ago

Please enable the config option log_decisions (see this article for help). It looks like the Jellyfin Server is sending back an empty media decision with no URLs to actually play.