@stormstreaming/stormstreamer 0.9.3-beta.0 → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stormstreaming/stormstreamer",
3
- "version": "0.9.3-beta.0",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "A JavaScript library containing core webrtc streamer functionality for embedding live-video streams on a website. Part of StormStreaming Suite.",
5
5
  "author": "Web-Anatomy s.c. <contact@web-anatomy.com>",
6
6
  "main": "dist/iife/index.js",
@@ -9,7 +9,11 @@
9
9
  "type": "module",
10
10
  "files": [
11
11
  "*.d.ts",
12
- "dist"
12
+ "dist",
13
+ "samples",
14
+ "README.md",
15
+ "CHANGELOG.md",
16
+ "LICENSE"
13
17
  ],
14
18
  "repository": {
15
19
  "type": "git",
@@ -0,0 +1,50 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Storm Streamer - AMD Test Page</title>
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
7
+ </head>
8
+ <body>
9
+
10
+ <div id="storm_player_0">
11
+ <h1>Storm Streamer AMD - TestPage</h1>
12
+ <div id="videoContainer"></div>
13
+ </div>
14
+
15
+ <script>
16
+
17
+ const config = {
18
+ stream: {
19
+ serverList: [
20
+ {
21
+ host: "127.0.0.1",
22
+ application:"live",
23
+ port: 8080,
24
+ ssl: false
25
+ },
26
+ ],
27
+ streamKey:"test",
28
+ },
29
+ settings: {
30
+ autoStart: true,
31
+ video: {
32
+ scalingMode: "letterbox",
33
+ containerID: "videoContainer",
34
+ width:"1280px",
35
+ height:"720px",
36
+ },
37
+ }
38
+ }
39
+
40
+ requirejs(['../../dist/amd/index'], function (storm) {
41
+
42
+ const stormInstance = new storm.create(config);
43
+ stormInstance.initialize();
44
+
45
+ });
46
+
47
+ </script>
48
+
49
+ </body>
50
+ </html>
@@ -0,0 +1,46 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Storm Streamer - ESM TestPage</title>
5
+ <meta charset="UTF-8">
6
+ </head>
7
+ <body>
8
+
9
+ <div id="storm_player_0">
10
+ <h1>Storm Streamer ESM - TestPage</h1>
11
+ <div id="videoContainer"></div>
12
+ </div>
13
+
14
+ <script type="module">
15
+
16
+ const config = {
17
+ stream: {
18
+ serverList: [
19
+ {
20
+ host: "127.0.0.1",
21
+ application:"live",
22
+ port: 8080,
23
+ ssl: false
24
+ },
25
+ ],
26
+ streamKey:"test",
27
+ },
28
+ settings: {
29
+ autoStart: true,
30
+ video: {
31
+ scalingMode: "letterbox",
32
+ containerID: "videoContainer",
33
+ width:"1280px",
34
+ height:"720px",
35
+ },
36
+ }
37
+ }
38
+
39
+ import {StormStreamer} from "../../dist/esm/index.js";
40
+
41
+ const storm = new StormStreamer(config)
42
+ storm.initialize();
43
+
44
+ </script>
45
+ </body>
46
+ </html>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Storm Streamer - IIFE TestPage</title>
5
+ <meta charset="UTF-8">
6
+ <script src="../../dist/iife/index.js"></script>
7
+ </head>
8
+ <body>
9
+
10
+ <div id="storm_player_0">
11
+ <h1>Storm Streamer IIFE - TestPage</h1>
12
+ <div id="videoContainer"></div>
13
+ </div>
14
+
15
+ <script>
16
+
17
+ const config = {
18
+ stream: {
19
+ serverList: [
20
+ {
21
+ host: "127.0.0.1",
22
+ application:"live",
23
+ port: 8080,
24
+ ssl: false
25
+ },
26
+ ],
27
+ streamKey:"test",
28
+ },
29
+ settings: {
30
+ autoStart: true,
31
+ video: {
32
+ scalingMode: "letterbox",
33
+ containerID: "videoContainer",
34
+ width:"1280px",
35
+ height:"720px",
36
+ },
37
+ }
38
+ }
39
+
40
+ const storm = stormStreamer(config);
41
+ storm.initialize();
42
+
43
+ </script>
44
+ </body>
45
+ </html>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Storm Streamer - UMD TestPage</title>
5
+ <meta charset="UTF-8">
6
+ <script src="../../dist/umd/index.js"></script>
7
+ </head>
8
+ <body>
9
+
10
+ <div id="storm_player_0">
11
+ <h1>Storm Streamer UMD - TestPage</h1>
12
+ <div id="videoContainer"></div>
13
+ </div>
14
+
15
+ <script>
16
+
17
+ const config = {
18
+ stream: {
19
+ serverList: [
20
+ {
21
+ host: "127.0.0.1",
22
+ application:"live",
23
+ port: 8080,
24
+ ssl: false
25
+ },
26
+ ],
27
+ streamKey:"test",
28
+ },
29
+ settings: {
30
+ autoStart: true,
31
+ video: {
32
+ scalingMode: "letterbox",
33
+ containerID: "videoContainer",
34
+ width:"1280px",
35
+ height:"720px",
36
+ },
37
+ }
38
+ }
39
+
40
+ const storm = stormStreamer.create(config);
41
+ storm.initialize();
42
+
43
+ </script>
44
+ </body>
45
+ </html>