hi all,
We are using Cloudfront streaming and BW Check in order to serve one of three resolutions and the problem is that the switch does not happen for a long time - 1 minute or more and sometimes not at all. My test connection is very fat (16 mb down and 21 up) so I should see the largest one... Can someone tell me whether the "checkonstart" option works on cloudfront (FM). I tried it and did not make a difference. Also the "onstreamswitch" works occasionally and not always so that is puzzling. And last, seems like this plugin is based on Average Bitrate Rate encodes as it specifies the target bitrate and we are using Handbrake and CRF (constant rate which is good way to go for x264) to encode. could this be a factor?
here is the code:
/ <script>
flowplayer('player',
{
src: 'http://butaca.tv/feeds/amazon/swf/flowplayer.commercial-3.2.4.swf',
version: [10, 0],
expressInstall: 'http://butaca.tv/feeds/amazon/swf/expressinstall.swf',
},
{
key: '12345',
canvas: {
backgroundGradient: 'none',
backgroundColor: '#000'
},
clip: {
provider: 'rtmp',
urlResolvers: 'bwcheck',
scaling: 'fit',
bitrates: [
{
url: "mp4:file1-b.mp4",
bitrate: 480,
width: 480,
isDefault: true
},
{
url: "mp4:file1-d.mp4",
bitrate: 800,
width: 640
},
{
url: "mp4:file1-f.mp4",
bitrate: 1200,
width: 800
}
]
},
plugins: {
rtmp: {
url: 'flowplayer.rtmp-3.2.3.swf',
netConnectionUrl: 'rtmp://xxxx.cloudfront.net/cfx/st'
},
bwcheck: {
url: 'flowplayer.bwcheck-3.2.2.swf',
serverType: 'fms',
dynamic: true,
netConnectionUrl: 'rtmp://xxxxx.cloudfront.net/cfx/st',
onStreamSwitch: function (bitrate, streamName) {
$f().getPlugin('content').setHtml("Playing now: " + streamName);
}
},
viral: {
url: 'flowplayer.viralvideos-3.2.2.swf',
share: {
description: 'Amazon CloudFront',
livespaces: false,
orkut: false,
stubmbleupon: false,
bebo: false
},
email: null
},
content: {
url: 'flowplayer.content-3.2.0.swf',
top: 0, left: 0, width: 250, height: 150,
backgroundColor: 'transparent', backgroundGradient: 'none', border: 0,
textDecoration: 'outline',
style: {
body: {
fontSize: 14,
fontFamily: 'Arial',
textAlign: 'center',
color: '#ffffff'
}
}
}
}
});