mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Set file extension #36

Closed devgeeks closed 12 years ago

devgeeks commented 13 years ago

Added fileExtension member to aid/override detection of stream type for URLs without an extension present.

Comment at line 1297 of AudioStreamer.m mentions possibly having to hardcode a file-type if the detection doesn't work based on the stream URL.

Trying to avoid this, I have added a fileExtension member that can be set from whatever is instantiating AudioStreamer (your view controller or whatever) to aid it in playing these kinds of streams. If not set it will continue to attempt detection based on the URL.