StopStream
Source:
src/AWS/IVS/StopStream.ts
Runtime binding for ivs:StopStream.
Disconnects the incoming RTMPS broadcast on the bound Channel.
Fails with the typed ChannelNotBroadcasting tag when the channel is
not live. Many broadcast clients auto-reconnect, so to stop a stream
permanently, first delete or rotate the channel’s stream key. The
channel ARN is injected from the binding. Provide the implementation
with Effect.provide(AWS.IVS.StopStreamHttp).
Controlling Live Streams
Section titled “Controlling Live Streams”// init — bind the operation to the channelconst stopStream = yield* AWS.IVS.StopStream(channel);
// runtimeyield* stopStream().pipe( Effect.catchTag("ChannelNotBroadcasting", () => Effect.void),);