# Now playing OG image template

A player screen: the album art blurred into the background, the sleeve with its record sliding out and a scrubber with times and transport buttons.

- Slug: `now-playing`
- Preview (real render): https://shareglint.com/storage/template-previews/now-playing.jpg
- Page: https://shareglint.com/en/templates/now-playing

For music apps, radio stations, DJs and playlist curators sharing the current track, and for profile READMEs. The elapsed time is worked out from `progress` and a `duration` like 3:41 or 1:02:15; a duration in another form is shown as given without it. Progress is clamped, so the knob never leaves the bar, and a long track title shrinks to fit. Without `album_art` the sleeve becomes an accent tile with a note and the background a soft accent glow. Wide frames put the sleeve beside the track; square and vertical frames centre everything under a larger sleeve, like a phone player.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `track` | text | Track title, the largest text. (default: Track title) | Afterglow Avenue |
| `artist` | text | Artist name under the title. | Lumen Harbor |
| `album_art` | image URL | Album cover, square; also blurred into the background. | https://example.com/images/b09-album-neon.png |
| `progress` | text | How far the track has played, from 0 to 1 (0.42), or a percentage (42 or 42%). (default: 0.4) | 0.42 |
| `duration` | text | Track length, e.g. 3:41; the elapsed time on the left is computed from it. | 3:41 |
| `platform` | text | Station, app or playlist name next to the equaliser, e.g. Aurora Radio. | Aurora Radio |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #e879f9) | #e879f9 |
| `theme` | dark | light | Colour scheme: dark or light. | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "now-playing",
    "modifications": {
        "track": "Afterglow Avenue",
        "artist": "Lumen Harbor",
        "progress": "0.42",
        "duration": "3:41",
        "platform": "Aurora Radio",
        "album_art": "https://example.com/images/b09-album-neon.png"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/now-playing/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
