Media Casting Fails

My network consists of:
Nvidia Shield TV Pro v11/Kodi v21.2
WiiM Pro v4.8.731953
Samsung Galaxy Tab 9 v15/Yatse v12.0.0 (trial)

Yatse properly displays my Kodi library and connects (Chromecast) to my Wiim Pro without error.

After I select the media on Yatse (Julian Bream/La Guitarra Romantica), the following pop-ups are displayed: “Preparing media for streaming”, “Starting 18 items”, “No streaming server found or problem finding the media”, etc.

For example, log line 20263 is the attempt to get track 01; log line 20322 reports that the attempt failed.

Is there a Kodi UPnP side configuration (permission, etc) that needs to be set? As a data point, I tried BubbleUPnP (not my preferred solution!). Connection and playback were OK.

debug.log.zip (598.8 KB)

Your kodi have a password so can’t directly cast.

Yatse tries to use Kodi upnp server to cast but nothing answers with the same address.

Check your Kodi configuration is all upnp options are enabled, else remove the password from Kodi to simplify this.

The only Kodi password I have set is for the Web server; I cleared this. All UPnP config items are ticked; there is no password config here. The only profile is ‘master’; there is no password config here.

With this, behavior is initial failure to play media (UPnP fails line 52728) then media plays (HTTP line 52728).

What UPnP security is getting in the way? My home router has UPnP enabled.

debug.2.log.zip (1.3 MB)

Upnp does not support basic auth to access the files, so Yatse needs to try to match things with the Kodi upnp server, but can’t connect to it or have large delays.

If you remove the basic auth to access Kodi then the direct webserver urls can be used.

On Kodi, I did remove the authentication for the Web server and enabled all UPnP settings. But each track first gets the popup “No streaming server found …” and then plays.

The best user experience would be to have UPnP working and not have the error message for each track. Yatse does get the UPnP browse tree from Kodi so that part is OK.

Do I need the Yatse add-on for Kodi?

No you don’t need the addon. And you also need to remove the auth on Yatse side so that it knows it’s not needed.

My current state is running Kodi Web server unsecured. This results in error popup (from UPnP error) then track plays. Since Web server can be used for control, running it unsecured is a risk. Also, error popup mars user experience.

My hope is to have UPnP working smoothly. To that end, I’m including Kodi debug for both failed and successful UPnP operation for same track.

On line 6, Yatse sends a request for an encoded object, but it is in plain text. When decoded, it becomes “noise” and can’t be found.

On line 25, BubbleUPnP sends the request for same track, but it is properly encoded and operation flows through.

Can Yatse encoding be revised to have UPnP flow through and not fallback to Web Server?

kodi.log (3.6 KB)

Again if you change Yatse configuration so that it knows the server have no authentification it won’t show the error since it won’t try the upnp path ….

Your bubble example is not relevant unfortunately since it’s only upnp it does not have to match thing and try to find the media from the json api. I have no way to guess musicdb://artists/9/12/-2/102.flac?albumartistsonly=false&albumid=12&artistid=9

I guess they finally broke the only solution that existed, so there’s not much more I can do here.

To confirm: solution is keep Kodi Web server unsecured and Yatse, if configured properly, will not try UPnP. But please to point me to the needed Yatse config setting; I couldn’t find it.

Just edit the host and remove the login and password or remove and add again.