I’m having trouble getting my load balance to distribute the requests. As far as I can see i’m not getting any 302 requests and i suspect it’s the way I’m embedding the code.
it’s this part from the setup guide that I suspect i’m implementing wrong.
// This is the HTTP Client Handler Path: shown when the
// load balancer 4.5 starts up
var loadBalancerFilter = "redirect";
// This is the scheme to use for a connection. HTTP by default
// however it is preferable to change this
// to https://. Do remember the // is REQUIRED!
var scheme = "http://";
// This is the external IP address for the load balancer. By default
//port 1935 is used.
var loadBalancerHost = "[load balancer host]:1935";
// This is the application name to use.
var loadBalancerAppRequired = "vod";
// This is the asset name, it can be a VOD or live asset name
var loadBalancerAssetRequred = "mp4:sample.mp4";
WowzaDynamicLoadBalancingAddOn_UserGuide_4.5.pdf / pg 31
I’m a newbie to the code side, started in this from the video production world.
Any guidance would be appreciated!
<!DOCTYPE html>
<html>
<head>
<title>My Wowza Test player</title>
<script type="text/javascript" src="//player.wowza.com/player/latest/wowzaplayer.min.js"></script>
</head>
<body>
<div id="playerElement" style="width:1280px; height:720px; padding:0;"></div>
<script type="text/javascript">
var loadBalancerFilter = "redirect";
var scheme = "http://";
var loadBalancerHost = "*.*.*.*:1935";
var loadBalancerAppRequired = "TESTAPP";
var loadBalancerAssetRequred = "teststream";
WowzaPlayer.create("playerElement",
{
"license":"**************************",
"sources":[{
"sourceURL":"http://*.*.*.*:1935/TESTAPP/teststream/playlist.m3u8"
},
{
"sourceURL":""
}],
"title":"TESTAPP",
"description":"This is a test player",
"autoPlay":false,
"mute":false,
"volume":75
}
);
</script>
</body>
</html>