Playing audio file while I download it
问题 I am trying to play partially downloaded file (I want the audio to start when it has enough downloaded data). I have tried the following: self.mutableData = nil; self.mutableData = [NSMutableData data]; self.mutableData.length = 0; GTMHTTPFetcher *fetcher = [[self driveService].fetcherService fetcherWithURLString:song.filePath]; [fetcher setReceivedDataBlock:^(NSData *dataReceivedSoFar) { [self.mutableData appendData:dataReceivedSoFar]; if (!self.audioPlayer.playing && self.mutableData.length