0
In my college project I have a small API in Java that extracts audio from video files, where is passed the URL of the video and is returned an MP3 file, so far so good.
I would like to keep a server performing the tasks of downloading the video and then extracting the audio and on the other side a client waiting for the link to download the MP3 file. This would happen as follows: the user informs the link, the server downloads it itself and extracts the audio, after that, and made audio available to the user.
But how would I do that to the client? I would like to implement the client on Android, but how to keep it waiting for the download of the video and extraction to then deliver the MP3 link to download? It’s like I’m a Listener, but there is a communication between client and server. RMI, SOAP, WSDL? I would like a solution that does not impact a possible implementation for iOS or WP.
You can use GCM to notify the device as soon as the extraction is complete. Meanwhile you can keep a wait screen (
ProgressDialog
) or another way of showing that it is pending.– Wakim