It is currently July 27th, 2021, 3:12 pm

Music Player

Media controls, music players, video and animated visualizers
Judian81
Posts: 24
Joined: May 6th, 2021, 2:57 pm

Music Player

Post by Judian81 »

Hello Rainmeter People,

I am working on a music player. And I try to make uses of everything that is possible.
The things you can make use from are.

Supported:
See the artist, album and song name.
See the duration and progress of a song.
Play and pauze the music.
Go to next song and backwards.
See the cover of the album.
You can switch and control between players life.
You can use winamp, spotify, windows media player, itunes and aimp.
You can switch from audio devices.*
Mute the device that is playing.
See the level of sound of the audio device.
You can change the volume.
When pressing on the title you go to control panel audio devices.
You can change the position of the song that is playing.
There is a visualisation in the album cover section. "The visualizer is cut off from the end to fit in the album cover."
It is possible to watch movie files in the music player.
The playing video file is muted, so you do not hear two different things together.
Can not or problems:
Spotify do not show album name.
Spotify do not show the song length.
Spotify do not show how long the song is playing.
Spotify do not let us see the song cover.
when playing itunes in combination with this skin, changing from devices are not going to happen.
In combination with this skin you can not end itunes without a popup that it is still in use.
Playing video album is missing.
There is a lot of lagg when watching a music video.
*In Windows 10 you can go to audio devices. And name the device like "Headset" or "Kitchen Speakers". If you do not give the audio devices your own name. It could be possible the names are the same. Then you could not see the difference when switching devices.
I personally use it for switching from speakers to headset. You can press on the title to config your sound device.


The plugins I use are.
-Mouse plugin.
https://github.com/NighthawkSLO/Mouse.dll/releases
-AudioAnalyzer plugin.
https://github.com/d-uzlov/Rainmeter-Plugins-by-rxtd/releases
-Rainmeter-Video addon.
https://github.com/Judian81/Rainmeter-Video/releases/
-RBTray program. (to minimize programs to system tray)*
http://rbtray.sourceforge.net/

*winamp you have to minimize to system tray with [left mouse button] + [shift] on minimize icon.

there are two versions:


this is the music player with a vizualizer build in. It is a complete package. (RBTray not included)
music player v0.4.png
Music Player_v0.4 stable.rmskin


this one is without vizualizer but there is a video extention build in. It is a complete package. (RBTray not included)
music player v0.7.png
Music Player_v0.76.rmskin

Hope you enjoy my code.
You do not have the required permissions to view the files attached to this post.
Last edited by Judian81 on July 27th, 2021, 3:39 am, edited 10 times in total.
windows 10
Judian81
Posts: 24
Joined: May 6th, 2021, 2:57 pm

Re: Music Player

Post by Judian81 »

Code: Select all

[mfilepath]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[Wplayer]
PlayerType=File

[VideoFilePath]
Meter=String
MeasureName=mfilepath
X=10
Y=193
W=188
H=188
ClipString=2
Text=%1
LeftMouseUpAction=["C:\Users\*\source\repos\video cast\video cast\bin\Debug\video cast.exe" "%1"]
can someone help me out?
i made a exe file with a window media player object. and want to play a video file that is already playing in winamp or some other players.
i want to play it with the mute option because the video is already playing.
but when i say %1 the exe file does not get the real file info. and just gets %1 or if there is Text it just get Text.
windows 10
User avatar
jsmorley
Developer
Posts: 21976
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Music Player

Post by jsmorley »

Judian81 wrote: July 13th, 2021, 8:08 pm

Code: Select all

[mfilepath]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[Wplayer]
PlayerType=File

[VideoFilePath]
Meter=String
MeasureName=mfilepath
X=10
Y=193
W=188
H=188
ClipString=2
Text=%1
LeftMouseUpAction=["C:\Users\*\source\repos\video cast\video cast\bin\Debug\video cast.exe" "%1"]
can someone help me out?
i made a exe file with a window media player object. and want to play a video file that is already playing in winamp or some other players.
i want to play it with the mute option because the video is already playing.
but when i say %1 the exe file does not get the real file info. and just gets %1 or if there is Text it just get Text.

While I have no idea if this skin works at all, I can help you address the specific issue you raise.

The %1 token for the value of MeasureName is not available inside an action on a meter. You will have to use the value of the measure as a section variable like:

LeftMouseUpAction=["C:\Users\*\source\repos\video cast\video cast\bin\Debug\video cast.exe" "[&mfilepath]"]
DynamicVariables=1
Judian81
Posts: 24
Joined: May 6th, 2021, 2:57 pm

Re: Music Player

Post by Judian81 »

jsmorley wrote: July 13th, 2021, 8:39 pm LeftMouseUpAction=["C:\Users\*\source\repos\video cast\video cast\bin\Debug\video cast.exe" "[&mfilepath]"]
DynamicVariables=1
wow, thanks. this realy helps. i am busy to add video animation in the music player.

this is a preview for whats comming.

music player video extention.png
the things i can do is change video in winamp and the 'video cast.exe' get triggert by rainmeter and then plays the right video.
i can go to next song and back. change position.

i only have to make something in rainmeter that when i move the window the 'video cast.exe' gets the right top and left and width and height.

one downsite is. the video is never in sync with the real one that is played in winamp. so lip reading is out of line. there for i disabled making video in fullscreen. its then best to just do so with winamp itself.
You do not have the required permissions to view the files attached to this post.
Last edited by Judian81 on July 18th, 2021, 5:09 pm, edited 1 time in total.
windows 10
User avatar
death.crafter
Posts: 501
Joined: April 24th, 2021, 8:13 pm

Re: Music Player

Post by death.crafter »

Judian81 wrote: July 14th, 2021, 4:04 am
music player video extention.png
Video player in Rainmeter. Nice.
from the Realm of Death
My Current Desktop
Judian81
Posts: 24
Joined: May 6th, 2021, 2:57 pm

Re: Music Player

Post by Judian81 »

I have made a skin package with all the files included.

if you want to compile it yourself the code is here:
-https://github.com/Judian81/video-cast



i know there are some bugs still there. if you want you can shoot if you wish.

one hint is. if you refresh the skin the exe file will be right there to fit in on it place.
Last edited by Judian81 on July 20th, 2021, 4:35 pm, edited 1 time in total.
windows 10
Judian81
Posts: 24
Joined: May 6th, 2021, 2:57 pm

Re: Music Player

Post by Judian81 »

i am now developing the video extention.
when i start the skin the extention will placed precies in the empty space of the player.

but i have a problem. when moving the skin to another place. the extention just stay were is was.

then when refreshing the skin. the code below is called and the extention sits in the right place.

Code: Select all

[Rainmeter]
Update=17
OnRefreshAction=[!UpdateMeter "MeterProgressBarRight"][!Redraw]["#debugpath#" "[&mfilepath]" "[&WPPosition]" #CURRENTCONFIGX# #CURRENTCONFIGY#  "188" "188" "[&mStateButton]" "[&mCover]" "[&WPDuration]"]

[Variables]
debugpath="#CURRENTPATH#Extension\video cast.exe"
so i want to know. how can capture when a skin is moving to another place?
windows 10