Page 1 of 1

Media Session Changed & icon_uri in a widget

Posted: 04 Oct 2019 12:36
by Wibbly
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?

Re: Media Session Changed & icon_uri in a widget

Posted: 04 Oct 2019 18:44
by Martin
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