Create Stream Smil
This setting is available in the streaming(RTMP) resource type.
Method | URL |
---|---|
POST | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}/stream |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
stream_name | stream_name must be in the range of 3- 255 characters. | String | Yes |
smils | It is used to determine the quality of the broadcast according to the status of the Internet connection. | Object | Yes |
smils.smil_name | smils.smil_name must be maximum of 255 characters. | String | Yes |
smils.qualities | Streams are generally created in three different qualities. | Array | Yes |
smils.qualities.video_bitrate | Specifies the video bitrate quality. | Integer | Yes |
smils.qualities.audio_bitrate | Specifies the audio bitrate quality. | Integer | Yes |
smils.qualities.height | Sets the height of the quality in the smil file. | Integer | Yes |
smils.qualities.widht | Sets the widht of the quality in the smil file. | Integer | Yes |
Payload
{
"stream_name": "stream-smil-test001",
"smils": [
{
"smil_name": "stream-smil-name001",
"qualities": [
{
"video_bitrate": 400000,
"audio_bitrate": 96000,
"width": 640,
"height": 360
},
{
"video_bitrate": 800000,
"audio_bitrate": 96000,
"width": 854,
"height": 480
},
{
"video_bitrate": 1200000,
"audio_bitrate": 96000,
"width": 1280,
"height": 720
}
]
},
{
"smil_name": "stream-smil-name002",
"qualities": [
{
"video_bitrate": 300000,
"audio_bitrate": 96000,
"width": 320,
"height": 180
},
{
"video_bitrate": 600000,
"audio_bitrate": 96000,
"width": 500,
"height": 360
}
],
"is_delete": false
}
]
}