It is currently April 28th, 2024, 2:01 pm

PlayPause does not work in Monstercat for YouTube Music

Get help with creating, editing & fixing problems with skins
Ptiolerwud
Posts: 5
Joined: December 4th, 2023, 11:08 am

PlayPause does not work in Monstercat for YouTube Music

Post by Ptiolerwud »

I'm trying to control music in the browser, the Previous and NEXT buttons work, but the PlayPause button works only if the music was not started in the browser, and after that it stops pressing((

Rainmeter 4.5.18.3727 (64-bit)
Windows 10 Pro 22H2 (build 19045.3758) 64-bit - Russian (1049)
Monstercat Visualizer GitHub release v2.1.0
User avatar
balala
Rainmeter Sage
Posts: 16183
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PlayPause does not work in Monstercat for YouTube Music

Post by balala »

Ptiolerwud wrote: December 4th, 2023, 11:56 am I'm trying to control music in the browser, the Previous and NEXT buttons work, but the PlayPause button works only if the music was not started in the browser, and after that it stops pressing((
Code, please? Many depends on how you code is looking, so post it please for first.
User avatar
Yincognito
Rainmeter Sage
Posts: 7179
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Yincognito »

I don't think this thread belongs to the Bugs and Feature Suggestion section of the forum, it looks like a standard Skin Help topic, so it probably should be moved accordingly. Other than that, please carry on. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7179
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Yincognito »

Ptiolerwud wrote: December 4th, 2023, 11:56 am I'm trying to control music in the browser, the Previous and NEXT buttons work, but the PlayPause button works only if the music was not started in the browser, and after that it stops pressing((

Rainmeter 4.5.18.3727 (64-bit)
Windows 10 Pro 22H2 (build 19045.3758) 64-bit - Russian (1049)
Monstercat Visualizer GitHub release v2.1.0
It works for me. I installed the release you mentioned, I clicked the Settings skin > Media Player > WebNowPlaying, I installed the WebNowPlaying extension for the browser I'm using and checked all Adapters + Use Native API in its settings, and all works. If you did the same, it should work for you too.
Last edited by Yincognito on December 4th, 2023, 5:24 pm, edited 1 time in total.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
Ptiolerwud
Posts: 5
Joined: December 4th, 2023, 11:08 am

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Ptiolerwud »

Code: Select all

[Rainmeter]
Group=MonstercatVisualizer | SongInfo
Update=200
BackgroundMode=2
SolidColor=0,0,0,1

; = IMPORTANT =
; = For configuring the rainmeter skin, right-click the visualizer and click on "Open settings".
; = You can also open the variables.ini file located in:
; = "My Documents\Rainmeter\Skins\Monstercat Visualizer\@Resources"

; Small context menu when you right-click the skin
ContextTitle=" Open settings"
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "general.ini"]
ContextTitle2=" Open variables file"
ContextAction2=["#@#variables.ini"]
ContextTitle3=" Toggle background"
ContextAction3=[!ToggleConfig "#ROOTCONFIG#\Background" "Background.ini"]

OnRefreshAction=[!DisableMeasure "MeasureTrack"][!DisableMeasure "MeasureArtist"][!DisableMeasure "MeasureProgress"]

[Metadata]
Name=Monstercat Visualizer for Rainmeter
Author=marcopixel
Version=2.1.0
License=MIT License
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.

[Variables]
; Include main variables file
@include=#@#variables.ini

; Include styling & media player measures
@include2=#@#include\MeasureMedia#MPMode#.inc
@include3=#@#include\MeasureStyling.inc

