Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone : Can't streaming m3u8 url with AudioStreamer
    primarykey
    data
    text
    <p>I'm using <em>Matt Gallagher's</em> <strong>AudioStreamer</strong> to perform audio streaming in app, the <code>URL</code>is coming from server, right now its of type <code>.m3u8</code> format, and the problem is ON, before it was of <code>.mp3</code>type and streamed normally. It showing an error "No audio data found". However I tried to play <code>URL</code> in <strong>Safari</strong> browser in simulator and its playing good so there's no problem with the <code>URL</code>.</p> <p>I've been searching long in google but it was ended with these two SO questions. <a href="https://stackoverflow.com/questions/9922700/how-to-play-m3u8-audio-file">Question-1</a>, <a href="https://stackoverflow.com/questions/2715015/streaming-to-iphone-via-m3u8">Question-2</a>, but none of having the answer of it yes one has solution to play it using <code>MPMoviePlayerController</code> but I want to stream the same with the same I've.</p> <p>So I dig into code of <strong>AudioStreamer</strong> .h and .m files, where I get to know that the logic of file type selection is at #line no. 555</p> <pre><code> + (AudioFileTypeID)hintForFileExtension:(NSString *)fileExtension { .... } </code></pre> <p>an <code>AudioFileTypeID</code> need to return there, the list is defined in <code>AudioFile.h</code> of <code>AudioToolbox.framework</code> doesn't contains <code>.m3u8</code> file type so I can't return it here (I tried for patching with different types there).</p> <p>I tried to find any alternative types (which can be use instead of this) but no results I get. Then I gone through <a href="https://developer.apple.com/library/mac/#documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html" rel="nofollow noreferrer">Apple Doc</a>, and <a href="https://github.com/mattgallagher/AudioStreamer/issues/43" rel="nofollow noreferrer">Issues Discussion</a> but none of helped me!</p> <p>P.S. I've checked <code>AudioToolbox.framework</code> in <code>iOS6.0.</code> to check for the availability of file type but it doesn't exist at all.</p> <p>Any solution?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload