nowplaying
Report the current playback state of a Kodi instance, including media details, without modifying playback.
Instructions
Report what is playing on the target instance without changing anything — also a reachability and state probe. Returns the player-state snapshot { "state", "media", "id", "title", "artist", "time", "totaltime", … }; { "state": "stopped" } when idle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Target Kodi instance. Omitted uses the default ("(null)"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Playback state; "stopped" means nothing is loaded. | |
| type | No | The active player kind. | |
| media | No | Real media type (song/episode/movie/musicvideo/…); "unknown" for an off-library file. | |
| id | No | Library id of the playing item; -1 when off-library. | |
| file | No | Path of the playing item. | |
| label | No | Kodi's display label for the item. | |
| title | No | The item's title (may be empty). | |
| showtitle | No | TV episode: the show's name. | |
| season | No | TV episode: season number. | |
| episode | No | TV episode: episode number. | |
| album | No | Song: the album name. | |
| artist | No | Song: the performers, an array of strings. | |
| track | No | Song: track number on the album. | |
| time | No | Playback position { hours, minutes, seconds, milliseconds }. | |
| totaltime | No | The item's duration, same shape as time. |