# radio.4000.broadcast

> Published by [4000.radio](https://lexicon.garden/identity/did:plc:hd34khf6wifegm23c2u3cv2d)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.broadcast)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.broadcast/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.broadcast/examples)

## Definitions

### `radio.4000.broadcast#deck`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `playing` | `boolean` | Yes |  |
| `positionAt` | `string` (datetime) | Yes |  |
| `positionMs` | `integer` | Yes | Playback position in milliseconds at positionAt. |
| `speed` | `integer` | No | Playback rate in percent. |
| `title` | `string` | No |  |
| `track` | `string` (at-uri) | No | The radio.4000.track record playing, when the media has one. |
| `url` | `string` (uri) | Yes |  |

### `radio.4000.broadcast`

**Type**: `record`

What a radio plays live, deck by deck. Exists only while broadcasting; updatedAt doubles as a heartbeat.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `decks` | `array` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "deck": {
      "properties": {
        "playing": {
          "type": "boolean"
        },
        "positionAt": {
          "format": "datetime",
          "type": "string"
        },
        "positionMs": {
          "description": "Playback position in milliseconds at positionAt.",
          "minimum": 0,
          "type": "integer"
        },
        "speed": {
          "default": 100,
          "description": "Playback rate in percent.",
          "maximum": 400,
          "minimum": 25,
          "type": "integer"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "track": {
          "description": "The radio.4000.track record playing, when the media has one.",
          "format": "at-uri",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "url",
        "positionMs",
        "positionAt",
        "playing"
      ],
      "type": "object"
    },
    "main": {
      "description": "What a radio plays live, deck by deck. Exists only while broadcasting; updatedAt doubles as a heartbeat.",
      "key": "literal:self",
      "record": {
        "properties": {
          "decks": {
            "items": {
              "ref": "#deck",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "decks",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "radio.4000.broadcast",
  "lexicon": 1
}
```
