It is currently November 4th, 2024, 5:27 am

WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Plugins and Addons popular with the Community
User avatar
StArL0rd84
Posts: 426
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by StArL0rd84 »

PinDev wrote:Hi, today i just realized that the cover isn't working, even tho it's working perfectly before. I even checked with the downloadable skin in the first page but the cover also not working. Is it just me? :???:
Working fine for me.

Code: Select all

[mCover]
 Measure=Plugin
 Plugin=WebNowPlaying
 PlayerType=Cover
 DefaultPath=#@#Images\NoCover.jpg
 CoverPath=#@#Images\Cover.jpg
 Substitute="":"#@#Images\NoCover.jpg"
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by kyriakos876 »

It's me again reporting stuff, I was doing my visual updates on a YouTube skin I have, when I noticed that if I go to YouTube and max the volume, I get back on my skin that the volume is at "55" or "47" or some other random number, while on my browser the volume is maxed out.... And I can even turn up the volume from my skin even more (and actually hear the sound louder) while, again, the volume on YouTube at my browser is maxed out. What's up with that?
User avatar
tjhrulz
Developer
Posts: 268
Joined: October 13th, 2016, 1:28 am
Location: Earth

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by tjhrulz »

StArL0rd84 wrote:Yeah np. The notification system could use a tune up.
I get my email notifications late.
Tnx again for the amazing plugin.
But now that I have you here...
The plugin already boasts a ton of features, so maybe it's too much to ask, but I am making a playlist feature with web parser. Just seem sluggish. Maybe it's something you could incorporate into the plugin in stead. Like it would auto detect if I am playing a song from a playlist and show me the name of the playlist and list the songs in it. This way I could also auto hide the skip-back/previous button if it's not a song from a playlist.

Totally understand if you can't, I can see how it could be a nightmare to code :D

This is actually something I have gone back and forth on if I should add it or not. Because I did add a queue feature in GPMDP and it was a nightmare to expose well in Rainmeter.
And then in this case not every website will support it and so how do I expose when a site does not support that?

However though I think I have come up with a good way to do this using section variables. While I will not be adding it in this plugin I do plan to use it in a future plugin that will likely be replacing this one.

@kyriakos876 What is likely happening is that because many sites (Youtube being one of them) don't always show their volume bar and controlling it using clicks would be a pain I go around them and just watch the volume of the HTML5 element itself. This is much nicer because I can always control and get updates even when it is out of view. However the downfall is that many sites don't expect someone else to change the volume of the audio/video so their volume bar is out of sync. IMO I think this is better than what you have with sites like soundcloud where I have to manually open the volume, change it, and then close it. So yes clicks from Rainmeter are sent over you just may not see it and will only hear it.
User avatar
StArL0rd84
Posts: 426
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by StArL0rd84 »

So after trying $MouseX:%$ on Souncloud it does not seem to work properly.
It just plays the song from the start. Bummer
And the volume bar is maxed out always, but can click it to adjust the volume.
Works perfectly for YouTube tho.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
tjhrulz
Developer
Posts: 268
Joined: October 13th, 2016, 1:28 am
Location: Earth

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by tjhrulz »

StArL0rd84 wrote:So after trying $MouseX:%$ on Souncloud it does not seem to work properly.
It just plays the song from the start. Bummer
And the volume bar is maxed out always, but can click it to adjust the volume.
Works perfectly for YouTube tho.
That sounds like that is an issue on my end, I likely already fixed it witht he rewrite but I will double check that those are working right for you.
User avatar
StArL0rd84
Posts: 426
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by StArL0rd84 »

Maybe I don't have the the latest dll's?
I've got file version 0.3.0.0
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
tjhrulz
Developer
Posts: 268
Joined: October 13th, 2016, 1:28 am
Location: Earth

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by tjhrulz »

No that is latest, expect though a new update soon.
User avatar
tjhrulz
Developer
Posts: 268
Joined: October 13th, 2016, 1:28 am
Location: Earth

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by tjhrulz »

Update 0.4.0 is now live for all web browsers, it is a complete rewrite that should make everyones experiences much better. While it is not mandatory there is also a new update for the Rainmeter plugin. Benefits of updating to it include better support for the new generic website handler (It may be ignored if it only obtained partial info on 0.3.0), and I removed the spotify API since it is no longer needed which should prevent a potential crash on heavily locked down networks.
User avatar
StArL0rd84
Posts: 426
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by StArL0rd84 »

Suggestion for next update:

Instead of [!CommandMeasure MeasurePlayPause "SetPosition +5"]
Maybe do something like [!CommandMeasure MeasurePlayPause "SetPosition 5"]
Which would skip to 5 percent into the song.

Right now i have set LeftMouseUpAction on my bar with
[!CommandMeasure mProgress "SetPosition $MouseX:%$"]

Which works flawlessly on YouTube, but SoundCloud does not like that format.
(Even after the 0.4.0.0 update) The song just skips the beginning when clicking on the bar.

Cannot really see any way i could make the bar clickable with just SetPosition +/-X.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: WebNowPlaying plugin. Supports sites like Youtube and Soundcloud

Post by kyriakos876 »

StArL0rd84 wrote:
Which works flawlessly on YouTube, but SoundCloud does not like that format.
(Even after the 0.4.0.0 update) The song just skips the beginning when clicking on the bar.
My skin works fine when I click on the bar, whether it's on YouTube or SoundCloud, and I use the same method.