Closed MaximovInk closed 3 years ago
My issue with this is that state is set to always be true, this could then cause collisions since WebNowPlaying will this it is always playing as long as the ready check passes. Given that is see for that the playpause command that you check if it is playing that should be used for the state. (0 is hard stopped (Almost never is this going to happen since at that point the player wont be ready to grab info), 1 is playing, and 2 is paused).
Also there is no need for temp variables to store the info, those can just be returned since the parent script you are returning to handles that.
I did it for myself, but it may suddenly be useful to someone =)
Tested on Firefox and Rainmeter Monstercat visualizer
Support: