Reputation: 67
I'm using this code to play a radio stream:
NSURL *vibes = [NSURL URLWithString:@"http://website.com:8002"];
vPlayer = [[AVPlayer alloc] initWithURL:vibes];
[vplayer play];
Works well while the app is open, but when I go to the background it stops playing. I need it to keep playing in the background like the music app.
Upvotes: 0
Views: 102
Reputation: 3271
You'll want to read up on Apple's Audio Session Programming Guide.
Upvotes: 1