tesshucom / jpsonic

This is a repository for development. See https://github.com/jpsonic/jpsonic
GNU General Public License v3.0
13 stars 13 forks source link

External Playlist use results only in 403 on /ext/stream location #1969

Closed DutchComputerKid closed 1 year ago

DutchComputerKid commented 1 year ago

Problem description

While using the (legacy) feature of external playlists for problem-free DSD and ASIO playback, any file played using the external player feature is given a 403 by the server. I have tried to change the link to just /stream? instead of /ext/stream? but the output is the login page.

Status
    403
Error
    Forbidden
Message
Path
    /ext/stream

Steps to reproduce

  1. Turn on external playlists in legacy features
  2. Set the player to use external player/playlists, both will result the same
  3. Try to play in software such as Foobar or try opening the link in a browser.

System information

tesshucom commented 1 year ago

I use UPnP when checking with foobar, but I was able to confirm "Network error" even though I didn't change the settings. something might be happening, Browsing with UPNP is possible, but as you pointed out, "Network error" seems to occur when connecting via /ext. For curl or browser, "Timeout". This is serious, so if we investigate and find the problem, there is a high possibility that a fixed version will be released.

DutchComputerKid commented 1 year ago

Subsonic never really worked API-wise with files like DSD when using MusicBee, so for a couple years now external playlists have worked flawlessly instead. In any case, good to see all of this! If anything pops up to help debugging, I'd love to help

tesshucom commented 1 year ago

Thank you. Haven't seen it yet, but I think it can probably be fixed. Before the trouble occurred, normal operation was confirmed with the local renderer of BubbleUPnP. DSD is a slightly strange format, but I think there is a possibility that it can be played with foobar2000. Please wait a little bit ...

tesshucom commented 1 year ago

When I tried to access from the m3u URL, I was able to confirm the phenomenon you pointed out.

image

It may be a problem with the URL generation. Probably not so serious.


UPnP doesn't seem to have any issues. It was a feature that had a lot of degradations, so I thought something else had happened. It was just a mistake in the UPnP URL setting ....

In this way, there are some PC version software that can be linked with DSD.

Playable: UPnP&foobar2000 When I checked with foobar2000, I can confirm that streaming is possible. ![image](https://user-images.githubusercontent.com/27724847/209445168-928af06d-d8e9-4cc2-9bee-5ca709c055ed.png) foobar2000 may be relatively easy to check. Here's what it looks like on the taskbar: ![image](https://user-images.githubusercontent.com/27724847/209445179-8745ad75-957a-4f72-a453-3c4056a9398a.png)
Playable: Subsonic API&MusicBee It looks like it can be played via the Subsonic API. There is a Subsonic plugin called [MB_SubSonic](https://github.com/BlitterStudio/MB_SubSonic). ![image](https://user-images.githubusercontent.com/27724847/209446130-e56860db-5c6d-4320-8ca1-352d993852da.png) Sorry for my Japanese, but you can check it in the track information window.
Playable: UPnP&BubbleUPnP In the case of smartphones, we check with BubbleUPnP. BubbleUPnP is important because it allows you to send to Openhome devices. ![image](https://user-images.githubusercontent.com/27724847/209446561-d97a53fc-a2ab-4d51-86da-4ae3358e50e9.png) I think there are some Android devices like Experia where works well with high resolution files. I don't know about the iPhone. . . It may not be compatible with FLAC.
DutchComputerKid commented 1 year ago

If you use PCM conversion, maybe.

But in any case, UPnP shows me:

Unable to open item for playback (Object not found):
"http://192.168.2.182/ext/stream?id=5455&player=4&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiL2V4dC9zdHJlYW0_aWQ9NTQ1NSZwbGF5ZXI9NCIsImV4cCI6MTY3MjUyNjgzOX0.4dKZdUSjRL8_s_d7BOaV3YOUQ4dXePUSrRWWmt11AWE.flac"

or

Unable to open item for playback (Object not found):
"http://192.168.2.182/ext/stream?id=49543&player=4&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiL2V4dC9zdHJlYW0_aWQ9NDk1NDMmcGxheWVyPTQiLCJleHAiOjE2NzI1MjY4MjB9.N1_g3b9HqrRgi7hPPaRuGtL13WE4NqaK3yLXDDaSiBw.dsf"

No errors being logged either to give any sense of where in the chain this is happening.

tesshucom commented 1 year ago

It's worth to try adding Port designation... If there is no problem with network settings such as firewall, I think it will work.

image

Certainly the help explanation was not good. May need fix.

If you are deploying to Tomcat etc. and the context path is specified, it will be as follows.

http://192.168.2.182:8080/jpsonic

tesshucom commented 1 year ago

Fixed version v111.5.13 released. It will improve the cooperation with foobar2000 by m3u.

Plese use "External player with playlist".

image

We are considering deleting "External player" in the future. (no longer maintained) "External player with playlist" will be kept.

I'm not sure many users understand the exact difference between them...