This example demonstrates a player set up using RTMP Loadbalancing. The player configuration is identical to a standard RTMP configuration, with the addition of setting the rtmp.loadbalance option to true.
The XML file is a very basic SMIL file. Here's the contents of the XML of above example:
<smil>
<head>
<meta base="rtmp://example.com/ondemand"/>
</head>
<body>
<video src="videos/8Juv1MVa-484.mp4" system-bitrate="800000"/>
</body>
</smil>
Dynamic streaming is also supported. Therefore, you should include a <switch> element in your SMIL file, like this:
<smil>
<head>
<meta base="rtmp://example.com/ondemand"/>
</head>
<body>
<switch>
<video src="videos/8Juv1MVa-67727.mp4" system-bitrate="1800000" width="1280"/>
<video src="videos/8Juv1MVa-485.mp4" system-bitrate="900000" width="640"/>
<video src="videos/8Juv1MVa-484.mp4" system-bitrate="450000" width="320"/>
</switch>
</body>
</smil>