Baidu AI Cloud
中国站

百度智能云

Multimedia Cloud Processing

SDK Integration

Development Environment

  • Xcode 9.2
  • Version IOS 8.0 or above

Cocoapods Rapid Integration

Cocoapods access is very simple. Please see Cocoapods Access Way.

If you use Cocoapods for access, you can skip [Manual Integration](#Manual integration).

Manual Integration

  1. Download the latest Player IOS SDK and decompress;

    Baidu-Cloud-Player-<Type>-<Version> 
    |------frameworks 
    |        |-------BDCloudMediaUtils.framework 
    |        |-------BDCloudMediaPlayer.framework 
    |        |-------BDCloudMediaDownloader.framework 
    |        |-------BDCloudMediaSprite.framework 
    |        |-------BDCloudMediaSource.framework 
    |        |-------BDCloudVRRender.framework 
    |        |-------BDCloudMediaAdaptive.framework 
    |           
    |------vendor               
    |        |-------libffmpeg.a 
    |        |-------libcrypto.a 
    |        |-------libssl.a 
    | 
    |------VideoPlayer 
             |-------VideoPlayer.xcodeproj 
             |-------VideoPlayer 
  2. Add BDCloudMediaUtils.framework and BDCloudMediaPlayer.framework to the project.

    1. If you need to use HLS offline download feature, you shall add BDCloudMediaDownloader.framework to the project;
    2. If you use thumbnail display feature, add BDCloudMediaSprite.framework to the project;
    3. If you use online video acceleration feature, add BDCloudMediaSource.framework to the project;
    4. If you use VR rendering feature, add BDCloudVRRender.framework to the project;
    5. If you need to use self-adaptive code rate switchover feature, add BDCloudMediaAdaptive.framework to the project;

    step1.png

  3. Add libcrypto.a,libssl.aandlibffmpeg.aintoLink Binary With LibrariesofBuild Phases`;

    step2.png

  4. Add libz.tbd and libbz2.tbd to the Link Binary With Libraries of Build Phases; step3.png
  5. Set appropriate Framework Search Paths to ensure that the link can be found:

    • BDCloudMediaUtils.framework
    • BDCloudMediaPlayer.framework
    • BDCloudMediaDownloader.framework
    • BDCloudMediaSprite.framework
    • BDCloudMediaSource.framework
    • BDCloudVRRender.framework
    • BDCloudMediaAdaptive.framework

  6. Set appropriate Library Search Paths; when linking, ensure to find:

    • libcrypto.a
    • libssl.a
    • libffmpeg.a

  7. Add authentication file dependencies;

    ste6

Previous
Andriod Platform
Next
Quick Advancement