/amazon-ivs-player-web-sample

This project contains code samples demonstrating how to build, package, and integrate with the Amazon IVS Player Web SDK.

Primary LanguageJavaScriptMIT No AttributionMIT-0

Amazon IVS Player Web SDK Samples · Run on Repl.it

This project contains code samples demonstrating how to build, package, and integrate with the Amazon IVS Player Web SDK. You can find the Web SDK API reference and documentation here.

Requirements

  • Node 12+
  • NPM 6+
  • A browser which meets the IVS web player requirements

Setup

  1. Locally clone this repository.
  2. Install dependencies: npm install
  3. Build and host using webpack-dev-server: npm start
    • Alternatively, you can just build with npm run bundle. The dist/ folder can then be independently hosted.
  4. Navigate to the index page and select a demo.
  5. Once in the demo, open the developer tools to see relevant logs.

Code Samples

Please see each sample for detailed code comments.

Live Demo

Try out this repo in Repl.it. You can build, run, and experiment with our code without having to set it up yourself.

  1. Visit https://repl.it/github/aws-samples/amazon-ivs-player-web-sample and sign up for an account
  2. Leave the default repl.it configuration (select language: Node.js, configure the run button: npm start) and click "Done"
  3. Click the "Run" button
  4. Wait for npm install and npm start to complete. You should see Compiled successfully in the console when done
  5. Reload the page and browse the live samples in the top right window

Test Streams

License

This project is licensed under the MIT-0 License. See the LICENSE file.