After recording a live stream with Wowza, it was not as simple as I thought to make the recording available for on demand viewing in a way that works for browsers and iOS devices.Â I moved the recording to my S3 bucket and was trying to make it available via CloudFront.
After much trial and error, the solution had two parts:
1. Convert the file from flv to mp4.Â I used AVS Video Editor with custom file settings to get an H.264 file with “mp4 iso v.2”
2. Serve up the file with a jwplayer playlist that contains two sources: an rtmp source from a CloudFront streaming distribution for browsers, and an http source from a CloudFront download distribution for iOS devices.Â Here is some example code: