Updating channel configurations via the SDK

0

Hi there,

One of the more challenging parts of the MediaLive API for me thus far has been the task of updating a Channel.

Say I want to take an existing channel and make a request to add another type of output to it. This means I will need to build another OutputGroup in my code, and also traverse the existing configuration to update AudioDescription objects, VideoDescription objects, and OutputDestinations in order to make an acceptable "updateChannel" request against the API.

Is there a simpler way of using the API to make high-level changes, such as "add an output" or "remove an output"?

已提问 3 年前200 查看次数
1 回答
0
已接受的回答

chrisatmb

At this time the SDK (and API) does not have a shortcut option to update a channel with a new output group or new output to an existing output group. As you've seen, the current method is to perform a describeChannel to obtain the current channel configuration for the channel, update the config, and then push the new complete, updated channel config with the updateChannel option to the channel.

Regards

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则