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

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