Open topic with navigation

# AddStream

Creates a new rolling buffer.

You must specify a name for the new rolling buffer. You can also set other values such as the path where the video is stored and the amount of storage to use. If you do not specify these settings the default values set in the rolling buffer configuration file are used instead.

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`MaxFiles` | The maximum number of files to write in the rolling buffer. The number of files multiplied by the maximum file size gives the total amount of storage. | No
`MaxFileSizeMB` | The maximum size in megabytes of a file in the rolling buffer. The number of files multiplied by the maximum size gives the total amount of storage. | No
`MediaSegmentTemplate` | A template to use to construct the URL of every media segment in a playlist. The value to use depends on how you have configured the web server that serves video from your rolling buffer. | No
`Name` | (Deprecated, use `Stream` instead). The name for the new rolling buffer (names are case-insensitive). Valid characters are a-z, A-Z, 0-9, underscore (`_`), plus sign (`+`), and hyphen (`-`). | Yes
`RootPath` | The path of the directory to contain the files for this rolling buffer. | No
`Stream` | The name for the new rolling buffer (names are case-insensitive). Valid characters are a-z, A-Z, 0-9, underscore (`_`), plus sign (`+`), and hyphen (`-`). | Yes
`VariantSegmentTemplate` | A template to use to construct the URL of every `GetPlaylist` action that is produced by Media Server. | No

## Example

    http://localhost:14000/action=AddStream&stream=news
                                           &maxfiles=5
                                           &maxfilesizemb=500

## Response

    <autnresponse>
      <action>ADDSTREAM</action>
      <response>SUCCESS</response>
      <responsedata></responsedata>
    </autnresponse>

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm