Action - Init Variables Media Session (Experimental)
The action Init Variables Media Session (Experimental) fills the information of the media session of the specified media player into variables.
Examples:
- Check if Google Play Music is playing a track.
Settings
Package Names
The name of the media player to check. Glob patterns (*, ?) are supported. Variables are supported.
A variable is a container for a value that can be used in many actions and conditions to dynamically define a part of a text.
See action Script for a description.
See action Script for a description.
Supplied Variables
playback_statecurrent state (0=none, 1=stopped, 2=paused, 3=playing, 4=fast forwarding, 5=rewinding, 6=buffering, 7=error, 8=connecting, 9=skip to previous, 10=skip to next, 11=skip to item in queue)
playback_positioncurrent position in ms
titlethe title
subtitlethe subtitle
descriptionthe description
iconthe current image
icon_urithe URI to load the image
media_durationduration of the track in ms