iOS開發筆記--開源播放框架ijkplayer(iOS版)使用教程


ijkplayer 是一款做視頻直播的框架, 基於ffmpeg, 支持 Android 和 iOS,並且支持https,用途比較廣泛

環境配置

`install homebrew, git, yasm
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm`
  • If you prefer more codec/format(這一步我沒有配置的時候,底包編譯失敗了)
    `cd config
    rm module.sh
    ln -s module-default.sh module.sh
    cd android/contrib

    cd ios

    sh compile-ffmpeg.sh clean`

編譯ijkplayer

  • 使用git克隆項目到本地

    git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-ios cd ijkplayer-ios git checkout -B latest k0.6.3

  • 初始化基礎包

    ./init-ios.sh ./init-ios-openssl.sh ./init-config.sh

  • 編譯基礎包

    cd ios ./compile-ffmpeg.sh clean ./compile-openssl.sh clean ./compile-openssl.sh all ./compile-ffmpeg.sh all


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM