Skip to content

This repository contains a basic livestream to video on-demand web application. The app is built on Amazon IVS and uses the Auto-record to S3 feature to automatically record streams. Recorded streams are played back using the Amazon IVS Player SDK.

Notifications You must be signed in to change notification settings

aws-samples/amazon-ivs-auto-record-to-s3-web-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon IVS Auto-record to Amazon S3 Web Demo

This demo web application is an educational tool to show how to use the Auto-record to S3 feature of Amazon IVS to automatically record livestreams, and make them available for on-demand viewing.

2 windows with one showing a livestream and the other showing a recorded livestream

This project is intended for education purposes only and not for production usage.

This is a serverless web application, leveraging Amazon IVS, AWS Lambda, API Gateway, DynamoDB, Amazon S3, and Amazon CloudFront.

Getting Started

*IMPORTANT NOTE: Deploying this demo application in your AWS account will create and consume AWS resources, which will cost money.*

To successfully complete the installation, you will need the following information and resources:

AWS Account and Access

If you don't have an AWS account yet, here's the process for creating one.

AWS uses the Identity and Access Management service to give roles and privileges to users. For your reference, here's AWS guidance on using the IAM service.

The IAM user used to install the IVS R2S3 software will need sufficient permissions to create and manage the following:

  • IAM Roles
  • DynamoDB Tables
  • Lambda Functions
  • API Gateways
  • IVS Channels
  • S3 Buckets
  • CloudFormation Stacks

Other Information and Resources You'll be setting up a number of different things during this process. Here's a short list of the information and resources you'll need to have ready to complete the installation.

  • User names for privileged AWS access.
  • A secure place on your computer you can store the confidential AWS user access credentials (IAM access keys).
  • Names for AWS CLI profiles (usually based on user roles or user identities)
  • A DNS-compliant name for the installation's S3 bucket. The bucket name must be:
    • All lowercase letters or numbers, with dashes allowed (but no other special characters).
    • Between 3 and 63 characters long.
    • Unique across all of Amazon S3 (you may need a couple of tries to create a unique one).
  • A decision as to the AWS Region to be used for the installation.
  • A name for the AWS stack which will be used for the IVS R2S3 infrastructure.

During the installation, you will also generate some unique information which will be used later. To perform these steps, you can use a text editor (such as Notepad) for recording this information and for modifying the example commands provided in the instructions.

Installation Instructions

This demo must be installed in an AWS account using the Serverless installation files. Please view the README.md file in the serverless folder for detailed installation instructions. This file provides guidance for using the AWS service consoles, the CloudShell console or the AWS CLI application for installing the software.

After the serverless installation is complete, follow the instructions in the README.md file in the web-ui folder to configure the client application.

Amazon IVS Documentation

Known Issues

  • The Amazon IVS channel used in this demo must be named IVS-Channel.
  • Because of the distributed nature of Amazon CloudFront, you may get 403 or 404 errors if you try to use this application before CloudFront has completed its propagation to all EDGE locations. This may take up to a few hours.
  • The application was written for demonstration purposes and not for production use.
  • Currently only tested in the us-west-2 (Oregon) region. Additional regions may be supported depending on service availability.
  • Thumbnail selection in the admin panel is not working as expected.
  • Deleting a vod in the UI does not delete the corresponding m3u8 playlist files or thumbnails in the S3 bucket. To remove files, follow the instructions in the Serverless README.

License

This sample code is made available under a modified MIT license. See the LICENSE file.

About

This repository contains a basic livestream to video on-demand web application. The app is built on Amazon IVS and uses the Auto-record to S3 feature to automatically record streams. Recorded streams are played back using the Amazon IVS Player SDK.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks