Open KeyideasGlobal opened 10 years ago
Hi, all i am using audiostremar class for my mp3 url mp3 is 25 min long but streaming stop after 10 min , how i resolve this, i want to play whole mp3 one time. Mp3 url http://www.bookguts.com/wp-content/uploads/BigThinkStrategy_Bernd-H-Schmitt.mp3
I am also want audio running in Background adding code
[[AVAudioSession sharedInstance] setActive:NO error:nil]; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:nil]; [[AVAudioSession sharedInstance] setActive: YES error: nil]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
if (streamer) { return; } [self destroyStreamer]; NSString *escapedValue =[(NSString *)CFURLCreateStringByAddingPercentEscapes( nil, (CFStringRef)Audiurl, NULL, NULL, kCFStringEncodingUTF8) autorelease]; NSURL *url = [NSURL URLWithString:escapedValue]; streamer = [[AudioStreamer alloc] initWithURL:url]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
On background in project capability but still it stop after 10 min same. how resolve this.
Thanks in adv Mahendra
Hi, all i am using audiostremar class for my mp3 url mp3 is 25 min long but streaming stop after 10 min , how i resolve this, i want to play whole mp3 one time. Mp3 url http://www.bookguts.com/wp-content/uploads/BigThinkStrategy_Bernd-H-Schmitt.mp3
I am also want audio running in Background adding code
[[AVAudioSession sharedInstance] setActive:NO error:nil]; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:nil]; [[AVAudioSession sharedInstance] setActive: YES error: nil]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
On background in project capability but still it stop after 10 min same. how resolve this.
Thanks in adv Mahendra