ApsaraVideo Player SDK for web allows you to play audio and video streams by using the HTML5 player or Flash player. Adobe Flash Player is out of service and mainstream browsers now do not support the Flash player. If you use a browser such as Internet Explorer that does not support the HTML5 player, you can use the Flash player. This topic describes the audio and video formats supported by ApsaraVideo Player SDK for web for the HTML5 player and Flash player. This topic also describes the adaptation of the HTML5 player and Flash player to different browsers.
Supported audio and video formats
Player | Video encoding format | Video protocol | Audio encoding format | Audio file format |
---|---|---|---|---|
HTML5 | H.264 | MP4, FLV, and HTTP-Live-Streaming (HLS) | Advanced Audio Coding (AAC) | MP3 |
Flash player (update stopped) | H.264 | MP4, FLV, HLS, and RTMP | AAC and MP3 | MP3 |
Adaptation of the HTML5 player to browsers
The HTML5 player is supported by both desktop browsers and mobile browsers.
Adaptation to desktop browsers
Browser | MP4 | FLV | HLS | MP3 |
---|---|---|---|---|
Google Chrome | √ | Google Chrome 34 and later | Google Chrome 34 and later | √ |
Firefox | √ | Firefox 49 and later | Firefox 49 and later | √ |
Internet Explorer | Internet Explorer 9 and later |
Notice You cannot play video streams in the FLV format in Internet Explorer 11 for Windows
8 and later. This is because the value of the
mseLiveFlvPlayback parameter is false in the flv.js file for Internet Explorer 11.
|
Internet Explorer 11 and later for Windows 8.1 and later |
Internet Explorer 9 and later |
Microsoft Edge | √ | √ | √ | √ |
Opera | √ | √ | √ | √ |
Safari | √ | Safari 8 and later | Safari 8 and later | √ |
Browser | MP4 | FLV | HLS | MP3 |
---|---|---|---|---|
Google Chrome | √ | × | Google Chrome 34 and later | √ |
Firefox | √ | × | Firefox 49 and later | √ |
√ | × | √ | √ | |
Microsoft Edge | √ | × | √ | √ |
Opera | √ | × | √ | √ |
Browser | MP4 | FLV | HLS | MP3 |
---|---|---|---|---|
Google Chrome | √ | × | Google Chrome 34 and later | √ |
Firefox | √ | × | Firefox 49 and later | √ |
√ | × | √ | √ | |
Microsoft Edge | √ | × | √ | √ |
Opera | √ | × | √ | √ |
Safari | √ | × | Safari 8 and later | √ |
Features of the HTML5 player supported by browsers
Feature | Desktop browser | Mobile browser | References |
---|---|---|---|
Full-screen playback | By default, the full-screen playback feature is disabled. | By default, mobile browsers play videos in full-screen mode. In specific scenarios,
you must complete the required settings to enable the full-screen playback feature.
Notice In iOS versions earlier than iOS 10, videos are played in full-screen mode by default
when they are opened in Safari. You cannot disable the full-screen playback feature.
|
Advanced features |
Autoplay | The autoplay feature that is provided by ApsaraVideo Player SDK for web is not supported
in specific browsers.
|
By default, autoplay is disabled. To enable this feature, you must configure specific
settings.
Note Autoplay may be allowed by specific browsers and WebView-based apps, especially those
in Android.
|
Advanced features |
Volume adjustment | Supported |
The |
Basic features |
Playback speed | Supported | You cannot set the playback speed in specific mobile browsers, including the WeChat browser for Android. | Basic features |
Playback of videos encrypted by using HLS |
|
Supported | Encrypt videos for playback |
Playback of videos encrypted by using Alibaba Cloud proprietary cryptography |
Note Specific third-party browsers may modify the settings of ApsaraVideo Player SDK without
your authorization or knowledge. In this case, videos encrypted by using Alibaba Cloud
proprietary cryptography cannot be played. To resolve this issue, we recommend that
you use the HLS or digital rights management (DRM) encryption method to encrypt videos.
|
Not supported in browsers for iOS Supported only in Google Chrome for Android |
|
Playback of live streams encrypted by using DRM |
Windows
macOS
|
iOS
Android
|
|
Playback of VOD files encrypted by using DRM |
Windows
macOS
|
iOS
Android
|
Adaptation of the Flash player to browsers
The Flash player is supported only by desktop browsers. The following table describes whether videos in different formats can be played by using the Flash player in specific browsers.
Browser | MP4 | FLV | HLS | RTMP | MP3 |
---|---|---|---|---|---|
Google Chrome | √ | √ | √ | √ | √ |
Firefox | √ | √ | √ | √ | √ |
Internet Explorer | Internet Explorer 8 and later | Internet Explorer 8 and later | Internet Explorer 8 and later | Internet Explorer 8 and later | Internet Explorer 8 and later |
Microsoft Edge | √ | √ | √ | √ | √ |
Opera | √ | √ | √ | √ | √ |
Safari | √ | √ | √ | √ | √ |