Spotify Plugin Released! Now with less bugs!

Share your custom plugins and applications to enhance Rainmeter.

Re: Spotify Plugin Released! Now with less bugs!

May 16th, 2018, 6:56 pm
Vetsus
   [27 posts]

yeah, i tried doing that as well with no luck. that's the only reason i'm sitting with what i have right now

Re: Spotify Plugin Released! Now with less bugs!

May 19th, 2018, 11:54 pm
mjr
   [1 posts]

I tried fixing a very basic skin and got the strings working alright but I cannot use the controls anymore. Here is the error message whenever I try to use the controls

Code: Select all

!CommandMeasure: Not supported (Soita\Soita_fix2.ini - [mPlayer])


Here's the skin itself. Can someone point me where the problem is

Code: Select all

[Rainmeter]
Author=mjr
Update=1000
DynamicWindowSize=1

[mPlayer]
Measure=Plugin
Plugin=SpotifyPlugin
Type=Playing

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin
Type=TrackName

[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName

[Track]
Meter=String
MeasureName=mTrack
x=10
Y=10
FontFace=Courier New
FontWeight=700
FontColor=FFFFFFFF
SolidColor=255,0,0,255
AntiAlias=1
ClipString=2
Text="%1"
LeftMouseUpAction=[!CommandMeasure "mPlayer" "next"]
RightMouseUpAction=[!CommandMeasure "mPlayer" "previous"]

[Artist]
Meter=String
MeasureName=mArtist
x=10
Y=5R
FontFace=Courier New
FontWeight=700
FontColor=FFFFFFFF
SolidColor=255,0,0,255
AntiAlias=1
ClipString=2
Text="%1"
LeftMouseUpAction=[!CommandMeasure "mPlayer" "playpause"]

Re: Spotify Plugin Released! Now with less bugs!

May 25th, 2018, 11:24 pm
^LeveLUP^
   [1 posts]

Not sure if this has been suggested before but I've noticed in (at least) Windows 10 using keyboard volume keys gets the album artwork and information displayed (see screenshot) https://prnt.sc/jmpqyg

Is it possible for the .dll to hook into this process and use this to grab all the necessary information? As it seems that this is consistent (although it lacks compatibility with older versions of windows potentially and other Operating systems)
User avatar

Re: Spotify Plugin Released! Now with less bugs!

May 26th, 2018, 3:35 am
tjhrulz
Developer   [221 posts]

^LeveLUP^ wrote:Not sure if this has been suggested before but I've noticed in (at least) Windows 10 using keyboard volume keys gets the album artwork and information displayed (see screenshot) https://prnt.sc/jmpqyg

Is it possible for the .dll to hook into this process and use this to grab all the necessary information? As it seems that this is consistent (although it lacks compatibility with older versions of windows potentially and other Operating systems)


I have looked into it before, there is no easy way to do it as that data is supposed to be only accessible to the program that put it there. Which one is "displayed" on the volume OSD is up to windows.

The hacky way I had engineered was to internally grab the volume OSD every time it is displayed and OCR the image to get the info but that is a terrible idea.

The hacky workaround we came up with recently was either to iterate through every internal window, get their ID, get their info using an undocumented function. Then deciding on our own which is the best one to display. This would then need to be done at least twice a second (I would probably do it 10 times) so the data could be up to date. This would probably end up being too expensive to be useful but I may look into it, especially since I need to fix NowPlaying's Spotify support anyways.

Re: Spotify Plugin Released! Now with less bugs!

May 27th, 2018, 7:17 am
vitaly
   [1 posts]

A solution to monstercat's. Open the folder Documents> Rainmeter> Skins> monstercat's-visualizer> @Resources> include. Open the <MeasureSpotify.inc> file in Notepad. Under [MeasureState] Playername = Spotify, change to Playername = NowPlaying, close, and save. Refresh the cover. Returns the functionality of the control buttons.

Re: Spotify Plugin Released! Now with less bugs!

May 29th, 2018, 1:59 am
TRMTZD
   [5 posts]

vitaly wrote:A solution to monstercat's. Open the folder Documents> Rainmeter> Skins> monstercat's-visualizer> @Resources> include. Open the <MeasureSpotify.inc> file in Notepad. Under [MeasureState] Playername = Spotify, change to Playername = NowPlaying, close, and save. Refresh the cover. Returns the functionality of the control buttons.


Oh that actually worked thanks!
User avatar

Re: Spotify Plugin Released! Now with less bugs!

May 29th, 2018, 3:46 am
tjhrulz
Developer   [221 posts]

TRMTZD wrote:Oh that actually worked thanks!

Yeah if you are curious why it works to copy paste my explanation from elsewhere:

You can put any gibberish you want there :p as you actually stumbled upon an oddity in Rainmeter, see Rainmeter's NowPlaying plugin has a mode for an old program called Windows Live Messenger (Saying that makes me feel old) back in the day music players would forward their media status to that. So thus as a general catch all Rainmeter added support for that protocol and then sent the player commands (Which are just keyboard commands) globally (which works a lot of the time since you normally only have one media player open at a time)

See here is the thing, WLM is what Rainmeter reverts to when the player type is not recognized. Even though Spotify does not send info to WLM most people use the SpotifyPlugin for all the track info. All that most people use NowPlaying for is for the media controls. So you have only Spotify open it works fine.

Re: Spotify Plugin Released! Now with less bugs!

May 29th, 2018, 4:32 am
TRMTZD
   [5 posts]

tjhrulz wrote:Yeah if you are curious why it works to copy paste my explanation from elsewhere:

You can put any gibberish you want there :p as you actually stumbled upon an oddity in Rainmeter, see Rainmeter's NowPlaying plugin has a mode for an old program called Windows Live Messenger (Saying that makes me feel old) back in the day music players would forward their media status to that. So thus as a general catch all Rainmeter added support for that protocol and then sent the player commands (Which are just keyboard commands) globally (which works a lot of the time since you normally only have one media player open at a time)

See here is the thing, WLM is what Rainmeter reverts to when the player type is not recognized. Even though Spotify does not send info to WLM most people use the SpotifyPlugin for all the track info. All that most people use NowPlaying for is for the media controls. So you have only Spotify open it works fine.


Ahh that makes sense. So I've essentially told the plugin to use my pc's global music controls courtesy of WLM instead of Spotify's internal music controls which currently doesn't work inside of the plugin. Right?
User avatar

Re: Spotify Plugin Released! Now with less bugs!

May 29th, 2018, 4:46 am
tjhrulz
Developer   [221 posts]

TRMTZD wrote:Ahh that makes sense. So I've essentially told the plugin to use my pc's global music controls courtesy of WLM instead of Spotify's internal music controls which currently doesn't work inside of the plugin. Right?


Dead on.
I also have a hotfix on my desk that I will be testing in the morning that should hopefully bring Spotify back to full working order and should be be included in the next Rainmeter beta.
User avatar

Re: Spotify Plugin Released! Now with less bugs!

May 31st, 2018, 6:51 am
dudebaker
   [37 posts]

The update 2.1.5 seems to fix the previous, next and pause bangs.
The setposition bang does not work, at least with free users cause I have no premium (Log: Error 403: Not available for the current user).
The playpause bang pauses but instead of starting the track again it jumps to the next track.
The same goes with the play bang.

So my fix for this in the meantime - use the MediaKey measure for the commands and this plugin for the metadata, in this case there have not two MetaData-Plugins to be loaded, maybe uses a little less ressource. :)

Return to “Plugins & Addons”



Who is online

Users browsing this forum: No registered users and 2 guests