API Reference - Media.GetCurrentTrack()
Media.GetCurrentTrack()
Media.GetCurrentTrack()
Description | Gets the current track number. |
Response | Number Current Track number if there is one, else returns error state. |
Parameter | Void |
Example
1
2
3
4
5
6
7
//Check the state of the media
if (Media.GetMediaState() === 2) {
// Media currently playing
var tracknumber = Media.GetCurrentTrack()
}
*Appeared in Software version 30.10.10.00