# place.stream.live.subscribeSegments

> Subscribe to a stream's new segments as they come in!

- Kind: subscription
- Authority: live.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.live.subscribeSegments)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.live.subscribeSegments/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.live.subscribeSegments/analytics)

## Subscription (`place.stream.live.subscribeSegments`)

Type: subscription · WebSocket

### Parameters (query string)

- `streamer` (string, required): The DID of the streamer to subscribe to

### Messages (DAG-CBOR frames)

- `#segment` (bytes): MP4 file of a user's signed livestream segment

## #segment (`place.stream.live.subscribeSegments#segment`)

Type: bytes

MP4 file of a user's signed livestream segment

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Subscribe to a stream's new segments as they come in!",
      "errors": [],
      "message": {
        "schema": {
          "refs": [
            "#segment"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "properties": {
          "streamer": {
            "description": "The DID of the streamer to subscribe to",
            "type": "string"
          }
        },
        "required": [
          "streamer"
        ],
        "type": "params"
      },
      "type": "subscription"
    },
    "segment": {
      "description": "MP4 file of a user's signed livestream segment",
      "type": "bytes"
    }
  },
  "id": "place.stream.live.subscribeSegments",
  "lexicon": 1
}
```
