# place.stream.media.track

> Published by [did:web:stream.place](https://lexicon.garden/identity/did:web:stream.place)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.track)
- [Documentation](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.track/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.media.track/examples)

## Definitions

### `place.stream.media.track`

**Type**: `record`

A track for a video stream, either part of the source or a custom additional track. One of: video, audio, subtitles.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `track` | `union` | Yes |  |
| `video` | `string` (at-uri) | No | If this is a derived track like a transcode or a transcript, what was the source place.stream.video? |
| `metadata` | `union` | No |  |
| `parentTrack` | `ref` → `com.atproto.repo.strongRef` | No | If this is a derived track like a transcode or a transcript, what was the parent track? |

### `place.stream.media.track#trackView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `author` | `ref` → `app.bsky.actor.defs#profileViewBasic` | Yes |  |
| `record` | `unknown` | Yes |  |

### `place.stream.media.track#commonMetadata`

**Type**: `object`

Metadata common to all media types. Contains subobjects for other media types.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `audio` | `ref` → `place.stream.segment#audio` | No |  |
| `video` | `ref` → `place.stream.segment#video` | No |  |
| `language` | `string` | No | IETF BCP 47 language tag corresponding to the content of this track |
| `durationMs` | `integer` | No | duration of this track in milliseconds |

## Raw Schema

```json
{
  "id": "place.stream.media.track",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "track"
        ],
        "properties": {
          "track": {
            "refs": [
              "place.stream.media.defs#muxlTrack"
            ],
            "type": "union"
          },
          "video": {
            "type": "string",
            "format": "at-uri",
            "description": "If this is a derived track like a transcode or a transcript, what was the source place.stream.video?"
          },
          "metadata": {
            "refs": [
              "place.stream.media.track#commonMetadata"
            ],
            "type": "union"
          },
          "parentTrack": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "If this is a derived track like a transcode or a transcript, what was the parent track?"
          }
        }
      },
      "description": "A track for a video stream, either part of the source or a custom additional track. One of: video, audio, subtitles."
    },
    "trackView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "record"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "author": {
          "ref": "app.bsky.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "record": {
          "type": "unknown"
        }
      }
    },
    "commonMetadata": {
      "type": "object",
      "properties": {
        "audio": {
          "ref": "place.stream.segment#audio",
          "type": "ref"
        },
        "video": {
          "ref": "place.stream.segment#video",
          "type": "ref"
        },
        "language": {
          "type": "string",
          "description": "IETF BCP 47 language tag corresponding to the content of this track"
        },
        "durationMs": {
          "type": "integer",
          "description": "duration of this track in milliseconds"
        }
      },
      "description": "Metadata common to all media types. Contains subobjects for other media types."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
