rFlex/SCRecorder — pull request #86 by mjgaylord (2014-11-24 13:23:54+00:00)
Title: Add movieFragmentInterval in order to limit buffering time on playback u...

The app that I am building records a video with SCRecorder, uploads it to a server, where it is segmented into an HLS video and then plays it back. What I've noticed is that on slow Internet connections the video quite often needs to be buffered entirely before `AVPlayer` starts playback. I am able to replicate this behaviour using VLC and Safari's video player. Setting the `movieFragmentInterval` on `AVAssetWriter` when it is created to 1 second in `SCRecordSession` and `SCAssetExportSession` reduces the buffer time significantly. I think it has something to do with the MPEG headers inside the exported MP4 file.