Amazon MediaConnect · JSON Structure

Mediaconnect Api Add Media Stream Request Structure

The media stream that you want to add to the flow.

Type: object Properties: 7 Required: 3
BroadcastingLive VideoMediaMedia Transport

AddMediaStreamRequest is a JSON Structure definition published by Amazon MediaConnect, describing 7 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Attributes ClockRate Description MediaStreamId MediaStreamName MediaStreamType VideoFormat

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-mediaconnect/refs/heads/main/json-structure/mediaconnect-api-add-media-stream-request-structure.json",
  "name": "AddMediaStreamRequest",
  "type": "object",
  "description": "The media stream that you want to add to the flow.",
  "properties": {
    "Attributes": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MediaStreamAttributesRequest"
        },
        {
          "xml": {
            "name": "attributes"
          },
          "description": "The attributes that you want to assign to the new media stream."
        }
      ]
    },
    "ClockRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__integer"
        },
        {
          "xml": {
            "name": "clockRate"
          },
          "description": "The sample rate (in Hz) for the stream. If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000."
        }
      ]
    },
    "Description": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__string"
        },
        {
          "xml": {
            "name": "description"
          },
          "description": "A description that can help you quickly identify what your media stream is used for."
        }
      ]
    },
    "MediaStreamId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__integer"
        },
        {
          "xml": {
            "name": "mediaStreamId"
          },
          "description": "A unique identifier for the media stream."
        }
      ]
    },
    "MediaStreamName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__string"
        },
        {
          "xml": {
            "name": "mediaStreamName"
          },
          "description": "A name that helps you distinguish one media stream from another."
        }
      ]
    },
    "MediaStreamType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MediaStreamType"
        },
        {
          "xml": {
            "name": "mediaStreamType"
          },
          "description": "The type of media stream."
        }
      ]
    },
    "VideoFormat": {
      "allOf": [
        {
          "$ref": "#/components/schemas/__string"
        },
        {
          "xml": {
            "name": "videoFormat"
          },
          "description": "The resolution of the video."
        }
      ]
    }
  },
  "required": [
    "MediaStreamType",
    "MediaStreamId",
    "MediaStreamName"
  ]
}