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"?

asked 3 years ago195 views
1 Answer
0
Accepted Answer

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

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions