Android:giraffeplayer2 ConnectException:Failed to connect to raw.githubusercontent.com/0.0.0.0:443

使用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 decoders
implementation 'com.github.tcking:ijkplayer-arm64:0.8.8-full' //support arm64
implementation 'com.github.tcking:ijkplayer-armv5:0.8.8-full' //support armv5
implementation 'com.github.tcking:ijkplayer-x86:0.8.8-full' //support x86
implementation 'com.github.tcking:ijkplayer-x86_64:0.8.8-full' //support x86_64

重新安装后,成功播放

附上他的github地址:

https://github.com/tcking/GiraffePlayer2

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章