AudioStreamer icon indicating copy to clipboard operation
AudioStreamer copied to clipboard

No Audio data found..... Yet it's an MP3 file!?!?

Open aderrington opened this issue 13 years ago • 3 comments

Hi, I'm trying to play an mp3 stream from the internet however it's just not working at the moment, i keep getting the error message "No audio data found" Can someone else try this stream and see if it plays for them? The address is: http://csmedia.serverroom.us:8720/;stream.mp3 I've tried a lot of different url variations but none of them work, however if i used MPMoviePlayer it will work fine with that, but i need the stream to play in the background and while the user is doing other things within the app.

I Hope someone else out there has an idea why this doesn't seem to work for me.

Many thanks,

Andrew

aderrington avatar Nov 20 '11 15:11 aderrington

Someone have a solution for this issue?

simoa avatar Jan 02 '12 10:01 simoa

I suppose if you use http://csmedia.serverroom.us:8720 and you hard code if it is necessary at line 1299 of AudioStreamer.m the file-type you will be ok. Change AudioFileTypeID fileTypeHint = [AudioStreamer hintForFileExtension:[[url path] pathExtension]]; With: AudioFileTypeID fileTypeHint = kAudioFileMP3Type; I hope this helps...

whsecurity avatar Jan 17 '12 09:01 whsecurity

@whsecurity Thank you very much,谢谢你,方法非常有用~

a363211861 avatar Mar 28 '13 06:03 a363211861