@broadcastingplatforms/player 0.0.0-dev.e67afbe → 1.3.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/LICENSE ADDED
@@ -0,0 +1,72 @@
1
+ PROPRIETARY SOFTWARE LICENSE AGREEMENT
2
+
3
+ Copyright (c) 2024-2026 Broadcasting Platforms
4
+ All Rights Reserved.
5
+
6
+ https://www.broadcastingplatforms.com
7
+
8
+ This software and associated documentation files (the "Software") is a
9
+ commercial product developed and owned by Broadcasting Platforms.
10
+
11
+ 1. LICENSE GRANT
12
+
13
+ This Software is licensed, not sold. Subject to a valid commercial license
14
+ agreement with Broadcasting Platforms, you may use this Software solely in
15
+ accordance with the terms of that agreement. If you have not entered into
16
+ a commercial license agreement, you are not authorized to use this Software.
17
+
18
+ 2. RESTRICTIONS
19
+
20
+ You may NOT, without prior written consent from Broadcasting Platforms:
21
+
22
+ a) Copy, modify, adapt, translate, or create derivative works of the Software
23
+ b) Reverse engineer, disassemble, decompile, or attempt to derive the source
24
+ code of the Software
25
+ c) Rent, lease, loan, sublicense, distribute, or transfer the Software to
26
+ any third party
27
+ d) Remove, alter, or obscure any proprietary notices, labels, or marks on
28
+ the Software
29
+ e) Use the Software for any unlawful purpose or in violation of any
30
+ applicable laws or regulations
31
+
32
+ 3. OWNERSHIP
33
+
34
+ Broadcasting Platforms retains all right, title, and interest in and to the
35
+ Software, including all intellectual property rights therein. This license
36
+ does not grant you any rights to trademarks, service marks, or trade names
37
+ of Broadcasting Platforms.
38
+
39
+ 4. NO WARRANTY
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. BROADCASTING PLATFORMS
44
+ DOES NOT WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE
45
+ OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
46
+
47
+ 5. LIMITATION OF LIABILITY
48
+
49
+ IN NO EVENT SHALL BROADCASTING PLATFORMS BE LIABLE FOR ANY INDIRECT,
50
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
51
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
52
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
53
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
54
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
55
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56
+
57
+ 6. TERMINATION
58
+
59
+ This license is effective until terminated. Your rights under this license
60
+ will terminate automatically without notice if you fail to comply with any
61
+ of its terms. Upon termination, you must cease all use of the Software and
62
+ destroy all copies in your possession.
63
+
64
+ 7. GENERAL
65
+
66
+ This license constitutes the entire agreement between you and Broadcasting
67
+ Platforms concerning the Software. If any provision of this license is held
68
+ to be unenforceable, the remaining provisions shall continue in full force
69
+ and effect.
70
+
71
+ For licensing inquiries, please contact:
72
+ https://www.broadcastingplatforms.com
package/README.md CHANGED
@@ -59,12 +59,19 @@ import '@broadcastingplatforms/player';
59
59
  Play a live stream from the BPLive platform:
60
60
 
61
61
  ```html
62
- <bp-player
63
- source='{"sources":[{"type":"bplive","streamId":123}]}'
64
- config='{"bpLive":{"discoveryUrl":"https://api.example.com","authToken":"your-auth-token"}}'
65
- muted
66
- autoplay
67
- ></bp-player>
62
+ <bp-player id="live-player" muted autoplay></bp-player>
63
+
64
+ <script type="module">
65
+ const player = document.getElementById('live-player');
66
+
67
+ player.source = { sources: [{ type: 'bplive', streamId: 123 }] };
68
+ player.config = {
69
+ bpLive: {
70
+ discoveryUrl: 'https://api.example.com',
71
+ authToken: await getAuthToken() // Set programmatically, not in HTML
72
+ }
73
+ };
74
+ </script>
68
75
  ```
69
76
 
70
77
  ### BPLive Clip
@@ -72,12 +79,21 @@ Play a live stream from the BPLive platform:
72
79
  Play a clip from the BPLive platform:
73
80
 
74
81
  ```html
75
- <bp-player
76
- source='{"sources":[{"type":"bplive","clipId":456,"preferredOrientation":"portrait"}]}'
77
- config='{"bpLive":{"discoveryUrl":"https://api.example.com","authToken":"your-auth-token"}}'
78
- muted
79
- autoplay
80
- ></bp-player>
82
+ <bp-player id="clip-player" muted autoplay></bp-player>
83
+
84
+ <script type="module">
85
+ const player = document.getElementById('clip-player');
86
+
87
+ player.source = {
88
+ sources: [{ type: 'bplive', clipId: 456, preferredOrientation: 'portrait' }]
89
+ };
90
+ player.config = {
91
+ bpLive: {
92
+ discoveryUrl: 'https://api.example.com',
93
+ authToken: await getAuthToken() // Set programmatically, not in HTML
94
+ }
95
+ };
96
+ </script>
81
97
  ```
82
98
 
83
99
  ### With Default UI