Getting Started
Install the Library
Note that the IVSBroadcastClient leverages reflect-metadata, which extends the global Reflect object. Although this should not create any conflicts, there may be rare instances where this could cause unwanted behavior.
Using a Script Tag
The Web broadcast SDK is distributed as a JavaScript library and can be retrieved at https://web-broadcast.live-video.net/1.17.0/amazon-ivs-web-broadcast.js.
When loaded via <script>
tag, the library exposes a global variable in the window scope named IVSBroadcastClient
.
Using npm
To install the npm
package:
npm install amazon-ivs-web-broadcast
You can now access the IVSBroadcastClient
object and pull in other modules and consts such as Errors
, BASIC_LANDSCAPE
:
import IVSBroadcastClient, {
Errors,
BASIC_LANDSCAPE
} from 'amazon-ivs-web-broadcast';
Samples
To get started quickly, see the examples below:
- Single broadcast to an IVS channel (HTML and JavaScript)
- Single broadcast with screen share to an IVS channel (React Source Code)