dragonflylee / switchfin

Third-party native Jellyfin client for Nintendo Switch
Apache License 2.0
292 stars 6 forks source link

Music/Live TV not playing when proxy is enabled #82

Open laleeroy opened 1 week ago

laleeroy commented 1 week ago

Describe the bug

Works fine if proxy option is disabled

[Info] cplayer: Playing [url] [Error] MPVCore => FILE ERROR: unrecognized file format [Info] MPVCore => EVEMT_START_FILE [ERROR] cplayer: Failed to recognize file format

To reproduce

Play audio in home or in media library

Screenshots

No response

Operating system

19.0.1|AMS 1.8.0|E

Jellyfin Server

10.9.11 Docker

Additional context

No response

dragonflylee commented 1 week ago

Thanks for feedback, Fixed in latest nightly

you need to reconfigure the proxy address in setting, as the config struct changed

laleeroy commented 1 week ago

Thanks for feedback, Fixed in latest nightly

you need to reconfigure the proxy address in setting, as the config struct changed

Hi, I jist tested it and it doesn't fix the Music/audio playing, now even the Movies/Seroes doesn't play anymore

dragonflylee commented 1 week ago

@laleeroy did you reconfigure the proxy address in setting ?

laleeroy commented 1 week ago

@laleeroy did you reconfigure the proxy address in setting ?

Yes I did reconfigure it, now when playing Movies/Series, the "Play error" pop up/dialogue is appearing

dragonflylee commented 1 week ago

maybe you need to delete /switch/Switchfin/config.json then reconfigure all settings

laleeroy commented 1 week ago

maybe you need to delete /switch/Switchfin/config.json then reconfigure all settings

Shoot, I have been configuring it wrong all along, I remove the http:// in the proxy, I thought it is fine since I was able to comnect to the server. Anyway, the music play is still not starting

ffmpeg: failed to resolve hostname [url]: Ni address associated with hostname

laleeroy commented 1 week ago

sorry it's my fault, please try this version https://nightly.link/dragonflylee/switchfin/actions/runs/11811576775

Hello again, sorry for my bad English but it's not the audio that it doesn't work but the Music, also I noticed that the Live TV from Jellyfin server doesn't play aswell when proxy is enabled, I have tried the latest build from the actions page.

When playing live tv from Jellyfin server, it pop up the error message and I got this warn ffmpeg: httproxy HTTP error 400 Bad request When playing music I have this error MPVCore unrecognized file format and also cplay: Failed to recognize file format

dragonflylee commented 1 week ago

@laleeroy please confirm you switchfin version is v0.5.3-8fbe705 in about dialog from setting tab. mp3 music play ok in my 10.8.13 jellyfin server

laleeroy commented 1 week ago

@laleeroy please confirm you switchfin version is v0.5.3-8fbe705 in about dialog from setting tab. mp3 music play ok in my 10.8.13 jellyfin server

Hi, my switchfin ver is 0.5.3-8fbe075 (Deko3d). May I ask what you put in host name after enabling the proxy option? I will try to emulate your setting, right now in my testing it is set to http://g.g and proxied to http://localip:8096

dragonflylee commented 1 week ago

in my setting , proxy addr is http://192.168.1.7:1080 and jellyfin server is http://192.168.1.7:8096

proxy using https://github.com/SagerNet/sing-box

laleeroy commented 1 week ago

in my setting , proxy addr is http://192.168.1.7:1080 and jellyfin server is http://192.168.1.7:8096

proxy using https://github.com/SagerNet/sing-box

Hmmmm, I don't know sing-box, but do I actually need to setup a proxy like maybe nginx? I thought it is fine as is because movies and series is playing well

dragonflylee commented 1 week ago

please try https://nightly.link/dragonflylee/switchfin/actions/runs/11880062283 i found another mistake which cause track load failed

sorry for waste your time

laleeroy commented 1 week ago

please try https://nightly.link/dragonflylee/switchfin/actions/runs/11880062283 i found another mistake which cause track load failed

sorry for waste your time

Hi, I dont have a switch anymore so I tested it with the windows version of the app. The music plays, but the live tv from the server doesnt, thanks for your work btw! debug