Amazon IVS Basic Player Demos
This repository contains a collection of plain JavaScript code samples, covering several basic Amazon IVS use cases.
This project is intended for education purposes only and not for production usage.
Demos
:bulb: Custom Player Controls
Shows how to leverage Amazon IVS's playerSDK APIs to implement custom player controls (Play/Pause, Mute/Unmute, Quality selection).
:bulb: Simple Quiz
Shows how to leverage Amazon IVS's TimedMetadata API to display a basic Quiz interface. Read more about how to add live video to your apps and websites.
:bulb: Multiple Players
Shows how to instantiate multiple Amazon IVS players simultaneously.
:bulb: Minimal Player Setup
Shows a minimal way to implement the Amazon IVS PlayerSDK.
:bulb: Video.js Integration
Shows how to use the Amazon IVS PlayerSDK with Video.js.
:bulb: Ambiance Canvas
A demo showing how you can achieve an "ambilight" effect using Canvas and the Amazon IVS Player SDK.
Getting Started
- Open the
index.html file of each folder in a modern web browser to test each demo.
- Open any demo's
script.js in your favorite code editor, and replace the value of PlaybackUrl with your own Amazon IVS Playback URL to play your own stream.
- Some demos may require running a local server. Here are a few ways to start one:
Using Python
Using Node.js
First, install a package like http-server globally:
npm install -g http-server
Then run:
http-server
basic-custom-stream
The basic-custom-stream demo must be run with HTTPS. HTTPS requires a certificate to be generated.
In the sample directory generate a certificate with the following command: