Android Question [Resolved] SimpleMediaManager: set the request timeout

TILogistic

Expert
Licensed User
Longtime User
How can I set the request timeout to SimpleMediaManager?

see:


regards.
 

William Lancee

Well-Known Member
Licensed User
Longtime User
I looked at the B4XLib and could not find any exposed parameter for this. However you could try
modifying SimpleMediaManager.bas. Around line 250 add a timeout line. Use the modified module instead.

B4X:
            Dim job As HttpJob
            job.Initialize("", Me)
            job.Download(Media.Meta.FirstUrl)
            job.GetRequest.Timeout = 60000        'some number between 3000 and 10000?

It is too complicated for me too test.
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
I thank you for your reply.

But I know where to modify the Library to fix it.

I just thought there might be another solution to set the parameters of the job request

I've only seen in the library code an exposed parameter, but it's just a sleep between downloads.

SleepDurationBeforeDownload



Regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…