//Video
jQuery(function() {
var playlist = Array(); // variable para entregar luego a la propiedad playlist de flowplayer
var image;
var uno = 0;
test = jQuery.getJSON('/videos/getVideosJson', function(data){
jQuery.each(data, function(i,item){
console.log(item.Video.title);
console.log(item);
// Aņadimos el elemento al playlist para pasarselo luego a fp
playlist.push( { // Push aņade un elemento a un array en js
url: item.Video.urlflv,
provider: 'lighttpd'
} );
if(uno == 0){
image = item.Video.id;
uno++;
}
/*
jQuery("").attr("src", '/thumbs/__files/videos/' + item.Video.id + '-64x64.jpeg')
.appendTo(
jQuery("").appendTo(jQuery("
',
onMouseOver: function() {
this.css({border:'1px solid #ffffff'});
},
onMouseOut: function() {
this.css({border:'0'});
},
onClick: function() {
this.hide();
}
},
sendByMail: {
url: '/js/flowplayer/flowplayer.content-3.1.0.swf',
top: 17, right: 15, height: 16, width: 16,
backgroundImage: 'url(/img/icons/email_go.png)',
style: { 'border': 0, 'opacity': 1, 'cursor': 'pointer'},
onClick: function() {
alert('mailme!');
},
onMouseOver: function() {
this.css({border:'1px solid #ffffff'});
},
onMouseOut: function() {
this.css({border:'0'});
}
}
}
}).playlist("#videoplaylist");
}
});