# social.twinkl.actor.profileMusic

> Published by [kandake.africa](https://lexicon.garden/identity/did:plc:lrphxvv25aibthe7xoc2eeyy)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lrphxvv25aibthe7xoc2eeyy/social.twinkl.actor.profileMusic)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lrphxvv25aibthe7xoc2eeyy/social.twinkl.actor.profileMusic/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lrphxvv25aibthe7xoc2eeyy/social.twinkl.actor.profileMusic/examples)

## Definitions

### `social.twinkl.actor.profileMusic`

**Type**: `record`

Songs that play when someone visits the actor's home page, sourced from plyr.fm.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tracks` | `array` | Yes |  |
| `autoplay` | `boolean` | No | Whether playback should begin automatically on visit (subject to browser autoplay policies). |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | No |  |

### `social.twinkl.actor.profileMusic#trackRef`

**Type**: `object`

Reference to a plyr.fm track.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `src` | `string` (uri) | Yes | plyr.fm track URL or AT-URI of the fm.plyr track record. |
| `title` | `string` | No |  |
| `artist` | `string` | No |  |

## Raw Schema

```json
{
  "id": "social.twinkl.actor.profileMusic",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "tracks",
          "createdAt"
        ],
        "properties": {
          "tracks": {
            "type": "array",
            "items": {
              "ref": "#trackRef",
              "type": "ref"
            },
            "maxLength": 25
          },
          "autoplay": {
            "type": "boolean",
            "default": false,
            "description": "Whether playback should begin automatically on visit (subject to browser autoplay policies)."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "Songs that play when someone visits the actor's home page, sourced from plyr.fm."
    },
    "trackRef": {
      "type": "object",
      "required": [
        "src"
      ],
      "properties": {
        "src": {
          "type": "string",
          "format": "uri",
          "description": "plyr.fm track URL or AT-URI of the fm.plyr track record."
        },
        "title": {
          "type": "string",
          "maxLength": 1000
        },
        "artist": {
          "type": "string",
          "maxLength": 1000
        }
      },
      "description": "Reference to a plyr.fm track."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
