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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南