bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

Cant play video #1769

Open mittalharsh54 opened 8 years ago

mittalharsh54 commented 8 years ago

Error in playing videoes tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)

I am trying to play this https://firebasestorage.googleapis.com/v0/b/boiling-fire-5986.appspot.com/o/01082016111327iOS.mp4?alt=media&token=dc60aae2-2231-490f-bb88-09c492ebb053 but it is giving error.

ctiao commented 8 years ago

https is disabled by default. You need to build FFmpeg with OpenSSL. sh init-android-openssl.sh cd android/contrib sh compile-openssl.sh Then compile FFmpeg & ijjkplayer

mittalharsh54 commented 8 years ago

can you please elaborate how to do fix it i dont know how to do what you suggested

ctiao commented 8 years ago
  1. you need to build ijkplayer by yourself. see README : https://github.com/Bilibili/ijkplayer#build-android https://github.com/Bilibili/ijkplayer#build-ios
  2. you need to compile OpenSSL before the building step. see upstairs
SufianBabri commented 7 years ago

@ctiao I followed compile ijkplayer with openssl which is a great tutorial.

Big thanks to the issue in a related repo.

Just in case that link goes down, I'm quoting it here:

  1. Change config/module.sh with module-lite.sh

    cd config rm module.sh ln -s module-lite.sh module.sh

  2. init openssl

    cd .. ./init-android-openssl.sh

  3. compile openssl

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

  4. init android

    cd ../.. ./init-android.sh

  5. compile ffmpeg (x86_64 need yasm: $ brew install yasm)

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

  6. compile ijk

    cd .. ./compile-ijk.sh all

  7. copy so files

    cp ijkplayer/ijkplayer-armv5/src/main/libs ijkplayer-java/src/main/jniLibs cp ijkplayer/ijkplayer-armv7a/src/main/libs ijkplayer-java/src/main/jniLibs cp ijkplayer/ijkplayer-arm64/src/main/libs ijkplayer-java/src/main/jniLibs cp ijkplayer/ijkplayer-x86/src/main/libs ijkplayer-java/src/main/jniLibs

Note: I've removed $ in the terminal commands so that it makes copy/paste easier.