You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if user has been selected persian or arabic language from settings of the device, the video cache will not work because of arabic/persian digits in pingUrl:
Logcat:
Open connection to http://127.0.0.1:۴۲۵۸۹/ping
Error reading ping response
com.danikula.videocache.ProxyCacheException: Error opening connection for http://127.0.0.1:۴۲۵۸۹/ping with offset 0
i just solved the problem by adding a method in HttpProxyCacheServer.java:
Activity
saeed74 commentedon Sep 5, 2016
Oh And Another Problem When Language is Persian/Arabic:
When Useing this code:
the proxyUrl will be like below:
http://127.0.0.1:۵۷۹۷۱/https%3A%2F%2Fdl.dropboxusercontent.com%2Fs%2Fb0pbv3c1y6ssw16%2Fmardome_shahr.mp3that is obvious will not work and it respond with MediaPlayer Error (1, -1004).
I used convertToEnglishDigits method again for handle this:
btw Thank You for Your Library<3
EDIT 1:
still getting some errors like MediaPlayer: error (100, 0) or MediaPlayer: error (-38, 0) ONLY if language is persian/arabic.
I will wait for your solution. thanks again
EDIT 2:
setting app language in Application Class is another solution that I found:
working good but i dont know why i feel bad about it!
[-]VideoCache Not Working When Language of Phone is Arabic/Persian[/-][+]Doesn't work for Arabic locale[/+]📦 release 2.6.1. fix 🐛 #87 : work with Arabic locale
danikula commentedon Sep 5, 2016
@saeed74 fixed in 2.6.1. Thanks for your contribution.