Skip to content
Snippets Groups Projects
Commit 2d85a55b authored by llaffont's avatar llaffont
Browse files

Correction affichage poster dans le loader

parent ea71c1ce
Branches
Tags
No related merge requests found
......@@ -55,6 +55,7 @@ class BibNumeriqueController extends Zend_Controller_Action {
$response->setHeader('Expires', '0');
$response->setHeader('Cache-Control', 'no-cache, must-revalidate');
$response->setHeader('Pragma', 'no-cache');
$response->setHeader('Access-Control-Allow-Origin', '*');
$response->setBody($playlist);
}
......
......@@ -52,7 +52,7 @@
$("#osmplayer").osmplayer({
width: '600px',
height: '400px',
playlist: 'playlist.xml'
playlist: 'http://localhost/afi-opac3/bib-numerique/album-xspf-playlist/id/148.xspf'
});
});
</script>
......@@ -63,4 +63,4 @@
<!-- Or you can get a feed directly from youtube like so... -->
<!--<video id="osmplayer" playlist="http://gdata.youtube.com/feeds/api/videos"></video>-->
</body>
</html>
\ No newline at end of file
</html>
......@@ -49,13 +49,14 @@ osmplayer.teaser.prototype.setNode = function(node) {
// Load the thumbnail image if it exists.
if (node.mediafiles && node.mediafiles.image) {
var image = osmplayer.getImage(node.mediafiles, 'thumbnail');
if (image) {
if (this.elements.image) {
this.preview = new minplayer.image(this.elements.image);
this.preview.load(image);
}
}
osmplayer.getImage(node.mediafiles, 'thumbnail', (function(teaser) {
return function(image) {
if (teaser.elements.image) {
teaser.preview = new minplayer.image(teaser.elements.image);
teaser.preview.load(image.path);
}
};
})(this));
}
// Bind when they click on this teaser.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment