@volcengine/veplayer 1.3.4

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,20 @@
1
+ ## [@volcengine/veplayer] License
2
+
3
+ Copyright 2021 Beijing Volcanoengine Technology Ltd. All Rights Reserved.
4
+
5
+ The @volcengine/veplayer was developed by Beijing Volcanoengine Technology Ltd. (hereinafter
6
+ “Volcanoengine”). Any copyright or patent right is owned by and proprietary material of the
7
+ Volcanoengine.
8
+
9
+ @volcengine/veplayer is available under the @volcengine/veplayer and licensed under the
10
+ commercial license. Customers can contact service@volcengine.com for commercial licensing
11
+ options. Here is also a link to subscription services agreement:
12
+ https://www.volcengine.com/docs/6469.
13
+
14
+ Without Volcanoengine's prior written permission, any use of @volcengine/veplayer, in particular
15
+ any use for commercial purposes, is prohibited. This includes, without limitation, incorporation in a
16
+ commercial product, use in a commercial service, or production of other artefacts for commercial
17
+ purposes.
18
+
19
+ Without Volcanoengine's prior written permission, the @volcengine/veplayer may not be
20
+ reproduced, modified and/or made available in any form to any third party.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+ ### Volcengine/player
2
+
3
+ 火山引擎视频云播放器
4
+
5
+ ### 安装
6
+
7
+ ```bash
8
+ npm install @volcengine/veplayer --save
9
+ ```
10
+
11
+ ### 示例
12
+
13
+ ```js
14
+ const playerSdk = new VePlayer({
15
+ id: 'mse',
16
+ isLive: true,
17
+ streamType: 'rtm',
18
+ url: '/url',
19
+ playList: [
20
+ {
21
+ lineId: 1,
22
+ lineTextKey: '线路一',
23
+ url: '/url',
24
+ definition: 'ld',
25
+ streamType: 'rtm',
26
+ definitionTextKey: 'LD',
27
+ },
28
+ {
29
+ lineId: 1,
30
+ lineTextKey: '线路一',
31
+ url: '/url',
32
+ definition: 'hd',
33
+ streamType: 'rtm',
34
+ definitionTextKey: 'HD',
35
+ },
36
+ {
37
+ lineId: 1,
38
+ lineTextKey: '线路一',
39
+ url: '/url',
40
+ definition: 'uhd',
41
+ streamType: 'rtm',
42
+ definitionTextKey: 'UHD',
43
+ },
44
+ {
45
+ lineId: 2,
46
+ lineTextKey: '线路二',
47
+ url: '/url',
48
+ definition: 'ld',
49
+ streamType: 'rtm',
50
+ definitionTextKey: 'LD',
51
+ },
52
+ {
53
+ lineId: 2,
54
+ lineTextKey: '线路二',
55
+ url: '/url',
56
+ definition: 'hd',
57
+ streamType: 'rtm',
58
+ definitionTextKey: 'HD',
59
+ },
60
+ ],
61
+ width: 600,
62
+ height: 400,
63
+ });
64
+ ```