eb-player 2.0.10 → 2.0.12

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.
@@ -1,49 +0,0 @@
1
- <!doctype html><html><head><title>Easybroadcast Player</title><style>body {
2
- margin: 0;
3
- background-color: black;
4
- height: 100vh;
5
- }
6
-
7
- .slider {
8
- font-size: 10px !important;
9
-
10
- }
11
-
12
- .slider .player .social-media-list,
13
- .slider .player .info-button {
14
- display: none;
15
- }
16
-
17
- html {
18
- min-width: unset !important;
19
- }</style><script defer="defer" src="demo.js"></script></head><body><div id="eb_player"></div><script>document.addEventListener("DOMContentLoaded", () => {
20
-
21
- var params = decodeURI(window.location.search.substring(1));
22
- var streamURL = params?.match(/streamURL='(.*)'/)?.[1];
23
- if (!streamURL) {
24
- console.warn("index.ejs: streamURL not found in params");
25
- return;
26
- }
27
-
28
- var config = JSON.parse('{"' + decodeURI(params?.split(/streamURL='.*'&/)?.[1])?.replace(/"/g, '\\"')?.replace(/&/g, '","')?.replace(/=/g,
29
- '":"') + '"}');
30
-
31
- if (!config) {
32
- console.error("config not found in params");
33
- return;
34
- }
35
- config.streamURL = streamURL;
36
- // console.log(`index.ejs load config: ${config}`);
37
- if (config.slider) {
38
- document.body.classList.add("slider");
39
- }
40
-
41
- EBPlayer.start({
42
- src: config.streamURL,
43
- stream_protocol: config.streamProtocol
44
- });
45
- window.close = () => {
46
- return EBPlayer.close();
47
- }
48
-
49
- });</script></body></html>