@byteplus/veplayer 1.8.1 → 2.3.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.
Files changed (53) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +6 -39
  3. package/esm/index.d.ts +3167 -0
  4. package/esm/veplayer.biz.live.development.css +41 -0
  5. package/esm/veplayer.biz.live.development.js +3400 -0
  6. package/esm/veplayer.biz.live.production.css +1 -0
  7. package/esm/veplayer.biz.live.production.js +2 -0
  8. package/esm/veplayer.biz.vod.development.js +13 -0
  9. package/esm/veplayer.biz.vod.production.js +2 -0
  10. package/esm/veplayer.d.ts +6921 -0
  11. package/esm/veplayer.development.css +743 -0
  12. package/esm/veplayer.development.js +22032 -0
  13. package/esm/veplayer.live.d.ts +6923 -0
  14. package/esm/veplayer.live.development.css +743 -0
  15. package/esm/veplayer.live.development.js +22031 -0
  16. package/esm/veplayer.live.production.css +1 -0
  17. package/esm/veplayer.live.production.js +11 -0
  18. package/esm/veplayer.production.css +1 -0
  19. package/esm/veplayer.production.js +11 -0
  20. package/esm/veplayer.vod.d.ts +3167 -0
  21. package/esm/veplayer.vod.development.css +702 -0
  22. package/esm/veplayer.vod.development.js +13861 -0
  23. package/esm/veplayer.vod.production.css +1 -0
  24. package/esm/veplayer.vod.production.js +11 -0
  25. package/package.json +78 -8
  26. package/umd/index.d.ts +3167 -0
  27. package/umd/veplayer.biz.live.development.css +41 -0
  28. package/umd/veplayer.biz.live.development.js +3412 -0
  29. package/umd/veplayer.biz.live.production.css +1 -0
  30. package/umd/veplayer.biz.live.production.js +1 -0
  31. package/umd/veplayer.biz.vod.development.js +30 -0
  32. package/umd/veplayer.biz.vod.production.js +1 -0
  33. package/umd/veplayer.d.ts +6921 -0
  34. package/umd/veplayer.development.css +743 -0
  35. package/umd/veplayer.development.js +22035 -0
  36. package/umd/veplayer.live.d.ts +6923 -0
  37. package/umd/veplayer.live.development.css +743 -0
  38. package/umd/veplayer.live.development.js +22043 -0
  39. package/umd/veplayer.live.production.css +1 -0
  40. package/umd/veplayer.live.production.js +1 -0
  41. package/umd/veplayer.production.css +1 -0
  42. package/umd/veplayer.production.js +1 -0
  43. package/umd/veplayer.vod.d.ts +3167 -0
  44. package/umd/veplayer.vod.development.css +702 -0
  45. package/umd/veplayer.vod.development.js +13876 -0
  46. package/umd/veplayer.vod.production.css +1 -0
  47. package/umd/veplayer.vod.production.js +1 -0
  48. package/veplayer.d.ts +6921 -0
  49. package/veplayer.live.d.ts +6923 -0
  50. package/veplayer.vod.d.ts +3167 -0
  51. package/index.d.ts +0 -3974
  52. package/index.min.css +0 -1
  53. 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
- ### VePlayer
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
- ### Import the SDK
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
- ### Add playback container
17
- Add a player container on the page where the player needs to be displayed, for example, add the following code to index.html.
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
- #### Video On Demand
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
- #### Live
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>