How to choose the right player
The Aliplayer player includes H5, Flash, and adaptive player. It is recommended that users choose an adaptive player. The most suitable player can be selected according to the terminal type, browser type and address protocol.
If it is encrypted playback, only Flash player can be selected. H5 does not support encrypted playback yet.
How to manually enable H5 player
There are two ways to manually enable the H5 player:
1. Directly refer to the js file of the H5 player
2. Use the adaptive player, then set the useH5Prism property to true
How to Manually Enable Flash Player
There are two ways to manually enable Flash Player:
1. Directly refer to the js file of the Flash player
2. Use an adaptive player, then set the useFlashPrism property to true
adaptive player
Select the most suitable player according to the terminal type, browser type, set properties and address protocol. The basic principles of adaptation are:
H5 has the highest priority. If H5 can play, never choose Flash, unless the user specifies to use Flash to play
- When useFlashPrism = true, rtmp and http-flv protocols, use flash to play
- The mobile terminal adopts H5 playback
- useH5Prism = true, use H5 playback
- PC-side MP4 adopts H5 playback
- If the browser or the plug-in of Aliplayer supports playing m3u8 on the PC side, use H5 to play, otherwise use Flash to play
- Everything else is played with H5
Later Aliplayer will also consider supporting H5 to play flv