bcjordan / Video-Tuneup

iOS video/audio auto-mixer
28 stars 14 forks source link

Create iOS -> API -> Python -> iOS layer #21

Open bcjordan opened 12 years ago

bcjordan commented 12 years ago

add button to "Upload" on iOS app

send any file, maybe demo parameter to web API

write file to disk (on server)

call some shell command on the file (use pyechonest-remix example or otherwise emulate long timeout)

send file back

bcjordan commented 12 years ago

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html

bcjordan commented 12 years ago

http://www.iphonedevsdk.com/forum/iphone-sdk-development/19643-http-upload-file-server.html

teddywing commented 12 years ago

Sinatra-backed file upload/download service written. Seems to work with a curl request. Hoping it works with an iOS request.

Problem: can't get echonest-remix-api installed on my server because it seems to require root access. Therefore, for Thursday our server will be my computer.

Upcoming: iPad HTTPrequest

bcjordan commented 12 years ago

Hey Teddy,

Nice, sounds good. Bummer about the python install, suspected that might be an issue. You wanna throw that code up on github somewhere? I could set it up on a linode or amazon ec2 server real quick tonight or tomorrow if it might help, it'd be nice to have a static public ip to point to (unless we configure a local one just before our presentation)

For now I'll focus on getting a demo python music chopping command line app done. I can commit it to the server github repo if you set that up with the Sinatra code.

On Apr 25, 2012, at 8:44 PM, teddywingreply@reply.github.com wrote:

Sinatra-backed file upload/download service written. Seems to work with a curl request. Hoping it works with an iOS request.

Problem: can't get echonest-remix-api installed on my server because it seems to require root access. Therefore, for Thursday our server will be my computer.

Upcoming: iPad HTTPrequest


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/21#issuecomment-5347165

teddywing commented 12 years ago

Sure, the server code is here: https://github.com/teddywing/video-tuneup-stewardess

Not entirely complete yet but it's actually pretty stupid-simple.

Don't worry about setting up a Linode or EC2 for Thursday. We'll have
a static public IP no problem.

Added you as a contributor on the webservice repo I just created so
you can throw your python music code up there when you get a chance.

On Apr 25, 2012, at 9:59 PM, Brian Jordan wrote:

Hey Teddy,

Nice, sounds good. Bummer about the python install, suspected that
might be an issue. You wanna throw that code up on github
somewhere? I could set it up on a linode or amazon ec2 server real
quick tonight or tomorrow if it might help, it'd be nice to have a
static public ip to point to (unless we configure a local one just
before our presentation)

For now I'll focus on getting a demo python music chopping command
line app done. I can commit it to the server github repo if you set
that up with the Sinatra code.

On Apr 25, 2012, at 8:44 PM, teddywingreply@reply.github.com wrote:

Sinatra-backed file upload/download service written. Seems to work
with a curl request. Hoping it works with an iOS request.

Problem: can't get echonest-remix-api installed on my server
because it seems to require root access. Therefore, for Thursday
our server will be my computer.

Upcoming: iPad HTTPrequest


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/ 21#issuecomment-5347165


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/ 21#issuecomment-5347956

bcjordan commented 12 years ago

Great. I just got distracted working on getting video loading working: https://github.com/bcjordan/Video-Tuneup/issues/19

Then I'll do and push python code.

On Wed, Apr 25, 2012 at 10:38 PM, teddywing < reply@reply.github.com

wrote:

Sure, the server code is here: https://github.com/teddywing/video-tuneup-stewardess

Not entirely complete yet but it's actually pretty stupid-simple.

Don't worry about setting up a Linode or EC2 for Thursday. We'll have a static public IP no problem.

Added you as a contributor on the webservice repo I just created so you can throw your python music code up there when you get a chance.

On Apr 25, 2012, at 9:59 PM, Brian Jordan wrote:

Hey Teddy,

Nice, sounds good. Bummer about the python install, suspected that might be an issue. You wanna throw that code up on github somewhere? I could set it up on a linode or amazon ec2 server real quick tonight or tomorrow if it might help, it'd be nice to have a static public ip to point to (unless we configure a local one just before our presentation)

For now I'll focus on getting a demo python music chopping command line app done. I can commit it to the server github repo if you set that up with the Sinatra code.

On Apr 25, 2012, at 8:44 PM, teddywingreply@reply.github.com wrote:

Sinatra-backed file upload/download service written. Seems to work with a curl request. Hoping it works with an iOS request.

Problem: can't get echonest-remix-api installed on my server because it seems to require root access. Therefore, for Thursday our server will be my computer.

Upcoming: iPad HTTPrequest


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/ 21#issuecomment-5347165


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/ 21#issuecomment-5347956


Reply to this email directly or view it on GitHub: https://github.com/bcjordan/Video-Tuneup/issues/21#issuecomment-5348401

teddywing commented 12 years ago

Implemented HTTPRequest code to both upload a song and download a song from/to the server.

teddywing commented 12 years ago

Tried integrating the webservice, but wasn't quite sure where to put it. Sample code for initialising WebserviceCommunicator is in derpSendPostRequest:.

Ideally we would have a separate scrubber to preview the audio, but that's not going to happen for Thursday (today). Ideally what should happen is that ViewController should get registered as a WebserviceCommunicatorDelegate. When WebserviceCommunicator's connectionDidFinishLoading: method is called, it would call the delegate method on ViewController, which would then know to put the audio in the scrubber (or in this case just export the finished audio).

bcjordan commented 12 years ago

Nice library for networking, file uploading / progress notification, etc: https://github.com/AFNetworking/AFNetworking

Probably not worth implementing now that we rolled our own, but good for future reference.