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

gefragt vor 3 Jahren200 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen