Skip to content

previewURL returns NSString wrapped in an NSURL pointer #7

@sdgandhi

Description

@sdgandhi

previewStream is a NSString with the following code

    AJSITunesClient *client = [AJSITunesClient sharedClient];
    [client searchMedia:[NSString stringWithFormat:@"%@ %@", self.text[0], self.text[1]] completion:^(NSArray *results, NSError *error) {
        NSLog(@"Finished with results: %@", results);

        if (results.firstObject) {
            NSURL *previewStream = ((AJSITunesResult *)results.firstObject).previewURL;
            [self.audioPlayer play:previewStreamString];
        }
    }];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions