aboutsummaryrefslogtreecommitdiffstats
path: root/Video Tuneup/ViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Video Tuneup/ViewController.m')
-rw-r--r--Video Tuneup/ViewController.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Video Tuneup/ViewController.m b/Video Tuneup/ViewController.m
index ec31aa6..50b9e51 100644
--- a/Video Tuneup/ViewController.m
+++ b/Video Tuneup/ViewController.m
@@ -146,7 +146,7 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover;
NSLog(@"Got media item");
// NSLog(@"%@",[[[mediaItemCollection items] objectAtIndex:0]valueForKey:MPMediaItemPropertyTitle]);
-// NSURL *url = [[[mediaItemCollection items] objectAtIndex:0] valueForProperty:MPMediaItemPropertyAssetURL];
+ NSURL *url = [[[mediaItemCollection items] objectAtIndex:0] valueForProperty:MPMediaItemPropertyAssetURL];
// NSLog(@"%@", url);
[self loadAudioFromFile:url];
@@ -462,11 +462,12 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover;
[self.mediaLibraryPopover presentPopoverFromRect:[theButton bounds] inView:theButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
-#pragma mark DEEEERRRRRRRRRRRRPPPPPPPPPPPPP
+#pragma mark - Networking
-- (IBAction)derpSendPostRequest:(id)sender {
+- (IBAction)sendMixRequest:(id)sender {
WebserviceCommunicator *com = [[WebserviceCommunicator alloc] init];
NSURL *songFileURL = [[NSBundle mainBundle] URLForResource:@"song" withExtension:@"mp3"];
+ [com setParentController:self];
[com mixMusic:songFileURL];
}