Open Friend-LGA opened 10 years ago
But this solution doesn't solve all problems. We need to make possible to identify file type even when we don't know MIME type. Like it working in FreeStreamer.
I will try to make it, if i can - wait for pull request.
It's better to have the mime type or file extension. Why do you not have the MIME type?
I think it's because some streams have ShoutCast protocol. And its doesn't include MIME type in response, we need to make some more work to get MIME type from ShoutCast.
I already write my class to identify content type of stream independently from protocol. But I done it using objective-c NSURLConnection I'm not familiar with C++, maybe you can translate it? https://github.com/Friend-LGA/AudioStreamContentTypeGetter
Then I change method:
to
some more stations became playable.