@byteplus/veplayer 1.8.1 → 2.3.0-rc.1
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 +18 -0
- package/README.md +6 -39
- package/esm/index.d.ts +4629 -0
- package/esm/veplayer.biz.live.development.css +41 -0
- package/esm/veplayer.biz.live.development.js +3417 -0
- package/esm/veplayer.biz.live.production.css +1 -0
- package/esm/veplayer.biz.live.production.js +2 -0
- package/esm/veplayer.biz.vod.development.js +13 -0
- package/esm/veplayer.biz.vod.production.js +2 -0
- package/esm/veplayer.d.ts +10012 -0
- package/esm/veplayer.development.css +743 -0
- package/esm/veplayer.development.js +22252 -0
- package/esm/veplayer.live.d.ts +10014 -0
- package/esm/veplayer.live.development.css +743 -0
- package/esm/veplayer.live.development.js +22251 -0
- package/esm/veplayer.live.production.css +1 -0
- package/esm/veplayer.live.production.js +11 -0
- package/esm/veplayer.production.css +1 -0
- package/esm/veplayer.production.js +11 -0
- package/esm/veplayer.vod.d.ts +4629 -0
- package/esm/veplayer.vod.development.css +702 -0
- package/esm/veplayer.vod.development.js +14064 -0
- package/esm/veplayer.vod.production.css +1 -0
- package/esm/veplayer.vod.production.js +11 -0
- package/package.json +78 -8
- package/umd/index.d.ts +4629 -0
- package/umd/veplayer.biz.live.development.css +41 -0
- package/umd/veplayer.biz.live.development.js +3429 -0
- package/umd/veplayer.biz.live.production.css +1 -0
- package/umd/veplayer.biz.live.production.js +1 -0
- package/umd/veplayer.biz.vod.development.js +30 -0
- package/umd/veplayer.biz.vod.production.js +1 -0
- package/umd/veplayer.d.ts +10012 -0
- package/umd/veplayer.development.css +743 -0
- package/umd/veplayer.development.js +22255 -0
- package/umd/veplayer.live.d.ts +10014 -0
- package/umd/veplayer.live.development.css +743 -0
- package/umd/veplayer.live.development.js +22263 -0
- package/umd/veplayer.live.production.css +1 -0
- package/umd/veplayer.live.production.js +1 -0
- package/umd/veplayer.production.css +1 -0
- package/umd/veplayer.production.js +1 -0
- package/umd/veplayer.vod.d.ts +4629 -0
- package/umd/veplayer.vod.development.css +702 -0
- package/umd/veplayer.vod.development.js +14079 -0
- package/umd/veplayer.vod.production.css +1 -0
- package/umd/veplayer.vod.production.js +1 -0
- package/veplayer.d.ts +10012 -0
- package/veplayer.live.d.ts +10014 -0
- package/veplayer.vod.d.ts +4629 -0
- package/index.d.ts +0 -3974
- package/index.min.css +0 -1
- package/index.min.js +0 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## [@byteplus/veplayer] License
|
|
2
|
+
|
|
3
|
+
Copyright 2024 BytePlus Pte Ltd. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
The @byteplus/veplayer was developed by BytePlus Pte Ltd. (hereinafter
|
|
6
|
+
“BytePlus”). Any copyright or patent right is owned by and proprietary material of the
|
|
7
|
+
BytePlus.
|
|
8
|
+
|
|
9
|
+
@byteplus/veplayer is available under the @byteplus/veplayer and licensed under the
|
|
10
|
+
commercial license. Customers can contact contact@byteplus.com for commercial licensing
|
|
11
|
+
options. Here is also a link to subscription services agreement:
|
|
12
|
+
https://www.byteplus.com/en/product/medialive.
|
|
13
|
+
|
|
14
|
+
Without BytePlus's prior written permission, any use of @byteplus/veplayer, in particular
|
|
15
|
+
any use for commercial purposes, is prohibited. This includes, without limitation, incorporation in a commercial product, use in a commercial service.
|
|
16
|
+
|
|
17
|
+
Without BytePlus's prior written permission, the @byteplus/veplayer may not be
|
|
18
|
+
reproduced, modified and/or made available in any form to any third party.
|
package/README.md
CHANGED
|
@@ -1,46 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
# VePlayer
|
|
2
2
|
|
|
3
3
|
[BytePlus](https://www.byteplus.com/en) Web player SDK,can automatically adapt to PC and H5 scenes, support MP4, HLS, FLV, DASH and other formats of on-demand and live broadcast, combined with video cloud, it has functions such as playback quality log reporting, encrypted playback, etc.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Install SDK dependencies into the project through the package management tool.
|
|
7
|
-
```bash
|
|
8
|
-
npm install @byteplus/veplayer --save
|
|
9
|
-
```
|
|
10
|
-
Import VePlayer and style files in the project.
|
|
11
|
-
```javascript
|
|
12
|
-
import VePlayer from '@byteplus/veplayer';
|
|
13
|
-
import '@byteplus/veplayer/dist/index.min.css';
|
|
14
|
-
```
|
|
5
|
+
## Quick Start
|
|
15
6
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```javascript
|
|
19
|
-
<div id="video"></div>
|
|
7
|
+
```node
|
|
8
|
+
npm install @volcengine/veplayer
|
|
20
9
|
```
|
|
21
|
-
### Player instantiation
|
|
22
|
-
After getting the video URL, instantiate the player.
|
|
23
10
|
|
|
24
|
-
|
|
25
|
-
```javascript
|
|
26
|
-
const player = new VePlayer({
|
|
27
|
-
id: 'video', // playback container
|
|
28
|
-
url: "https://demo.vod.com/xxx.mp4", // video URL
|
|
29
|
-
vodLogOpts: {
|
|
30
|
-
vtype: 'MP4', // Video format, the video of HLS protocol should be imported into HLS
|
|
31
|
-
tag: 'Normal', // Business tags, used to distinguish different scenarios in the business, to facilitate subsequent multi-dimensional analysis
|
|
32
|
-
line_app_id: 235399, // [Required] The value is int type, the SDK application id for accessing VOD, which can be obtained from VOD Console-VOD SDK-Application Management
|
|
33
|
-
line_user_id: 'XXX' // User id, String or int type, if not passed in, it will be a value randomly generated according to the user's browser
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
```
|
|
37
|
-
For a detailed description of VOD, refer to[BytePlus - Video On Demand - Player SDK - Web](https://docs.byteplus.com/en/byteplus-vod/docs/getting-started-with-the-sdk_2)
|
|
11
|
+
## Documents
|
|
38
12
|
|
|
39
|
-
|
|
40
|
-
```javascript
|
|
41
|
-
const playerSdk = new VePlayer({
|
|
42
|
-
id: 'video',
|
|
43
|
-
isLive: true,
|
|
44
|
-
url: '//livepull.example.com/appname/streamname.flv'
|
|
45
|
-
});
|
|
46
|
-
```
|
|
13
|
+
[Introduction](https://docs.byteplus.com/en/byteplus-media-live/docs/introduction-to-the-player-sdk-for-web) <br>
|