# place.stream.media.track

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

- Kind: record
- Record key: tid
- Authority: media.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.track)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.track/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.media.track/analytics)

## Record (`place.stream.media.track`)

Type: record · key tid

### Properties

- `metadata` (union)
  - One of: `place.stream.media.track#commonMetadata`
- `parentTrack` (ref): If this is a derived track like a transcode or a transcript, what was the parent track?
  - Reference: `com.atproto.repo.strongRef`
- `track` (union, required)
  - One of: `place.stream.media.defs#muxlTrack`
- `video` (string · at-uri): If this is a derived track like a transcode or a transcript, what was the source place.stream.video?

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

Type: object

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

### Properties

- `audio` (ref)
  - Reference: `place.stream.segment#audio`
- `durationMs` (integer): duration of this track in milliseconds
- `language` (string): IETF BCP 47 language tag corresponding to the content of this track
- `video` (ref)
  - Reference: `place.stream.segment#video`

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

Type: object

### Properties

- `author` (ref, required)
  - Reference: `app.bsky.actor.defs#profileViewBasic`
- `cid` (string · cid, required)
- `record` (unknown, required)
- `uri` (string · at-uri, required)

## Schema

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