android vitamio的坑

vitamio是android比较方便的一款播放在线视频或者本地视频的开源组件,如果你从网上搜教程,一般都会教你去github链接下载demo,并导入lib,我也这么做了,但是事实证明,更方便的是右击app,open Module Setrings ,在Dependencies中点击绿色的加号选择Library,输入vitamio就可以找到,选择第一个com.charonchui.vitamio:vitamio点击ok,点击finish,就可以自动编译啦。而且导入lib和自动编译差距最大的就是你在使用这个组建的时候,如果你是导入lib,VideoView默认是系统自带的VideoView且不可以选择,而如果我们是依赖的话,会让你选择,咱们选择vitamio下面的就可以啦(这是第一个坑,不然你还得输入包名等等,很麻烦)

vitamio我之前下载了官方demo,搞了一个链接,测试机测试,怎么都闪退报错,错误:

LOAD FFMPEG ERROR : dlopen failed : /data/data/com.example.administrator.myapplication/libs/libffmpeg.so:has text relocation

后来终于找到原因和办法

原因:targetSdkVersion 为23 也就是说 vitamio当前是不可以支持23的 

解决办法:当然是降低我们的目标版本 改为21就可以啦

最近在入视频播放的坑,好想做个自己的直播软件,嘻嘻嘻

转载于:https://www.cnblogs.com/cherrylv/p/6207222.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Vitamio =============== Vitamio is an open multimedia framework for Android and iOS, with full and real hardware accelerated decoder and renderer. New features ------------ Only few important features are listed here, we have fix many bugs and may introduce some new bugs. 1. The latest FFmpeg 2.0 git version, which should fix most playback issues, or bring some issues. 2. Support most FFmpeg AVOptions, which enables custom HTTP headers support. 3. Support more hardwares, e.g. X86 or MIPS. 4. Improve streaming, especially support adaptive bitrate streaming, you need open manually. 5. OpenSSL included, so some SSL related protocols, such as https, tls, rtmps, rtmpts, are supported. 6. Playback speed control from 0.5x to 2.0x. 7. Audio amplify to 2x volume. 8. Improved subtitle support, including external bitmap subtitles. 9. Cache online video to local storage and can be reused until you delete the cache file. 10. More MediaPlayer API, e.g. `getMetadata`, `getVideoTrack`. 11. The full Java code is open to all developers, modify and contribute is welcome. 12. Support RGBA\_8888 rendering, spport switching RGB\_565 or RGBA\_8888 to video rendering. 13. Enhance the hardware decoding in Android 16+. 14. Support ARMV6 CPU, may have some bugs. How to use ---------- please see [the website](https://github.com/yixia/VitamioBundle/wiki) License ------- Please see [License](http://www.vitamio.org/en/License) ## Google+ Vitamio Developers Community on Google+ [http://goo.gl/fhCDTD](http://goo.gl/fhCDTD)

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值