iOS online radio streaming questions

后端 未结 3 1708
说谎
说谎 2020-12-28 09:42

I have to create app that provides online radio streaming (icecast), preferably .ogg format. So I have next questions:

  1. How can I play .ogg
3条回答
  •  不思量自难忘°
    2020-12-28 10:01

    I think the first thing to do is to "order" the meta data by setting the request header:

    CFHTTPMessageSetHeaderFieldValue(message, CFSTR("Icy-MetaData"), CFSTR("1"));
    

    In my case I added this line to Matt Galaghers's Audio Streamer. The result was that I could actually hear the metadata when the stream was playing because it was contained in the stream data. The next step was to filter the meta data out and interpret it. To achieve this all the necessary information are already mentioned here.

    Good luck!

提交回复
热议问题