尝试 Android Bilibili/ijkplayer

我的系统:Mac os x 10.10.9

NDK版本:android-ndk-r10d

./bashrc配置:

export ANDROID_DIR=/Users/jerikc/Library/Android
export ANDROID_HOME=$ANDROID_DIR/sdk
export ANDROID_NDK=$ANDROID_DIR/android-ndk-r10d
export PATH=$PATH:$ANDROID_NDK:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools

根据README.md的提示,

git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
cd ijkplayer-android
git checkout master

./init-android.sh

cd android
# add property ANDROID_NDK to gradle.properties

./gradlew cleanFFmpeg buildJniLibs

然后编译  ijkmediademo:

./gradlew assembleDebug
apk将会生成在: ijkplayer-android/ android/ ijkmediademo/build/outputs/apk/ijkmediademo-debug.apk

adb install 即可!

PS: ijkplayer项目的相关脚本,这里有详细的介绍!

你可能感兴趣的:(player,android)