# place.stream.ingest.defs

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

## #ingest (`place.stream.ingest.defs#ingest`)

Type: object

An ingest URL for a Streamplace station.

### Properties

- `type` (string, required): The type of ingest endpoint, currently 'rtmp' and 'whip' are supported.
- `url` (string · uri, required): The URL of the ingest endpoint.

## #problem (`place.stream.ingest.defs#problem`)

Type: object

Something the streamer should fix about how they're connected.

### Properties

- `code` (string, required): Stable identifier for the kind of problem.
  - Constraints: knownValues: deprecated_ingest_host
- `link` (string · uri): Where to read more.
- `message` (string, required): What's wrong and how to fix it, for the streamer.
- `severity` (string, required)
  - Constraints: knownValues: error | warning | info

## #problems (`place.stream.ingest.defs#problems`)

Type: object

The problems a node currently sees with how a streamer is connected to it, sent over the livestream websocket whenever they change. An empty list clears earlier ones.

### Properties

- `problems` (array, required)
  - `items` (ref)
    - Reference: `#problem`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "ingest": {
      "description": "An ingest URL for a Streamplace station.",
      "properties": {
        "type": {
          "description": "The type of ingest endpoint, currently 'rtmp' and 'whip' are supported.",
          "type": "string"
        },
        "url": {
          "description": "The URL of the ingest endpoint.",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "url"
      ],
      "type": "object"
    },
    "problem": {
      "description": "Something the streamer should fix about how they're connected.",
      "properties": {
        "code": {
          "description": "Stable identifier for the kind of problem.",
          "knownValues": [
            "deprecated_ingest_host"
          ],
          "type": "string"
        },
        "link": {
          "description": "Where to read more.",
          "format": "uri",
          "type": "string"
        },
        "message": {
          "description": "What's wrong and how to fix it, for the streamer.",
          "type": "string"
        },
        "severity": {
          "knownValues": [
            "error",
            "warning",
            "info"
          ],
          "type": "string"
        }
      },
      "required": [
        "code",
        "message",
        "severity"
      ],
      "type": "object"
    },
    "problems": {
      "description": "The problems a node currently sees with how a streamer is connected to it, sent over the livestream websocket whenever they change. An empty list clears earlier ones.",
      "properties": {
        "problems": {
          "items": {
            "ref": "#problem",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "problems"
      ],
      "type": "object"
    }
  },
  "id": "place.stream.ingest.defs",
  "lexicon": 1
}
```
