HomeiOS Developmentios - Obtain giant audio recordsdata to play even in background and...

ios – Obtain giant audio recordsdata to play even in background and poor community


I’m engaged on a utility that’s just like podcast the place consumer have a whole lot of audio periods to play and obtain. Some periods are an hour lengthy. When a consumer faucets on any session to play, lets name it downloadToPlay, the community name to obtain it within the temp listing takes place. When consumer faucet on obtain icon, name it downloadToSave the community name is made and saved within the doc listing. In brief, each require downloading the information and storing it into listing.

The Downside: some consumer will hit play button(downloadToPlay) and can instantly transfer to background. The obtain will nonetheless occur as a result of I’ve background activity operating. However that has time restrict of 30 second, so dangerous community or large recordsdata downloads won’t be completed on this time interval inflicting the audio to by no means play.

Expectations: What my shopper needs to realize is when the consumer downloads to play and strikes into background, it ought to obtain it in background and play regardless of community circumstances.

I’ve discovered this however the issue is in accordance with the hyperlink the background activity can start when the system finds excellent state of affairs. I dont know if it may occur instantly or not.

PS: Im utilizing Alamofire for community calls.
Can anybody inform me how you can obtain the big file downloads instantly whereas background/foreground and play it when performed regardless of community.

Thanks upfront.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments