As of the release of Wowza Media Server 2, iphone/ipod/ipad streaming is now available. However, not all streaming servers have been upgraded to Wowza Media Server 2 yet.
If you signed up for flash streaming prior to April 20th, 2010, and you have not been directly informed that your server has been upgraded, you most likely will not yet be able to take advantage of this feature. Feel free to open a support ticket to inquire further.
There are some encoding considerations to make sure your streaming is iPhone/iPod/iPad compatible:
Video must be encoded with the h.264 codec.
The h.264 baseline setting must be 3, no higher. (In adobe encoder click the tool button next to h.264 to set this.)
Frames per second should be set to 30.
Be mindfull that higher bitrates can be harder to stream over 2g/3g cellular networks.
iPhone 3gs/4 should handle streaming well – older versions not so well.
Audio should encoded using AAC or MP3. AAC audio produced by Adobe live encoder on Mac should be fine, as AAC is native to the Mac, but on Windows the third party MainConcept AAC plugin is required. (Note: The MainConcept AAC plugin costs $180.00.)
If you use mp3 audio, for best results ensure it is set to stereo, not mono, with a sample rate of 44100 Hz.
To stream on-demand video to the iPhone, iPod or iPad – the URL the device needs to be able to stream the video is:
http://[domain]:1935/archive/mp4:[filename]/playlist.m3u8
Replace [domain] with your flash streaming domain name, and filename with the full filename of the mp4 video (i.e. sample.mp4).
A simple way of displaying this in Safari on the device, using HTML5, would be:
<video autoplay controls height=”320″ width=”550″
src=”http://[domain]:1935/archive/mp4:sample.mp4/playlist.m3u8″>
</video>
Live Streaming
Live streaming to the iPhone, iPod or iPad is much the same as streaming on-demand content. The only difference is the streaming URL, which for live streaming is:
http://[domain]:1935/live/livestream/playlist.m3u8
(This assumes you are using livestream as the stream name in your encoder.)
jwplayer demo:
jwplayer(‘video_flash_click_link’).setup({
autostart:true,
image : videoImage,
width : 720,
height : 405,
screencolor : ‘FFFFFF’,
modes: [
{ type: “flash”,
src: “mediaplayer/player.swf”,
config: {
file: fileName,
streamer: filePath,
provider: “rtmp”
}
},
{ type: “html5”,
config: {
file: filePath.replace(“rtmp”,”http”) + fileName + “/playlist.m3u8”
}
},
{ type: “download” }
]
});