Interactive live streaming
Some content is particularly well-suited to interactive delivery, where the audience is providing direct textual feedback or other interaction as the program is happening (livestreamed gaming, for example). In these cases, not only is delivery latency a concern, but also a low-latency mechanism for delivery of feedback in a many-to-one model. Some use cases also call for the ability to have multiple video participants, perhaps in a host and guest or multi-party chat configuration.
The technology used for interactive streaming will have implications on scalability, as technologies used for real-time delivery (e.g. WebRTC) don't usually scale to large audiences. For some workflows, a two-tier participant setup where a subset of users is actively participating while a larger group is watching passively can bridge the gap between a fully-interactive experience and supporting a large audience. Interactive text chat can also be included for an interactive component that can scale higher than real-time streaming.
Reference architecture
-
Live video is captured from mobile or desktop source devices integrated with the Amazon Interactive Video Service (Amazon IVS) Real-Time Streaming broadcast SDK. It is then encoded and sent as an input to an Amazon IVS stage. An encoder device or an application like OBS Studio can also send video.
-
Amazon IVS receives the encoded video through Real Time Messaging Protocol (RTMP) over a TLS/SSL connection (RTMPS), WebRTC-HTTP ingestion protocol (WHIP), or WebRTC.
-
Relevant metadata is sent to a REST API layer for additional storage and processing and to a player. Direct Connect uses a dedicated connection for a secure and low-latency data (REST or WebSocket) transfer between your on-premises studio and AWS.
-
Amazon Elastic Kubernetes Service (Amazon EKS) processes REST APIs and WebSockets for content metadata, lobby or chat, and API functionality. It handles players' API calls and maintains WebSocket connections to players for dealer module messages.
-
Network Load Balancer offers ultralow latencies for latency-sensitive applications to process API communication between players and the application. The timed metadata is sent to the Amazon IVS endpoint.
-
Amazon CloudFront acts as an endpoint for inbound data flow and customer API requests during the video stream.
-
AWS WAF helps protect the endpoints and APIs from distributed denial of service (DDoS) attacks.
-
Players maintain WebSocket connections to the backend API for lobby or chat and game action calls.
-
The Amazon IVS player on the client device receives the video stream and metadata. The video and metadata are sent to client applications running the Amazon IVS broadcast SDK through WebRTC. Your viewers can watch live streams globally through the Amazon IVS content delivery network. The Amazon IVS broadcast SDK optimizes performance, reducing the impact on your app and on user devices.
Configuration notes
-
Visit ivs.rocks
to see a variety of use cases, demos, and partners that can provide turnkey solutions and enhancements for IVS workflows.