vitamio这个视频框架已经有快两年没有没有使用过了,今天想写个demo再复习下。
- 首先肯定是下载官方的demo跑一下了,他们的demo放在github上,所以我就直接上github搜索并下载VitamioBundle,我个人比较喜欢用新的api,所以手动将targetSdkVersion改为了27,重新编译运行,app打开了,没问题,点击VideoView条目跳转播放页面播放,居然崩溃了。
07-19 07:44:09.764 5133-5133/io.vov.vitamio.demo E/linker: "/data/data/io.vov.vitamio.demo/libs/libffmpeg.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
07-19 07:44:09.765 5133-5133/io.vov.vitamio.demo E/Vitamio[4.2.1][Player]: LOAD FFMPEG ERROR: dlopen failed: "/data/data/io.vov.vitamio.demo/libs/libffmpeg.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
07-19 07:44:09.766 5133-5133/io.vov.vitamio.demo E/Vitamio[4.2.1][Player]: FIND_NAME_SYM vvo, render_yuv
07-19 07:44:09.768 5133-5133/io.vov.vitamio.demo A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 5133 (ov.vitamio.demo), pid 5133 (ov.vitamio.demo)
07-19 07:44:09.792 5170-5170/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.021/4741582:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 5133, tid: 5133, name: ov.vitamio.demo >>> io.vov.vitamio.demo <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
eax ca5b5ac0 ebx ca5aded8 ecx e49a91e4 edx e3b10860
07-19 07:44:09.792 5170-5170/? A/DEBUG: esi e3b10860 edi 00000075
xcs 00000023 xds 0000002b xes 0000002b xfs 0000006b xss 0000002b
eip 00000000 ebp ca598f98 esp ff832c2c flags 00010246
backtrace:
#00 pc 00000000 <unknown>