feasibility question simple mp3 download/play app
So i'm relatively new to python, but have a moderate amount of matlab programming experience, so not a complete newbie to programming. I was wondering if this idea would be possible in Pythonista on an iPad.
So a local talkback radio station uploads 15min increment mp3 files of their show each day. I have currently got a python script running on my mac which loops through a time vector and downloads 24 individual 15min mp3 files and then uses the shell concatenate command to merge them into one single mp3 file. I then manually copy this mp3 file over to my iPone and change it's metadata to be a podcast, so I can listen to it in the iPhone podcast player.
My idea for a simple pythonista iPhone/iPad app was to have a basic GUI with a button, that when clicked downloads all of the mp3 files and then merges them into a single file. I would then like to have a play/pause button, and a 30second skip forward and 15second skip back button to allow for easy skipping over advertisements.
Does this sound achievable to adapt my current mac script to run on an iPad with Pythonista? From what I can tell so far, mp3/music playback is not too easy under pythonista.
Thanks for any thoughts!
if you download an mp3, you can play it. (I think somewhere along the lines, folks thought you had to rename it to .caf, which I think is not the case anymore).
As for merging mp3s, you would need a pure python library to do this, not sure what is out there. But, if you handle things like a playlist player where you loop over tracks, you wouldn't have to merge at all.
I don't think there is a good method (or any method) to fast forward, at least not directly in pythonista.
os.path.abspath(yourfilename). Another would be to run a local webserver running something like this, and then connect to localhost. That player seems to have fastforward, etc -- I'm sure a simple web search can turn up all sorts of javsacript based sound players that do what you want. See jplayer for example.