Hi Wil --  That's a good idea.   I don't have control over the server's
streams (it's just icecast streamed mp3s).   But do you mean to create a
simulated HLS file locally?

   I'd need to keep each segment very short though, maybe just 1 second
long each?  This way the file will appear to smoothly grow.  Is that
possible?

   Also, what is a recommended way to play back that will realize the HLS
sequence has changed in the midst of playback.

Thanks-
Matt

On Fri, Jul 24, 2015 at 8:47 PM, Wil Macaulay <[email protected]>
wrote:

> Sounds like the perfect usecase for HLS - record segments to local storage
> and periodically rewrite an M3U8 playlist without a closing tag, then close
> the playlist  by writing the closing tag on stream close.
>
>
>
> On Fri, Jul 24, 2015 at 12:44 PM, Matthew Pease <[email protected]> wrote:
>
>> Hi all -
>>
>> I've searched for a previous answer to this question, but did not find
>> one.
>>
>> In my IOS app, I record a stream to a file.   I then want to provide
>> playback access to that file starting from any offset.  The user can listen
>> to any part of that file by dragging a slider.
>>
>> The problem is that the file is continuously growing while the new stream
>> data arrives & is appended to the file.
>>
>> ExtAudioFileSeek says that its behavior is undefined for files that are
>> open for writing.  Also when I play the file back, I might move past a
>> point which was the end of the file when the file was originally opened.
>>
>> I suppose one way I could do it would be to continuously close & open the
>> file.  open to write, then close it.   And then open it again to read the
>> next part of the stream.  I can make the file an uncompressed format so
>> that seeking within the file will be fast.
>>
>> Does this sound like a good plan?  Any other possibilties?
>>
>>
>> Thank you-
>> Matt
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>>
>> https://lists.apple.com/mailman/options/coreaudio-api/wil.macaulay%40gmail.com
>>
>> This email sent to [email protected]
>>
>
>
>
> --
> The Craic app: http://thecraic.co abc tunes on the iPad and iPhone
> Sideband app: http://sideband.co slow down, loop and change the key.
> Learn by ear.
> Products and services: http://flagpig.com
> Twitter: @tom_frog
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to