Embed Code
Place the following inside the <head></head> tags.
<script type="text/javascript" src="flowplayer/flowplayer-3.2.11.min.js"></script> <script type="text/javascript" src="flowplayer/flowplayer.ipad-3.2.9.js"></script>
Insert the code below into the <body></body> tags.
<a
style="display:block;width:400px;height:330px;margin: 10px auto;"
id="player">
</a>
<script>
$f("player", "flowplayer/flowplayer-3.2.12.swf", {
clip: {
live: true,
url: '',
scaling: 'fit',
provider: 'rtmp',
ipadUrl: 'http://///playlist.m3u8'
},
plugins: {
rtmp: {
url: "flowplayer/flowplayer.rtmp-3.2.10.swf",
netConnectionUrl: 'rtmp://:80/'
}
}
}).ipad();
</script>
Instructions
- Download the following packages from http://example.streamguys.com/flowplayer-downloads.html
- Upload the files to your web server. Be sure to maintain the directory structure outlined below:
- Copy the code provided above in to the and tag of your HTML file. Upload this edited HTML file to your web server.
- Test the page make sure it's doing what you want it to.
player.html flowplayer/ (directory) flowplayer/flowplayer-3.2.12.swf flowplayer/flowplayer-3.2.11.min.js flowplayer/flowplayer.rtmp-3.2.10.swf flowplayer/flowplayer.ipad-3.2.9.js flowplayer/flowplayer.controls-3.2.12.swf
Need help?
You can modify the frame size of the player to best match the dimensions of your video by changing the height and width values on line 2. Below are some common dimensions for 4x3 and 16x9 aspect video.
16x9
Ideal Good 1280 x 720 1152 x 648 1024 x 576 896 x 504 768 x 432 640 x 360 512 x 288 384 x 216 256 x 144 128 x 72 4x3
Ideal Good 640 x 480 608 x 456 512 x 384 480 x 360 384 x 288 352 x 264 320 x 240 288 x 216 256 x 192 244 x 168 192 x 144 160 x 120
Optimize Video Settings for Mobile Delivery
Implementing the following encoder settings will improve the likelihood of delivery to mobile devices, especially those connected to impacted cellular networks.
- Multi-bitrate delivery is strongly encouraged, as this will allow the device to play the most appropriate stream for the current network connections.
- To reach devices connected to impacted 3G cellular networks, consider offering a stream with a total bitrate 250kbps or lower. (ie. video at 216kbps; audio at 32kbps)
- Keyframe interval: Every 2 seconds.
- Frame size: The most efficient encoding occurs with height and width values from the Ideal column.