stopStream method
Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with DeleteStreamKey to prevent further streaming to a channel.
May throw AccessDeniedException.
May throw ChannelNotBroadcasting.
May throw ResourceNotFoundException.
May throw StreamUnavailable.
May throw ValidationException.
Parameter channelArn :
ARN of the channel for which the stream is to be stopped.
Implementation
Future<void> stopStream({
required String channelArn,
}) async {
final $payload = <String, dynamic>{
'channelArn': channelArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/StopStream',
exceptionFnMap: _exceptionFns,
);
}