1.0.11 • Published 7 months ago

foo-test-plus v1.0.11

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

VePlayer

BytePlus 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.

Import the SDK

Install SDK dependencies into the project through the package management tool.

npm install @byteplus/veplayer --save

Import VePlayer and style files in the project.

import VePlayer from '@byteplus/veplayer';
import '@byteplus/veplayer/dist/index.min.css';

Add playback container

Add a player container on the page where the player needs to be displayed, for example, add the following code to index.html.

<div id="video"></div>

Player instantiation

After getting the video URL, instantiate the player.

Video On Demand

const player = new VePlayer({
    id: 'video', // playback container
    url: "https://demo.vod.com/xxx.mp4", // video URL
    vodLogOpts: {
        vtype: 'MP4', // Video format, the video of HLS protocol should be imported into HLS
        tag: 'Normal', // Business tags, used to distinguish different scenarios in the business, to facilitate subsequent multi-dimensional analysis
        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
        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
    }
});

For a detailed description of VOD, refer toBytePlus - Video On Demand - Player SDK - Web

Live

const playerSdk = new VePlayer({
  id: 'video',
  isLive: true,
  url: '//livepull.example.com/appname/streamname.flv'
});
1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.4

7 months ago

1.0.11

7 months ago

1.0.2

9 months ago

1.0.1

9 months ago

0.0.1-rc.0

9 months ago

1.0.0

9 months ago

0.0.1-rc.3

9 months ago

0.0.1-rc.4

9 months ago

1.6.2-rc.0

9 months ago

0.0.1-rc.1

9 months ago

1.6.5-rc.0

9 months ago

0.0.1-rc.2

9 months ago

1.6.4

9 months ago

1.6.3

9 months ago

1.6.2

9 months ago

1.6.1

9 months ago

1.6.0

9 months ago

0.0.1-rc.7

9 months ago

0.0.1-rc.8

9 months ago

1.6.4-rc.0

9 months ago

0.0.1-rc.5

9 months ago

0.0.1-rc.6

9 months ago

1.6.1-rc.0

9 months ago

0.0.1-rc.9

9 months ago

1.6.0-rc.2

9 months ago

1.6.0-rc.1

9 months ago

1.6.0-rc.0

9 months ago

0.0.0

9 months ago

1.6.3-rc.0

9 months ago

0.0.1-rc.10

9 months ago

1.6.5

9 months ago