resetChannelState
inline suspend fun MediaPackageV2Client.resetChannelState(crossinline block: ResetChannelStateRequest.Builder.() -> Unit): ResetChannelStateResponse
Resetting the channel can help to clear errors from misconfigurations in the encoder. A reset refreshes the ingest stream and removes previous content.
Be sure to stop the encoder before you reset the channel, and wait at least 30 seconds before you restart the encoder.
Samples
fun main() {
//sampleStart
// Reset a Channel
val resp = mediaPackageV2Client.resetChannelState {
channelGroupName = "exampleChannelGroup"
channelName = "exampleChannel"
}
//sampleEnd
}