I have a licensed player.
Out of the blue the player started jumping the videos, the sound continues ok but the picture jumps, but if one chooses fullscreen every thing is ok.
my code is the following:
Working at
Streaming from Streamzilla.
Any help would be apreciated.
Thanks in advance
var currentPosition = 0;
var currentVolume = 40;
var player = null;
function playerReady(player1) {
player = window.document[player1.id];
addListeners();
}
function addListeners() {
if (player) {
player.addModelListener("TIME", "positionListener");
player.addModelListener("STATE", "stateListener");
player.addControllerListener("VOLUME", "volumeListener");
player.addModelListener('META', 'metaMonitor');
} else {
setTimeout("addListeners()",100);
}
}
//////////////////////////////////////
//////////////////////////////////////
function positionListener(obj) {
currentPosition = obj.position;
tempo = obj.duration;
var tmp = document.getElementById("posit");
if (tmp) { tmp.innerHTML = "position: " + currentPosition + " tempo: " + tempo; }
}
function volumeListener(obj) {
currentVolume = obj.percentage;
var tmp = document.getElementById("vol");
if (tmp) { tmp.innerHTML = "<font face=Verdana size=-2 color=#ff0080>volume: " + currentVolume + "%"; }
}
function stateListener(obj) {
currentState = obj.newstate;
previousState = obj.oldstate;
var tmp = document.getElementById("statId");
if (tmp) { tmp.innerHTML = "state: " + currentState + " antes " + previousState; }
if ((currentState == "COMPLETED")&&(previousState == "PLAYING")) {
document.getElementById('coments').innerHTML=('');
document.getElementById('botao').innerHTML=("");
descri.location.href="destaques/";
document.getElementById('tit').innerHTML=('');
votacao.location.href="manager/0.html";
document.getElementById('mail').innerHTML=("<A HREF=\"mailto:e-mail do seu amigo?Subject=Veja este filme&Body=Carregue neste link para ver o filme que escolhi para si, http://91.198.47.136/index.html?\" onmouseover=\"document.but.src=\'imgs\/amigo_activo.png\'\" onmouseout=\"document.but.src=\'imgs\/amigo_desactivo.png\'\"><img src=\"imgs\/amigo_desactivo.png\" title=\"Envie o link deste filme a um amigo\" name=\"but\" id=\"but\" width=\"37\" height=\"39\" border=\"0\"><\/A>");
document.getElementById('bto_hd').style.visibility="visible";
numeros ++;
if (numeros > 4) {
numeros = 1;
}
callServer(pub[numeros]);
//window.scroll=(0,0);
}
if ((currentState == "BUFFERING")&&(previousState == "IDLE")) {
document.getElementById('coments').innerHTML=('');
document.getElementById('botao').innerHTML=("");
descri.location.href="destaques/";
document.getElementById('tit').innerHTML=('');
votacao.location.href="manager/0.html";
document.getElementById('mail').innerHTML=("");
//descri.location.href="manager/desc.cgi?id=299";
var titulos ="<font class=\"titulo_filme\">" + desc + "</font>";
document.getElementById('tit').innerHTML=(titulos);
document.getElementById('bto_hd').style.visibility="hidden";
document.getElementById('live').style.visibility="visible";
descri.location.href="manager/desc.cgi?id=345";
}
}
function upvol() {
player.sendEvent('MUTE');
player.sendEvent('PLAY');
}
function pausa() {
player.sendEvent('PLAY');
}
function deletePlayer(theWrapper, thePlaceholder, thePlayerId) {
swfobject.removeSWF(thePlayerId);
var tmp=document.getElementById(theWrapper);
if (tmp) { tmp.innerHTML = "<div id=" + thePlaceholder + "></div>"; }
}
resuHD="sim";
//choice="sim";
function createPlayer(thePlaceholder, thePlayerId, theFile) {
var flashvars = {};
if (choice == "nao") {
flashvars.plugins = '';
}
if (choice == "sim") {
flashvars.plugins = 'livestream-1';
}
flashvars['livestream.streamer'] = 'rtmp://path';
flashvars['livestream.file'] = 'path' + aovivo;
flashvars['livestream.message'] = 'Verificando se há uma transmissão em directo';
flashvars['livestream.interval'] = '30';
flashvars.skin = 'nacht.swf';
flashvars.controlbar = 'bottom';
flashvars.autostart = 'true';
flashvars.streamer = 'rtmp://PATH TO MP4/';
if (resuHD == "nao") {
flashvars.file = theFile + '.mp4';
}
if (resuHD == "sim") {
flashvars.file = '' + theFile + '.mp4';
}
flashvars.stretching = 'uniform';
flashvars.lightcolor = '#3abbed';
var params = {
allowfullscreen:"true",
allowscriptaccess:"always",
wmode:"transparent"
}
var attributes = {
id:thePlayerId,
name:thePlayerId
}
swfobject.embedSWF("anyplayer.swf", thePlaceholder, "512", "404", "9.0.115", false, flashvars, params, attributes);
}
function initPlayer(theFile) {
window.scrollTo(0,0);
deletePlayer('wrapper', 'placeholder1');
createPlayer('placeholder1', 'player1', theFile);
}

It appears that some script on yur page is running out of control. The CPU usage goes to 100% and stays there.
You might try disabling other scripts on your page and see if one of them is the culprit.
I doubt it's the JW FLV Player.