Media Session Changed & icon_uri in a widget

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Media Session Changed & icon_uri in a widget

Post by Wibbly » 04 Oct 2019 12:36

I'm using the trigger Media Session Changed (Experimental) with Spotify and it's populating the icon_uri local variable. I copy that variable into a global variable global_cover, but can't seem to be able to use that to populate an image in a Custom Widget (the image is blank).

The URI is if the form
content://com.spotify.mobile.android.mediaapi/image/MjM2MWM4ODE5MTU1ZjVkMDk2Mjg1MjMyY2I0YmQzYzk2ZjcyYTliNg%3D%3D%0A

(Android 10, Pixel 2)

Any idea how to make this work? Anyone done this with Spotify?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Media Session Changed & icon_uri in a widget

Post by Martin » 04 Oct 2019 18:44

Hi,

You can try to load the image when the media session changes using action Init Variable Image File and see if the image can be loaded properly and use condition Debug Dialog to show it. Maybe it's some kind of permission issue where the image can be loaded immediately but not after a few seconds anymore (I'm just guessing since I don't use Spotify).

Regards,
Martin

Post Reply