Skip to content

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).

// init — bind the operation to the channel
const stopStream = yield* AWS.IVS.StopStream(channel);
// runtime
yield* stopStream().pipe(
Effect.catchTag("ChannelNotBroadcasting", () => Effect.void),
);