Hi
I am being able to stream the audio via http request with AudioFileStream.But it has been seen that it can only plays urls like "http://202.6.74.107:8060/triplej.mp3" means with an .mp3 extension and unable to play any audio without any extension like the url "http://89.238.252.138:7000" or "http://www.tv-radio.com/station/le_mouv_mp3/le_mouv_mp3-128k.asx".I have put the code of extensions for the file type like this
AudioFileTypeID fileTypeHint = kAudioFileMP3Type;
NSString *fileExtension = [[url path] pathExtension];
if ([fileExtension isEqual:@"mp3"])
{
fileTypeHint = kAudioFileMP3Type;
}
else if ([fileExtension isEqual:@"wav"])
{
fileTypeHint = kAudioFileWAVEType;
}
else if ([fileExtension isEqual:@"aifc"])
{
fileTypeHint = kAudioFileAIFCType;
}
else if ([fileExtension isEqual:@"aiff"])
{
fileTypeHint = kAudioFileAIFFType;
}
else if ([fileExtension isEqual:@"m4a"])
{
fileTypeHint = kAudioFileM4AType;
}
else if ([fileExtension isEqual:@"mp4"])
{
fileTypeHint = kAudioFileMPEG4Type;
}
else if ([fileExtension isEqual:@"caf"])
{
fileTypeHint = kAudioFileCAFType;
}
else if ([fileExtension isEqual:@"aac"])
{
fileTypeHint = kAudioFileAAC_ADTSType;
}
Whether I am doing it wrong or whether the streamer is not being able to play the urls like those.All the links are playing perfectly in the browser.Please help me