@stormstreaming/stormlibrary
Version:
A JavaScript library containing core web video player functionality for embedding live-video streams on a website. Part of StormStreaming Suite.
46 lines (40 loc) • 977 B
HTML
<html lang="en">
<head>
<title>Storm Library - ESM TestPage</title>
<meta charset="UTF-8">
</head>
<body>
<div id="storm_player_0">
<h1>Storm Library ESM - TestPage</h1>
<div id="videoContainer"></div>
</div>
<script type="module">
const config = {
stream: {
serverList: [
{
host: "127.0.0.1",
application:"live",
port: 8080,
ssl: false
},
],
streamKey:"test",
},
settings: {
autoStart: true,
video: {
scalingMode: "letterbox",
containerID: "videoContainer",
width:"1280px",
height:"720px",
},
}
}
import {StormLibrary} from "../../../dist/esm/index.js";
const storm = new StormLibrary(config)
storm.initialize();
</script>
</body>
</html>