文章标题

来源:互联网 发布:js实现换肤功能 编辑:程序博客网 时间:2024/06/06 06:44

基于IJKPLayer的播放器——编译IJkplayer

 在Git网站上的ijkplayer是需要进过编译后才能使用的,并且文档指明了编译的步骤,大家可以先看看GitHub上的编译说明,只要你耐心的看就会很好的进行编译,那么现在我就谈谈我在进行编译过程中遇到的个别问题: 先看看原文章在此建议使用Ubuntu进行编译,至于如何在Windows上安装Ubuntu大家自己百度,

install homebrew, git, yasm

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew install git
brew install yasm
//这里是如何为编译配置Android和java环境,包含jdk安装配置,Android安装和环境配置,如何配置环境自己百度,很重要不然到死都编译不通过,

add these lines to your ~/.bash_profile or ~/.profile

export ANDROID_SDK=

export ANDROID_NDK=

安装编译所需的软件

on Cygwin (unmaintained)

install git, make, 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

If you prefer less codec/format for smaller binary size (include hevc function)
如果你想编译少的格式
cd config
rm module.sh
ln -s module-lite-hevc.sh module.sh
cd android/contrib

cd ios

sh compile-ffmpeg.sh clean

>If you prefer less codec/format for smaller binary size (by default)默认编译支持的音视频格式

cd config
rm module.sh
ln -s module-lite.sh module.sh
cd android/contrib

cd ios

sh compile-ffmpeg.sh clean

For Ubuntu/Debian users.

choose [No] to use bash

sudo dpkg-reconfigure dash
这是第二步
If you’d like to share your config, pull request is welcome.

Build Android

git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
第三步,当然了你要保证先下载文件才能执行这几步,所以可以说git clone市第一步;
cd ijkplayer-android
git checkout -B latest k0.8.4

./init-android.sh

cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

cd ..
./compile-ijk.sh all

原创粉丝点击