Code Monkey home page Code Monkey logo

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

View Code? Open in Web Editor NEW
17.0 16.0 8.0 644 KB

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.

Home Page: https://ivs.rocks/examples

JavaScript 70.71% HTML 1.76% CSS 27.53%
react javascript aws video aws-lambda amazon-s3 amazon-cloudfront cloudfront s3 serverless

amazon-ivs-auto-record-to-s3-web-demo's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.