Hi,
i'm currently getting an strange error when switching the current clip to HD. Setups worked since months without any problems - until i've implemented the OVA Plugin.
Code:
$('#placeholder').addClass('noerror').animate({height: '375'});
var initialLoad = true;
var prevTime;
var preVol;
var HDStream = {
'autoPlay': true,
'autoBuffering': false,
'url': 'http://www.hardwareclips.com:8080/405a31b06b9ece50772e9c4d9f04826d/1272_full.flv',
'scaling': 'fit',
'width': '1280',
'bitrate': '1500',
'label': 'HD'
};
var SDStream = {
'autoPlay': true,
'autoBuffering': false,
'url': 'http://www.hardwareclips.com:8080/405a31b06b9ece50772e9c4d9f04826d/1272.flv',
'scaling': 'scale',
'width': '800',
'bitrate': '1500',
'label': 'SD'
};
function toggleHD(currentPos, currentVol){
prevTime = currentPos;
preVol = currentVol;
initialLoad = false;
if (playhd == true){
$f().getPlugin('hdon').show();
$f().getPlugin('hdoff').hide();
$f('player').play(HDStream);
} else {
$f().getPlugin('hdon').hide();
$f().getPlugin('hdoff').show();
$f('player').play(SDStream);
}
}
flowplayer('player', '/flowplayer/flowplayer.commercial-3.2.5.swf', {
onLoad: function(){
$f().getPlugin('hdon').hide();
},
onStart: function() {
if(initialLoad != true) {
this.seek(prevTime);
this.setVolume(preVol);
}
},
'playlist': [{
'url': '/thumb/embed/1272.jpg?1301049408',
'scaling': 'scale'
},
SDStream
],
'plugins':{
'hdoff': {
'url': '/flowplayer/flowplayer.content-3.2.0.swf',
'top': '10',
'left': '15',
'height': '50',
'padding': '0',
'borderRadius': '0',
'width': '42',
'backgroundColor': 'transparent',
'opacity': '0.9',
'border': '0',
'html': '<a href="javascript:void();"><img src="/images/flowplayer/hd_off.png" hspace="0" /></a>',
'backgroundGradient': 'none',
onClick: function() {
playhd = true;
var currentPos;
var currentVol;
currentPos = $f('player').getTime();
currentVol = $f('player').getVolume();
toggleHD(currentPos, currentVol);
}
},
'hdon': {
'url': '/flowplayer/flowplayer.content-3.2.0.swf',
'top': '10',
'left': '15',
'height': '50',
'padding': '0',
'borderRadius': '0',
'width': '42',
'backgroundColor': 'transparent',
'opacity': '0.9',
'border': '0',
'html': '<a href="javascript:void();"><img src="/images/flowplayer/hd_on.png" hspace="0" /></a>',
'backgroundGradient': 'none',
onClick: function() {
playhd = false;
var currentPos;
var currentVol;
currentPos = $f('player').getTime();
currentVol = $f('player').getVolume();
toggleHD(currentPos, currentVol);
}
},
'ova': {
'url': '/flowplayer/flowplayer.ova.swf',
'autoPlay': true,
'ads': {
'playOnce': true,
'pauseOnClickThrough': false,
'companions': [
{
'id': 'companion',
'width': '300',
'height': '250'
}
],
'servers': [
{
'type': 'OpenX',
'apiAddress': 'http://openx.digital-natives.de/delivery/fc.php'
}
],
'schedule': [
{
'position': 'pre-roll',
'zone': '1',
'playOnce': true
},
{
'position': 'post-roll',
'zone': '3',
'playOnce': true
}
]
}
},
'lighttpd': {
'url': '/flowplayer/flowplayer.pseudostreaming-3.2.5.swf'
}
},
'clip':{
'provider': 'lighttpd',
'autoPlay': true,
'autoBuffering': false
}
});
When clicking the hd button flowplayer switches to the other file but no video is displayed - all i get ist a blank player with the audio file of it. tried to disable metadata with "metaData: false" and then its workung but pseudostreaming doesn't - so i'm unable to seek
Firebug sais:
11:37:51 GMT+0100: This clip is not an ad so we aren't doing anything with this duration metadata
11:37:53 GMT+0100: MetaData received for active clip - duration is 116.64
Hi...
Looking into this for you.. one thing I noticed that has me a little confused so I thought I'd ask first...
I looked on your production site to see it happening - looked at the first video "NVIDIA GeForce GTX 590 - Tom Petersen"
Ad plays, then the main video (non HD) - switched to HD - switches - ad plays and then the main clip plays in HD (see and hear both).
Also tried "Nintendo 3DS - Pilotwings Resort Freiflug-Modus Test [HD]" and it seems to work well too... pseudo-streaming also seems ok.
So I'm wondering - do you consistently see this in all your videos or just a specific/some of them?
Would you have a URL setup that I could look at to see it happening?
Paul