Hey everyone!
Just need a little advice.
I have been searching for a clickable and possibly draggable progress bar for music.
I did not find a draggable one yet, so I decided to use the clickable ones such as Mond for now until I can try to learn how to make one, do some research on it.
With Mond, and other clickable progress bars....
I have noticed an issue with it... it only lets me click about 3 min and 34 seconds into the song and if I click further down the bar, the song restarts from the beginning and the progress goes back to the beginning. I can click anywhere within the bar if it doesn't exceed 3:34 min and it works. But soon as I go over that, the bar goes back and so does the song, so I can't click further.
Clicking back on the bar, is ok, its clicking ahead that isn't.
I have tried it with other skins too besides Mond, And exactly the same thing happens... (All this is using Spotify)
(I did try with Windows Media Player just to see if it was maybe an issue with Spotify, but WMP was even worse)
Does anyone have any idea why this might be happening? Maybe a setting I need to change? or is this supposed to be like this?
Thanks in advance for any advice on this.
It is currently May 2nd, 2024, 4:37 pm
Issue with music progress bar.
-
- Posts: 42
- Joined: June 30th, 2022, 1:39 pm
-
- Rainmeter Sage
- Posts: 16194
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Issue with music progress bar.
Check the Mirage\MediaPlayer\MediaPlayer.ini skin of my Mirage suite. It has a clickable and draggable progress bar.
No, have not, since we don't have the code. Post it, or even better pack the whole config and upload the package.
-
- Posts: 42
- Joined: June 30th, 2022, 1:39 pm
Re: Issue with music progress bar.
balala wrote: ↑June 26th, 2023, 5:52 am Check the Mirage\MediaPlayer\MediaPlayer.ini skin of my Mirage suite. It has a clickable and draggable progress bar.
No, have not, since we don't have the code. Post it, or even better pack the whole config and upload the package.
I used this one:
https://www.deviantart.com/vinithkumar/art/Blurry-Music-Player-885682090
changed the settings to spotify.
I also used Mond.
Does your media player work with Spotify?
-
- Rainmeter Sage
- Posts: 16194
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Issue with music progress bar.
No, it doesn't, because Spotify is just partially supported by the NowPlaying measures. But you can try to see how the clicking and dragging on the progress bar available on the skin does work, for instance with Windows Media Player.
-
- Rainmeter Sage
- Posts: 7190
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Issue with music progress bar.
RoseRain wrote: ↑June 26th, 2023, 6:27 amI used this one:
https://www.deviantart.com/vinithkumar/art/Blurry-Music-Player-885682090
changed the settings to spotify.
As you know, I'm using Winamp and not Spotify, and don't get the issue you're describing, when using the NowPlaying plugin (which of course, isn't fully supporting Spotify anyway). When using WebNowPlaying with Winamp, I do get the issue described here, which could play a part in what you're experiencing, but I doubt that it would be present for Spotify (otherwise other Spotify users would have complained about it in the WebNowPlaying thread).
Other than that, the skin you linked to is using the NowPlaying plugin, and not the WebNowPlaying one, so, unless you edited it to use WebNowPlaying measures, it will behave just like any NowPlaying skin is with an only partially supported player like Spotify. If you made the changes required for it to work with WebNowPlaying measures, then in theory all should be fine - if not, checking with keifufu, the current plugin's developer, might help.
-
- Posts: 42
- Joined: June 30th, 2022, 1:39 pm
Re: Issue with music progress bar.
Your media player works perfectly with Windows Media Player. Tested it. It's lovely
But I only use Spotify though.
-
- Posts: 42
- Joined: June 30th, 2022, 1:39 pm
Re: Issue with music progress bar.
I did edit it, and added WebNowPlaying. The timer and progress is fine... its just that issue. I can't click past 3:34min without it going back to the beginning and restarting the song.Yincognito wrote: ↑June 26th, 2023, 8:37 am Other than that, the skin you linked to is using the NowPlaying plugin, and not the WebNowPlaying one, so, unless you edited it to use WebNowPlaying measures, it will behave just like any NowPlaying skin is with an only partially supported player like Spotify. If you made the changes required for it to work with WebNowPlaying measures, then in theory all should be fine - if not, checking with keifufu, the current plugin's developer, might help.
When I use the skin as is, unedited, using NowPlaying... with Windows Media Player (Just tried it again now) it works fine.
So its only happening with Spotify and WebNowPlaying.
-
- Rainmeter Sage
- Posts: 7190
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Issue with music progress bar.
I see. Can you post the edited code, just to see if there isn't something there that could cause the issue?RoseRain wrote: ↑June 26th, 2023, 12:35 pm I did edit it, and added WebNowPlaying. The timer and progress is fine... its just that issue. I can't click past 3:34min without it going back to the beginning and restarting the song.
When I use the skin as is, unedited, using NowPlaying... with Windows Media Player (Just tried it again now) it works fine.
So its only happening with Spotify and WebNowPlaying.
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Issue with music progress bar.
I use the Player.ini skin from the updated Mondtholomew package and it has the same issue when trying to click beyond ~80% of the progress.RoseRain wrote: ↑June 26th, 2023, 12:35 pm I did edit it, and added WebNowPlaying. The timer and progress is fine... its just that issue. I can't click past 3:34min without it going back to the beginning and restarting the song.
When I use the skin as is, unedited, using NowPlaying... with Windows Media Player (Just tried it again now) it works fine.
So its only happening with Spotify and WebNowPlaying.
The problem is an error in the code that determines the position of the mouse cursor over the progress bar.
To correct, you need to edit the 'Measures.inc' file in the Player folder by changing the Formula as shown:
Code: Select all
[MeasureSeekPercentage]
Measure=Calc
Formula=(Clamp((#MouseX# - [MeterSeek:X] - #SeekBarPadding#) / Max([BarMaxWidth],1),0,1) * 100)
MinValue=0
MaxValue=100
DynamicVariables=1
Hope this helps
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 7190
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Issue with music progress bar.
This will help for sure in the case of the updated Mond skin, but doesn't explain the similar behavior in the Blurry Music Player linked above, where setting the position via click is much more straightforward:
Code: Select all
[MeterBar]
Meter=Shape
X=(25*#Scale#)
Y=(122*#Scale#)
Shape=Rectangle 0,0,(76*#Scale#),(1*#Scale#),0 | Fill Color 0,0,0,30 | StrokeWidth 0
Shape2=Rectangle 0,0,([MeasureProgress]*0.75*#Scale#),(1*#Scale#),0 | Fill Color 0,0,0 | StrokeWidth 0
Shape3=Ellipse ([MeasureProgress]*0.75*#Scale#),(0.8*#Scale#),(4*#Scale#) |Fill Color 0,0,0 | StrokeWidth 0
Shape4=Rectangle 0,(-1*#Scale#),(76*#Scale#),(3*#Scale#),0 | Fill Color 0,0,0,1 | StrokeWidth 0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureProgress" "SetPosition $MouseX:%$"]