Player-Web-SDK-Introduction
Baidu AI Cloud Player Web SDK(“Player SDK”) is released by Baidu to develop website player software development kit.
In order to help the user to understand how to use player Web SDK quickly, we provide cyberplayer Demo to display the basic features of the player, LVB supports and related personalized requirements, etc. Currently, the browser compatibility supported by Web SDK are shown in the table below:
Please refer to FAQs Concerning Player for matters needing attention about the settings on mobile phone and mobile terminal.
Advantages
Player SDK has many advantages:
- The inserted T5 play core independently developed by Baidu supports all the current mainstream video formats (mp4, flv, etc.) and stream media protocols (HLS, RTMP), makes up the inadequacy of the media-supported formats of the origin player, and obviously improve the compatibility, stability and response speed.
- Provide simple and rapid interfaces to help the developers effectively create media play applications and efficiently reduce the technical threshold of the multi-media application.
- Provide safe and easy-to-use lightweight-class copyright protection feature to encrypt the video files through video transcoding platform by using AES128 encryption algorithm to prevent copying and spreading the video content by the illegal users and provide safety assurance for your AV copyrights.
Feature
Player SDK provides abundant feature for you:
-
Low barrier to entry, high sensitivity
Use the API interface provided by SDK to easily create professional play application.
-
Support two modes including Flash and HTML5
Automatically switch between the two modes Flash and HTML5 according to the browser characteristics and video formats.
-
Support wide streaming video formats
The Flash play core independently developed by Baidu is inserted, which supports progressive and streaming download play of FLV/MP4 format, supports video stream play based on RTMP/RTMPT streaming protocols, supports playing streaming videos (M3U8) using Apple HTTP Live Streaming protocol transmission and can self-adaptively switch code rates.
-
Support encrypted video play
The play core realizes the decoding and play of HLS videos with AES128 encryption, so the enterprise users can encrypt to protect the video content conveniently.
-
Subtitle support and subtitle style customization
Player Web SDK supports subtitle display and subtitle style customization of SRT and Webvtt formats.
-
Support list play
Player Web SDK provides alternative method to realize the list play of media resources. The developer can select to add “Last” and “Next” buttons to realize media switchover in the control bar; the developer can also select to add list bar and play the assigned items by mouse clicking.
-
Support image advertising feature
Player Web SDK supports user configuration opening, pausing and ending advertisements to satisfy the requirements of the personalized video play.
-
Support multi-rate videos
Player Web SDK supports multi-rate video play and smooth switchover.
-
Support video dotting and thumbnail display
The video dotting and thumbnail display can improve the viewing experience of the viewers, and get to know the contents of the entire video played at different time periods in advance.
Component and Resource
The complete download pack of the player SDK contains player and README:
- player:The cyberplayer.js and cyberplayer.flash.swf files are used to store players SDK mainly, and in addition, there is a folder named videojs, which needs to be imported manually when you play hls with h5.
- README:Briefly introduce the usage method.
The compressed directory structure is as follows:
Baidu-T5Player-SDK-Web-v<version>
├── player
│ ├── videojs
│ │ ├── video.js
│ │ ├── video.min.js
│ │ ├── videojs-contrib-hls.js
│ │ └── videojs-contrib-hls.min.js
│ ├── flv.js
│ ├── cyberplayer.js
│ ├── cyberplayer.flash.swf
└── README
To facilitate the user for convenient development, Baidu AI Cloud provides a well functioned player Demo. Please refer to Web Player Demo for details.