NowPlaying measure
Measure=NowPlaying
retrieves information about the currently playing track from a number of media players.
Note: NowPlaying was previously a plugin measure.
In many existing skins you might see the syntax:
[MeasureParent] |
NowPlaying still works with those forms, and changing existing skins to the new Measure=NowPlaying
syntax is entirely optional. However, new skins created going forward should use the correct syntax for accuracy and clarity. NowPlaying is a measure, and not a plugin.
[MeasureParent] |
Options
- General measure options
- All general measure options are valid.
PlayerName
-
Can be either:
- The player interface name (e.g.
PlayerName=iTunes
) - Or the name of another measure (e.g.
PlayerName=[MainMeasure]
)
- The player interface name (e.g.
PlayerType
-
Type of the measure value. Valid values are:
Artist
: Track artist.Album
: Current album.Title
: Track title.Number
: Track number.Year
: Track year.Genre
: Track genre.Cover
: Path to cover art.File
: Path to the playing media file.Duration
: Total length of track in seconds.Lyrics
: Lyrics for track, downloaded fromLetras
Position
: Current position in track in seconds.Progress
: Percentage of track completed.Rating
: Rating of current track (0 to 5).Repeat
: 0 if repeat/loop track is off, 1 if on.Shuffle
: 0 if shuffle/random tracks is off, 1 if on.State
: 0 for stopped, 1 for playing, and 2 for paused.Status
: 0 for inactive (player closed) and 1 for active (player open).Volume
: From 0 to 100.
Notes:
With measures of typeDuration
orPosition
, the string value is in the formMM:SS
and the number value is the actual number of seconds.
TheLyrics
type will detect and use both theArtist
andTitle
values found for the .mp3 file in its ID3 tags, and will search https://www.letras.mus.br for the lyrics, returning the first match. No match is possible if both Artist and Title are not present in the ID3 tags for the .mp3 file.
ThePlayerType=Genre
option is currently supported with the AIMP, CAD, iTunes, WMP and WinAmpPlayerName
values. PlayerPath
-
If defined, used to launch the player with the
OpenPlayer
command. If not defined, the plugin will attempt to automatically detect the path. TrackChangeAction
- Action to execute when the track changes.
DisableLeadingZero
Default:0
-
If set to
1
, the format of Duration and Position isM:SS
instead ofMM:SS
. This option must be set on the main measure.
Bangs
NowPlaying measures can be controlled with the !CommandMeasure bang with the argument parameter being:
Pause
: Pause current track.Play
: Play current track.PlayPause
: Play (if stopped/paused) or pause (if playing) current track.Stop
: Stop current track.Next
: Change to next track.Previous
: Change to previous track.OpenPlayer
: Opens the player. If already open, the player will be brought to the top.ClosePlayer
: Closes the player.TogglePlayer
: Opens/closes the player depending on current state.SetPosition n
: Where n is either an absolute value (SetPosition 50
to jump to 50% of the track) or a relative value (SetPosition +5
to jump 5% forward orSetPosition -10
to jump 10% backward).SetRating n
: Where n is a value between0
(no rating) and5
(maximum rating).SetShuffle n
: Where n is1
(shuffle on),0
(shuffle off), or-1
(toggle shuffle).SetRepeat n
: Where n is1
(repeat on),0
(repeat off), or-1
(toggle repeat).SetVolume n
: Where n is either an absolute value (SetVolume 50
to set volume to 50%) or a relative value (SetVolume +20
to increase volume by 20% orSetVolume -40
to decrease volume by 40%).
Note: On partially supported players, as well as players not listed here, the MediaKey measure can be used to substitute some of the bangs listed above.
Fully supported players
The following players are fully supported. All features should work unless stated otherwise.
- AIMP:
PlayerName=AIMP
Fully supported. Tested with AIMP 5.00. - foobar2000:
PlayerName=CAD
Fully supported. The foo_cad plugin (download) needs to be installed. - iTunes:
PlayerName=iTunes
Fully supported. Tested with iTunes 10.2. - J. River Media Center and Media Jukebox:
PlayerName=CAD
Fully supported through the CAD interface with Media Center 19 and later. More information here. - MusicBee:
PlayerName=CAD
Fully supported. MusicBee 1.2 (or higher) is required. - Winamp:
PlayerName=Winamp
Fully supported. - WMP:
PlayerName=WMP
Fully supported, except for theRepeat
/Shuffle
types.
Partially supported players
The following players are partially supported. Only some features will work.
- Spotify:
PlayerName=Spotify
Partially supported. Only the typesArtist
,Title
and the bangsPlay
,PlayPause
,Stop
,Next
, andPrevious
are available. - Last.fm Client, TTPlayer, OpenPandora, Zune:
PlayerName=WLM
Partially supported. Even in the best case, only the typesTitle
,Artist
,Album
and the bangsPlay
,Pause
,PlayPause
,Next
,Previous
,Stop
are supported.
Example
For a more complete example, check the Soita skin.
[Rainmeter] |