Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:02:12+00:00 2026-06-03T00:02:12+00:00

I am using the Matt Gallagher’s algorithm to perform mp3 streaming in iOS but

  • 0

I am using the Matt Gallagher’s algorithm to perform mp3 streaming in iOS but sometimes when you pause the application and, after some time, resume the song a message pop up: “Unable to configure network stream read”. I have analyzed the code, but I do not see how to get around this error. Has anyone managed to cope better with this error?

Matt Gallagher’s AudioStreamer code

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:02:13+00:00Added an answer on June 3, 2026 at 12:02 am

    I have experienced the same thing with this 3rd party app and could not find a solution for that and then I have tried apple’s native avplayer (not avaudioplayer) which gives you the ability to stream with the function :initWithURL . here’s the class reference, by the way : http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html

    in addition here’s my code for playing music :

    NSURL *url = [[NSURL alloc] initWithString:sourceURL];
                theItem = [AVPlayerItem playerItemWithURL:url];
                theItem addObserver:self forKeyPath:@"status" options:0 context:nil];
                theAudio = [AVPlayer playerWithPlayerItem:mainDelegate.theItem];
    

    to catch whether the player is readyto play you add the observer above and then you can check it like :

    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
                            change:(NSDictionary *)change context:(void *)context {
        if (object == theItem && [keyPath isEqualToString:@"status"]) {
            if(theItem.status == AVPlayerStatusReadyToPlay)    
            {
                [theAudio play];
                [theItem removeObserver:self forKeyPath:@"status"];
            }
            else if(theItem.status == AVPlayerStatusFailed) {
                NSLog(@"%@" , mainDelegate.theItem.error.description);
            }
            else if(theItem.status == AVPlayerStatusUnknown)
                NSLog(@"unknown");
        }
    }
    

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using code of Matt Gallagher for streaming player and there are some
I'm using Matt Gallagher's Audio Streaming Project . I downloaded the code/project and it
I'm using a version of Matt Gemmell's MGTwitterEngine, and I'm trying to get some
I'm using Matt Gallagher's GenericTableViewController idea for controlling my UITableViews . My datasource is
I'm using Matt Gallagher's AudioStreamer to play MP3s over HTTP. I need to know
I'm using Matt Gallagher's awesome AudioStreamer example to play an audio file via AudioSession.
In recent work, I am using Matt Gallagher's AudioStreamer ( downloaded from here )
using Matt's util code (a bit edited for Unicode text) public class GridViewExportUtil {
Using top it's easy to identify processes that are hogging memory and cpu, but
Edit: changing .ready() call per Matt's suggestion. I use jQuery to configure some stuff

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.