Basic usage
Call the method shown below to initialize the BeLive player widget
const player = BeLivePlayerWidget.initialize({
showId: "SHOW_ID",
});
Call the method shown below to open the BeLive player
player.open();
Or with a trigger element
<button id="YOUR_ELEMENT_ID">Watch live</button>
const player = BeLivePlayerWidget.initialize({
showId: "SHOW_ID",
triggerElement: document.getElementById("YOUR_ELEMENT_ID"),
});
Hint
When there's a user visiting your web site, they will see the "Watch live" button. Clicking on the button will open up the BeLive player.