music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.4k stars 51 forks source link

Playback fails to start on DLNA Player provider with JRiver Media Center renderer #2493

Open madbrain76 opened 5 months ago

madbrain76 commented 5 months ago

What version of Music Assistant has the issue?

2.0.7

What version of the Home Assistant Integration have you got installed?

2024.6.2

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

Unable to play content from music providers onto JRiver media center using DLNA

How to reproduce

  1. install JRiver Media center on a host of your choice . I use version 31 on Windows
  2. In MC, go to Tools / Options / Media Network and turn on "Enable Media Network" (first checkbox)
  3. In MA, install the DLNA/UPNP player provider
  4. select the player corresponding to the JRiver instance. In my case, it was "HIGGS"
  5. select a track or album and hit play
  6. Note that playback does not start in MC
  7. Go back to JRiver MC
  8. Click on the main zone (HIGGS in my case)
  9. Notice that the track selected in step 5 shows up in the bottom pane, with all metadata including artwork
  10. Press play in JRiver
  11. The track starts playing in MC
  12. Stop playback from the MC side

Music Providers

Plex

However, I tried other music providers before and the behavior was the same.

Player Providers

DLNA/UPNP

Full log output

This first log is includes steps 1-6 .

log.txt

The second log goes all the way to the end, ie. step 12 . log2.txt

I'm also including logs from JRiver MC in case they can help diagnose/fix the issue. First log is for steps 1-6. JRiver Log 2024-06-16 16-44-16.zip

Second log is for steps 7-12 . JRiver Log 2024-06-16 16-45-26.zip

Additional information

Getting this to work would be quite useful. JRiver is able to expose nearly any Windows audio device(s) through DLNA, and thus would make it available to MA. JRiver runs on Linux and Mac too, but I haven't experimented with them (have Linux, no Mac). If this works, it can also alleviate the need for a browser-based player provider when one is using a Windows/Mac/Linux system.

What version of Home Assistant Core are your running

2024.6.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Windows

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 14 days with no activity. Comment or this will be closed in 7 days.

OzGav commented 4 months ago

keeping open for now

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 21 days with no activity. Comment or this will be closed in 7 days.

marcelveldt commented 3 months ago

bot shut up

madbrain76 commented 3 months ago

FYI, I just checked this with MA 2.2.2, and the behavior is unchanged.

OzGav commented 3 months ago

So just confirming that this does work it is just that the initial play command fails and you have to press play in JRiver Media Center?

madbrain76 commented 3 months ago

Yes, it's the startup that fails. However, if you pause using MA, you also can't resume playback from MA. You must go back to the JRiver GUI to resume. I even tried using MO4Media, a separate DLNA remote, and it wouldn't allow resumption in this case, either.

Interestingly, however, once I start playback with the JRiver, UI, I can use MO4media to pause/resume successfully, as long as I don't touch any transport controls in MA.

madbrain76 commented 3 months ago

There are probably other DLNA bugs here. I just tried an MA playlist for the first time against JRiver. At the end of the first track, it did not switch to the next track. Nothing I tried succeeded in making it play the second track. If I start the playlist in MA, hit play in JRiver, I'm able to use the MA prev/next transport controls to navigate between tracks, though.

sjhilton1978 commented 2 months ago

Hi - I'm also trying to use JRiver MC via DLNA (I use MA to access Tidal and then serve that to an MC client via DLNA). I am having slightly different issues. I've been doing some digging on the JRiver forums and it appears that JRiver MC does not like 'chunking' when streaming FLAC by DLNA and needs a file with a defined length. I tried some of the different profiles in MA and had a bit of success getting it going using 'Profile 3 - forced content length'. The only issue is that MA seems to consistently switch to the next track before completion. I hope that assists.