最近因为项目需求 ,需要播放网络视频 ,于是乎 研究了一番 ,说说我遇到的那些坑
现在市面上有几个比较主流好用的第三方框架
Vitamio ( 体积比较大,有商业化风险 github:https://github.com/yixia/VitamioBundle/)
ijkplayer(B站下开源的框架 体积大 配置环境比较麻烦 github:https://github.com/Bilibili/ijkplayer )
PLDroidPlayer(七牛根据ijkplayer二次开发的 定制简单 github:https://github.com/pili-engineering/PLDroidPlayer)
继续阅读
|
在做项目中,遇到一个很奇怪的问题 ,当调用fragmentTransaction.commit的时候 fragment的生命周期并没有立即执行,下面是我的代码
manager = getSupportFragmentManager();
FragmentTransaction ft = manager.beginTransaction();
MainFragment fragment = new MainFragment();
ft.add(R.id.fl_content, fragment);
ft.commit();
fragment.setInfo();
继续阅读
|
项目原本只加入高德sdk的时候,获取map,添加marker一切正常 ,可是只要我加入个推sdk后 编译运行 居然报高德地图的错 ,当时了就懵了- -这个是错误日志
java.lang.UnsatisfiedLinkError: No implementation found for long com.autonavi.amap.mapcore.MapCore.nativeNewInstance(java.lang.String, java.lang.String) (tried Java_com_autonavi_amap_mapcore_MapCore_nativeNewInstance and Java_com_autonavi_amap_mapcore_MapCore_nativeNewInstance__Ljava_lang_String_2Ljava_lang_String_2)
at com.autonavi.amap.mapcore.MapCore.nativeNewInstance(Native Method)
at com.autonavi.amap.mapcore.MapCore.newMap(MapCore.java:83
继续阅读
|