Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
amazon-ivs-player-web-sample
Advanced tools
Code samples for the Amazon IVS Player Web SDK
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.
The Amazon IVS Web SDK on NPM is built using Webpack using the commonjs2 library target. We recommend importing with the import
statement, but any module syntax compatible with commonjs2
will work.
You need to import two files to use the SDK:
amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.js
amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.wasm
Please see our sample player for an example on how to import the SDK assets. However, you must also configure your build tool to properly import the SDK WebAssembly files.
The Amazon IVS Web SDK uses WebAssembly (WASM). The WASM file is included separately from the JavaScript file. There are two important steps you must take to properly import the WASM:
Webpack's file-loader meets both of the above requirements. We have included a sample Webpack config which demonstrates how to use this to load our SDK.
We also provide the Amazon IVS SDK hosted on our CDN. Cloud-hosted SDKs are easier to get started with, and do not require you to use Webpack or another build tool. There is no difference in performance between either SDK. However, the Cloud SDK does not currently support TypeScript types. Please see the sample directory below for how to use the Cloud SDK.
npm install
npm start
npm run bundle
. The dist/
folder can then be independently hosted.Please see each sample for detailed code comments.
Try out this repo in Repl.it. You can build, run, and experiment with our code without having to set it up yourself.
npm start
) and click "Done"npm install
and npm start
to complete. You should see Compiled successfully
in the console when doneThis project is licensed under the MIT-0 License. See the LICENSE file.
FAQs
Code samples for the Amazon IVS Player Web SDK
We found that amazon-ivs-player-web-sample demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.