
problem setting up a resolution switch for live streams
I would like to add a hires and lowres switch
using now
<smil>
<head>
<meta base="rtmp://xxx.nl/test/"/> (other server then where the player is hosted)
</head>
<body>
<switch>
<video src="poetryh.flv" height="960" system-bitrate="1000000" width="1280"/>
<video src="poetryl.flv" height="540" system-bitrate="600000" width="720"/>
</switch>
</body>
</smil>
and
the html page code:
<div id="player1">Loading the player...</div>
<script type="text/javascript">
jwplayer("player1").setup({
playlist: [{
image: '/project_img/POETRY2014_720x540.png',
sources: [{
file: "/video.smil"
},{
file: "http://xxx.nl/test/poetryl.m3u8"
}]
}],
},
primary: "flash",
controlbar: "bottom",
height: 540,
width: 720
});
</script>
page can be found on st4all.nl/test2.html
actually both the stream as the page are served through the same loadbalancer, but are on fysical different servers.
reg franklin