Fifa 2014 čempionatas. Mexico – Cameroon tiesiogiai dabar.

fifa 2014 eteris

var playerInstance = jwplayer(‘videoplayer’).setup({
‘id’: ‘videoplayer’,
‘width’: ’647′,
‘height’: ’405′,
‘controlbar’: ‘bottom’,
‘autostart’: ‘true’,
‘stretching’: ‘exactfit’,
‘image’: ‘images/LTV1live.jpg’,

‘modes’: [
{ type: 'flash', src: 'scripts/jwplayer/player.swf' ,
config: {
'provider': 'rtmp',
'streamer': 'rtmp://lrt-live2.data.lt:1935/LTV1/?secid=174d30c884180e9ae0f0caec1e3d6312',
'file': 'LTV1',
'skin': 'scripts/jwplayer/skins/lrt/lrt.zip'
//, 'icons': 'false'
}
},
{
type: 'html5',
config: {
'file': 'http://lrt-live2.data.lt:1935/LTV1/mp4:LTV1/playlist.m3u8?secid=174d30c884180e9ae0f0caec1e3d6312',

'provider': 'video'
}
}
],
‘plugins’: {

“gapro-2″: {
‘idstring’: ‘LTV1′
}

}
});

var IDENTIFIER = “pyA6sPeS05aKr6l1zKqUtre_rqvkbINWto9W43Re1rL.C7″;
var HITCOLLECTOR = “//slt.hit.gemius.pl”;
var playerId = “videoplayer”;
var materialIdentifier = “LTV1_live”;
var totalTime = “-1″;
var customPackage = [
{ name:"gA", value:"LTV1 live" },
{ name:"gACAT", value:"live" },
{ name:"CNAME", value:"LTV1" }];
var treeId = [1];
var additionalPackage = [];

var startedPlaying=false;
playerInstance.onReady(function() {

//Note that Advertising support is only available in the Ads editions of JW6.
// playerInstance.onAdImpression(function(event){
// console.log(“The ad impression was fired.”);
// });

gemiusStream.newStream ( playerId , materialIdentifier , totalTime , customPackage, additionalPackage , IDENTIFIER , HITCOLLECTOR , treeId );

playerInstance.onPlay(function() {
if(startedPlaying==false && playerInstance.getPosition()>14){
setTimeout(gemiusStream.event (playerId, materialIdentifier , 0 , ‘playing’),500);
}
else{
setTimeout(gemiusStream.event (playerId, materialIdentifier , playerInstance.getPosition() , ‘playing’),500);
}
startedPlaying=true;
console.log(‘Playing’);
});

playerInstance.onBuffer(function() {
if(startedPlaying==true ){
gemiusStream.event (playerId, materialIdentifier , playerInstance.getPosition() , ‘buffering’);
}
console.log(‘Buffering’);
});

playerInstance.onPause(function() {
gemiusStream.event (playerId, materialIdentifier , playerInstance.getPosition() , ‘paused’);
console.log(‘Pause’);
});

playerInstance.onComplete(function() {
//Complete, jei buves video.duration < 61s (t.y. reklama) ir iraso gale yra rekalma
gemiusStream.event (playerId, materialIdentifier , playerInstance.getPosition() , ‘complete’);
startedPlaying=false;
console.log(‘Complete record. Next – video ad, ad duration: ‘ + duration);
});

playerInstance.onSeek(function(event) {
gemiusStream.event (playerId, materialIdentifier , playerInstance.getPosition() , ‘seekingStarted’);
if(playerInstance.getState()==”PLAYING”){
setTimeout(gemiusStream.event (playerId, materialIdentifier , event.offset , ‘playing’),500);
};
console.log(‘Seeking’);
});

});

Source: Tiesiogines transliacijos