Android:giraffeplayer2 ConnectException:Failed to connect to raw.githubusercontent.com/0.0.0.0:443
16lz
2021-12-04
使用giraffeplayer2 播放网络视频,出现了:
com.github.kevinsawicki.http.HttpRequest$HttpRequestException: java.net.ConnectException: Failed to connect to raw.githubusercontent.com/0.0.0.0:443
这个在第一次播放的时候,会去github上下载对应cpu架构的包,出现这个,应该是连不上库了,所以手动在build.gradle上添加架构库:
//for all decodersimplementation 'com.github.tcking:ijkplayer-arm64:0.8.8-full' //support arm64implementation 'com.github.tcking:ijkplayer-armv5:0.8.8-full' //support armv5implementation 'com.github.tcking:ijkplayer-x86:0.8.8-full' //support x86implementation 'com.github.tcking:ijkplayer-x86_64:0.8.8-full' //support x86_64
重新安装后,成功播放
附上他的github地址:
https://github.com/tcking/GiraffePlayer2
更多相关文章
- 基于Android(安卓)6.0修改的音乐播放器可设置卡1卡2铃声
- 如何查看Android设备的CPU架构信息
- android音乐播放器Service的生命周期分析
- android 跳动频谱 播放器(类似千千静听)
- android 跳动频谱 播放器(类似千千静听)
- android音乐播放器Service的生命周期分析
- [hanchao3c]Android的MediaPlayer架构介绍 + 补充
- android 音乐播放器简单实现
- Android(安卓)SurfaceView+MediaPlayer实现视频播放