; Shadow meter + background layer
[MeterCoverShadow]
Meter=Image
X=(11*#ScaleSongInformation#)
Y=(4*#ScaleSongInformation#)
W=(#CoverSize#*#ScaleSongInformation#)
H=(#CoverSize#*#ScaleSongInformation#)
SolidColor=#DropShadowColor#
Hidden=(#EnableDropShadow# > 0 ? 0 : 1)
[MeterCoverBackground]
Meter=Image
X=(7*#ScaleSongInformation#)
Y=0
W=(#CoverSize#*#ScaleSongInformation#)
H=(#CoverSize#*#ScaleSongInformation#)
SolidColor=#Color#
Group=GroupDynamicColors

; Monstercat cover - between background and album cover layer
[MeterMonstercatCover]
Meter=Image
ImageName=#@#images\nocover.png
X=(7*#ScaleSongInformation#)
Y=0
W=(#CoverSize#*#ScaleSongInformation#)
H=(#CoverSize#*#ScaleSongInformation#)
PreserveAspectRatio=2
MouseOverAction=[!ShowMeterGroup "MediaControls"]
MouseLeaveAction=[!HideMeterGroup "MediaControls"]

; Album cover - shows the album cover
[MeterCover]
Meter=Image
MeasureName=MeasureCover
X=(7*#ScaleSongInformation#)
Y=0
W=(#CoverSize#*#ScaleSongInformation#)
H=(#CoverSize#*#ScaleSongInformation#)
PreserveAspectRatio=2
MouseOverAction=[!ShowMeterGroup "MediaControls"]
MouseLeaveAction=[!HideMeterGroup "MediaControls"]
Hidden=#ShowMonstercatCover#

; Media controls
[MeterControlsOverlay]
Meter=Image
X=(7*#ScaleSongInformation#)
Y=0
W=(#CoverSize#*#ScaleSongInformation#)
H=(#CoverSize#*#ScaleSongInformation#)
SolidColor=0,0,0,200
Hidden=1
Group=MediaControls
[MeterPrevious]
Meter=Image
ImageName=#@#images\previous.png
X=(7*#ScaleSongInformation#)+(#CoverSize#*0.070)*#ScaleSongInformation#
Y=(#CoverSize#*0.35)*#ScaleSongInformation#r
W=(#CoverSize#*0.25)*#ScaleSongInformation#
H=(#CoverSize#*0.25)*#ScaleSongInformation#
LeftMouseUpAction=[!CommandMeasure MeasureState "Previous"]
Hidden=1
Group=MediaControls
[MeterPlayPause]
Meter=Image
X=(#CoverSize#*0.055)*#ScaleSongInformation#R
Y=0r
W=(#CoverSize#*0.25)*#ScaleSongInformation#
H=(#CoverSize#*0.25)*#ScaleSongInformation#
LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
ImageName=#@#images\[MeasureStateButton].png
DynamicVariables=1
Hidden=1
Group=MediaControls
[MeterNext]
Meter=IMAGE
ImageName=#@#images\Next.png
X=(#CoverSize#*0.055)*#ScaleSongInformation#R
Y=0r
W=(#CoverSize#*0.25)*#ScaleSongInformation#
H=(#CoverSize#*0.25)*#ScaleSongInformation#
LeftMouseUpAction=[!CommandMeasure MeasureState "Next"]
Hidden=1
Group=MediaControls
[MeterPosition]
Meter=String
MeasureName=MeasurePosition
X=((7*#ScaleSongInformation#)+(#CoverSize#*0.10)*#ScaleSongInformation#)
Y=(#CoverSize#*0.80)*#ScaleSongInformation#
FontFace=#Font1#
FontSize=(#CoverSize#*0.08)*#ScaleSongInformation#
FontColor=255,255,255,255
AntiAlias=1
ClipString=1
StringAlign=Left
Hidden=1
Group=MediaControls
[MeterDuration]
Meter=STRING
MeterStyle=MeterPosition
MeasureName=MeasureDuration
X=((7*#ScaleSongInformation#)+(#CoverSize#*0.90)*#ScaleSongInformation#)
Y=0r
Hidden=1
StringAlign=Right
Group=MediaControls

; Include update checker
@include4=#@#include\MeasureUpdateChecker.inc
Ptiolerwud
Posts: 5
Joined: December 4th, 2023, 11:08 am

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Ptiolerwud »

balala wrote: December 4th, 2023, 12:57 pm Code, please? Many depends on how you code is looking, so post it please for first.
Posted the code in the previous post
Ptiolerwud
Posts: 5
Joined: December 4th, 2023, 11:08 am

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Ptiolerwud »

Yincognito wrote: December 4th, 2023, 2:40 pm It works for me. I installed the release you mentioned, I clicked the Settings skin > Media Player > WebNowPlaying, I installed the WebNowPlaying extension for the browser I'm using and checked all Adapters + Use Native API in its settings, and all works. If you did the same, it should work for you too.
I did all the same. start music works, but PAUSE doesn't work(((
Ptiolerwud
Posts: 5
Joined: December 4th, 2023, 11:08 am

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Ptiolerwud »

Yincognito wrote: December 4th, 2023, 2:11 pm I don't think this thread belongs to the Bugs and Feature Suggestion section of the forum, it looks like a standard Skin Help topic, so it probably should be moved accordingly. Other than that, please carry on. ;-)
I'm not sure I know how to move this topic((((
User avatar
Yincognito
Rainmeter Sage
Posts: 7179
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: PlayPause does not work in Monstercat for YouTube Music

Post by Yincognito »

Ptiolerwud wrote: December 4th, 2023, 3:20 pm I did all the same. start music works, but PAUSE doesn't work(((
Well, I don't know what else I could suggest, since, as I mentioned, for me these things worked, for an out of the box installation of the skin. :confused:
Ptiolerwud wrote: December 4th, 2023, 3:22 pm I'm not sure I know how to move this topic((((
Yeah, I wasn't asking you to do it. This is something a developer / moderator could do, when he gets the chance. Anyway, it's no rush or something mandatory, it's more about nicely having the topic in the section where it would be logical to have it, that's all.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth