It is currently March 29th, 2024, 12:38 pm

[Solved] Media Player Skin always defaults to "stop" why?

Get help with creating, editing & fixing problems with skins
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: Media Player Skin always defaults to "stop" why?

Post by Mor3bane »

eclectic-tech wrote:Wrong? ... I'm never wrong, just mistaken! ;-)

I simply was pointing out the same thing you did and created a pause image, then used his existing measure state, so he could make it work... most of the time, I don't even use stop button. :D

We are both saying the same thing, no matter how it is explained. :welcome:
Well, as you said eclectic-tech - phraseology is not important - just the intended meaning is important.

With your excellent observation of theMeasureState and the addition of the Substitute - and my decision to eliminate the redundant Stop button... things look and function perfectly!

Thanks for taking the time to suss this quandary fully out :thumbup: :great: :rosegift:

Forgot to mention the attractive Pause button you created - THANKS!
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Media Player Skin always defaults to "stop" why?

Post by balala »

eclectic-tech wrote:Wrong? ... I'm never wrong, just mistaken! ;-)
Sorry eclectic-tech, the pitfalls of the English language (for me)...
NovoNinja
Posts: 6
Joined: July 28th, 2019, 7:52 pm

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by NovoNinja »

Hello I was seeing you talking and I have a bug to report similar to this and was wondering if you could help me.

My Media Player does not appear the button to put the music and when I went to see the script was not the correct image so I added, but when I put the music it does not change the image as I want.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by balala »

NovoNinja wrote: July 28th, 2019, 8:08 pm Hello I was seeing you talking and I have a bug to report similar to this and was wondering if you could help me.

My Media Player does not appear the button to put the music and when I went to see the script was not the correct image so I added, but when I put the music it does not change the image as I want.
This is an extremely old thread (two and half a year), so I have to ask you first to post the code you have so far. I don't have anymore what had we talking about then.
NovoNinja
Posts: 6
Joined: July 28th, 2019, 7:52 pm

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by NovoNinja »

balala wrote: July 28th, 2019, 8:12 pm This is an extremely old thread (two and half a year), so I have to ask you first to post the code you have so far. I don't have anymore what had we talking about then.
Ok but can you still help me if you show my code?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by balala »

NovoNinja wrote: July 28th, 2019, 8:15 pm Ok but can you still help me if you show my code?
I'll try to.
NovoNinja
Posts: 6
Joined: July 28th, 2019, 7:52 pm

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by NovoNinja »

balala wrote: July 28th, 2019, 8:16 pmI'll try to.
Ok,thanks!

Follows the code:

Code: Select all

[Rainmeter]
Update=10
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.1 ? 0.1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.1 ? 0.1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
;LeftMouseDoubleClickAction=!ToggleConfig "Lasix\Settings" "Settings.ini"

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
Scale=0.27
TextSpeed=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=ARTIST

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE

[MeasureProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=PROGRESS
AverageSize=5
MinValue=0
MaxValue=100

[MeasureStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureX]
Measure=Calc
Formula=( #TextSpeed# * COUNTER % ( 1200*#Scale# + [MeterTrack:W] ))
DynamicVariables=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
StringAlign=Left
StringCase=Upper
FontFace=Futurist Fixed-width
FontColor=255,255,255
FontSize=(40*#Scale#)
X=(0*#Scale#)
Y=(0*#Scale#)
Text="%1"
AntiAlias=1

[MeterTrack]
Meter=String
MeasureName=MeasureTitle
StringAlign=Left
StringCase=Upper
FontFace=Futurist Fixed-width
FontColor=#TextColor#,(Clamp((([MeasureX:]-100)*1),0,255))
FontSize=(32*#Scale#)
X=(1000*#Scale#-[MeasureX])
Y=(70*#Scale#)
Text="%1"
DynamicVariables=1
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterBar]
Meter=Bar
MeasureName=MeasureProgress
BarOrientation=Horizontal
X=(0*#Scale#)
Y=(140*#Scale#)
W=(1000*#Scale#)
H=(10*#Scale#)
BarColor=#TextColor#
SolidColor=255,255,255,50
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "SetPosition $MouseX:%$"]

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterPrevious]
Meter=Image
ImageName=#@#Previous.png
X=(335*#Scale#)
Y=(200*#Scale#)
W=(50*#Scale#)
AntiAlias=1
SolidColor=0,0,0,1
ImageAlpha=150
ImageTint=#TextColor#
LeftMouseUpAction=[!PluginBang "MeasureStateButton Previous"]

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(470*#Scale#)
Y=(200*#Scale#)
W=(50*#Scale#)
AntiAlias=1
SolidColor=0,0,0,1
ImageAlpha=150
ImageTint=#TextColor#
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]

[MeterNext]
Meter=Image
ImageName=#@#Next.png
X=(610*#Scale#)
Y=(200*#Scale#)
W=(50*#Scale#)
AntiAlias=1
SolidColor=0,0,0,1
ImageAlpha=150
ImageTint=#TextColor#
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]
Last edited by NovoNinja on July 28th, 2019, 8:28 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by balala »

NovoNinja wrote: July 28th, 2019, 8:18 pm Follows the code:
First note that the NowPlaying measures must have a parent-child structure. This means that one of the NowPlaying measures must be the parent measure (let's say [MeasurePlayer]), while the other ones will be the child measures (in this case [MeasureArtist], [MeasureTitle], [MeasureProgress] and [MeasureStateButton]). The PlayerName option of the child measures must be related to the parent measure (through a PlayerName=[MeasurePlayer] option). A structure having the PlayerName=#Player# option on all NowPlaying measures isn't correct, however for sure not this is causing the issue.
So, first try to rewrite the NowPlaying measures as it follows:

Code: Select all

[MeasurePlayer]
Measure=NowPlaying
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureTitle]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE

[MeasureProgress]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS
AverageSize=5
MinValue=0
MaxValue=100

[MeasureStateButton]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png"
If the skin doesn't work nor with these measures (and I suppose it doesn't), please pack the whole config you have and upload it here. There are a lot of needed resources and would be much easier for me to help if I'd have all those files.
NovoNinja
Posts: 6
Joined: July 28th, 2019, 7:52 pm

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by NovoNinja »

balala wrote: July 28th, 2019, 8:47 pm First note that the NowPlaying measures must have a parent-child structure. This means that one of the NowPlaying measures must be the parent measure (let's say [MeasurePlayer]), while the other ones will be the child measures (in this case [MeasureArtist], [MeasureTitle], [MeasureProgress] and [MeasureStateButton]). The PlayerName option of the child measures must be related to the parent measure (through a PlayerName=[MeasurePlayer] option). A structure having the PlayerName=#Player# option on all NowPlaying measures isn't correct, however for sure not this is causing the issue.
So, first try to rewrite the NowPlaying measures as it follows:

Code: Select all

[MeasurePlayer]
Measure=NowPlaying
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureTitle]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE

[MeasureProgress]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS
AverageSize=5
MinValue=0
MaxValue=100

[MeasureStateButton]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png"
If the skin doesn't work nor with these measures (and I suppose it doesn't), please pack the whole config you have and upload it here. There are a lot of needed resources and would be much easier for me to help if I'd have all those files.
Ok, it didn't work so I'll send the file, it's in the Player folder
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Solved] Media Player Skin always defaults to "stop" why?

Post by balala »

NovoNinja wrote: July 28th, 2019, 8:08 pm My Media Player does not appear the button to put the music and when I went to see the script was not the correct image so I added, but when I put the music it does not change the image as I want.
Are you talking about the play / pause button? Because it does change, according to the status of the player:
Pause.png
Play.png
What player are you using? Because the skin is set to work with Windows Media Player. If you're using another player, you have to set it accordingly in the @Resources\Variables.inc file. Replace the Player=WMP variable with the desired player name. Here is the list of the valid values for this variable: https://docs.rainmeter.net/manual/measures/nowplaying/#playerlist
You do not have the required permissions to view the files attached to this post.