百度智能云

All Product Document

          Multimedia Cloud Processing

          Android-Player-SDK-Introduction

          Reading Object

          This document is intended for all developers, testers, partners and other interested users using SDK, and requires the readers to have a certain Android programming experience.

          Introduction

          Baidu AI Cloud Player Android SDK(“SDK”) is the Android platform video player software development kit (SDK) introduced by Baidu AI Cloud to provide simple and convenient development interface to the developers and help them realize media play feature in the Android mobile devices. SDK provides simple and convenient media application development capacity.

          • Local all-media format support Breaking the limit of the Android platform on video formats, it supports all mainstream media formats at present (mp4, avi, wmv, flv, mkv, mov, rmvb, etc.).
          • Support wide streaming video formats

            Support the files of multiple formats for progressive and stream-like playback: HLS, RTMP, HTTP and Pseudo-Streaming. 
          • Powerful Performance

            Low CPU/memory occupancy rate, fast video loading speed. 
          • Low threshold and high flexibility to realize play feature

            Provide the calling interface greatly similar to the system player MediaPlayer class, which is easy for the developer to rapidly develop the media play application; provide the interface greatly similar to the system play control VideoView (this part is provided as the source code form, see BDCloudVideoView in demo for details); provide development examples simultaneously. 
          • Optimize the live scenarios

            Provide a starter version  SDK dedicated specially to LVB scenarios, and  support  RTMP, HTTP+FLV, HLS  protocol and  H264  and AAC  code. 
          • Copyright Protection

            Support the encryption mode of Baidu AI Cloud PlayerBinding and Token; support the offline download and playback of HLS encrypted videos. 
          • Complete CPU architecture support

            Full support to armeabi, armeabi-v7a, arm64-v8a, x86, x86_64 

          Feature List

          • Highly similar with MediaPlayer interface
          • Provide BDCloudVideoView controls, and highly consistent with VideoViewinterface (open source)
          • Full feature version supports all-media formats
          • Live Express Version supports RTMP, HTTP-FLV and HLS lives
          • Support home page rapid start
          • Support frame-chasing playback
          • Support IPV6
          • Support multi-instance play
          • Support multiple playback of a single instance
          • Support the playback of pure audio
          • Support hardware decoding
          • Support network speed detection
          • Support continuingly-playing
          • Support multiple picture zoom modes
          • Support backend playback
          • Support HLS offline download
          • Support HLS multi-code rate switch
          • Support screenshots when playing
          • Support setting buffering zone size
          • Support to set the duration of buffer zone
          • Support decoding method settings
          • Support to set the Header of HTTP request
          • Support to set the UserAgent of HTTP request
          • Support APM
          • Support the update and callback of RTMP or HTTP-FLV LVB real-time metadata information
          • Support for VOD copyright protection
          • Support seek thumbnail preview
          • Support for saving while playing of HLS and MP4 protocol
          • Support multi-rate seamless switchover of the mainstream media formats such as HLS and MP4.
          • It can be recorded to local MP4 files while playing

          Description of part feature

          Multi-rate rapid switchover and seamless switchover

          Quick switch:Restart the player internally when switching and seek the play position of the last code rate.

          Advantages:

          • Through precision Seek, the playing position of two code rates can be connected perfectly.
          • Fast switchover speed.

          Disadvantages:

          • Obvious lags of the player.
          • Only support HLS switch.

          Seamless switching:Internally switch the data source in the player, internally seek to the next code rate position, you can just refresh the decoder.

          Advantages:

          • The two code-rate playback positions can be perfectly connected through buffer frame loss.
          • Seamless switching, without obvious stutter
          • Support full format switch.

          Disadvantages:

          • Relatively slow switchover, which is related to the cache size and video code rate set by the user. The greater the size of the cache is, the slower the switchover is. The smaller the buffering is, the faster the switchover will be, but there is probability to occur lags.
          Previous
          Web Platform
          Next
          SDK Integration