Channel
Source:
src/AWS/IVS/Channel.ts
An Amazon IVS (Interactive Video Service) channel for low-latency live video streaming.
A channel stores configuration for broadcasting live streams: broadcast
software sends video to the channel’s ingestEndpoint (authenticated
with a StreamKey) and viewers watch via the channel’s playbackUrl.
Creating Channels
Section titled “Creating Channels”Basic Channel
import * as IVS from "alchemy/AWS/IVS";
const channel = yield* IVS.Channel("LiveChannel");Basic Low-Cost Channel
const channel = yield* IVS.Channel("LiveChannel", { type: "BASIC", latencyMode: "NORMAL",});Private Channels
Section titled “Private Channels”const channel = yield* IVS.Channel("PrivateChannel", { authorized: true,});Streaming
Section titled “Streaming”const channel = yield* IVS.Channel("LiveChannel");const streamKey = yield* IVS.StreamKey("LiveKey", { channelArn: channel.channelArn,});// broadcast to rtmps://{channel.ingestEndpoint}:443/app/ with streamKey.value