如何在ios中播放完整的m3u音频流

如何在ios中播放完整的m3u音频流,ios,m3u,Ios,M3u,以上代码用于ios开发,但m3u仅需播放20秒,如何在《势不可挡》中播放完整的m3u,请提供一些教程。这是一个纯文本文件。它不是实际的音频流。 NSURL *url = [NSURL URLWithString:@"http://yyyyy.com/radio.m3u"]; moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; // Register to receive a notificat

以上代码用于ios开发,但m3u仅需播放20秒,如何在《势不可挡》中播放完整的m3u,请提供一些教程。

这是一个纯文本文件。它不是实际的音频流。
NSURL *url = [NSURL URLWithString:@"http://yyyyy.com/radio.m3u"];
  moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];

   // Register to receive a notification when the movie has finished playing.
   [[NSNotificationCenter defaultCenter] addObserver:self
                                            selector:@selector(moviePlayBackDidFinish:)
                                                name:MPMoviePlayerPlaybackDidFinishNotification
                                              object:moviePlayer];
   NSLog(@"start");
   if ([moviePlayer respondsToSelector:@selector(setFullscreen:animated:)]) {


       NSLog(@"IF");
       // Use the new 3.2 style API
       moviePlayer.controlStyle = MPMovieControlStyleNone;
       moviePlayer.shouldAutoplay = YES;
       [self.view addSubview:moviePlayer.view];
       [moviePlayer setFullscreen:YES animated:YES];
   } else {
       // Use the old 2.0 style API
      // moviePlayer.movie = MPMovieControlModeHidden;
       NSLog(@"else");
       [moviePlayer play];  
   }