Motion
Get Motion

ReferenceScripting APIMotionMedia

MotionMedia

interface

What's playing on the desktop (scene.media), as its media session says.

NameMotionMedia
Kindinterface
Script reaches it asMotionScene.media · MotionEvents.media
Since0.3

Syntax

interface MotionMedia { … }

Properties

NameTypeDescription
playingpropertyreadonly booleanWhether it's playing (not paused).
titlepropertyreadonly stringThe track's title.
artistpropertyreadonly stringWho it's by.
albumpropertyreadonly stringThe album.
artpropertyreadonly stringIts cover, as a picture a layer can show ("" for none): never its bytes.
positionpropertyreadonly numberWhere it was when the desktop last said, seconds (scene.mediaPosition() goes on from it).
lengthpropertyreadonly numberHow long it is, seconds (0 when not known).
updatedpropertyreadonly numberWhen the desktop last said, ms since 1970.
playerpropertyreadonly stringThe player playing it.