summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Shkardoon <ss23@ss23.geek.nz>2013-08-05 03:13:00 +1200
committerPaul Arthur <paul.arthur@flowerysong.com>2013-09-20 11:53:27 -0400
commit6f05b3d4364bc0af5e6777e821c46f46773313df (patch)
tree581313b48068ad4a5c2f917112e23b7d1fd8464d
parenta201a05d067b7beb191b5e2ce660dabd3c137560 (diff)
downloadampache-6f05b3d4364bc0af5e6777e821c46f46773313df.tar.gz
ampache-6f05b3d4364bc0af5e6777e821c46f46773313df.tar.bz2
ampache-6f05b3d4364bc0af5e6777e821c46f46773313df.zip
Enable a size for HTML5 Player sized albumart
-rw-r--r--image.php5
-rw-r--r--lib/javascript/html5_player.js2
2 files changed, 6 insertions, 1 deletions
diff --git a/image.php b/image.php
index 00bf1092..1f87dae4 100644
--- a/image.php
+++ b/image.php
@@ -64,6 +64,11 @@ switch ($_GET['thumb']) {
$size['height'] = '80';
$size['width'] = '80';
break;
+ case '4':
+ /* HTML5 Player size */
+ $size['height'] = 200;
+ $size['width'] = 200; // 200px width, set via CSS
+ break;
default:
$size['height'] = '275';
$size['width'] = '275';
diff --git a/lib/javascript/html5_player.js b/lib/javascript/html5_player.js
index a0a20e00..62df0ba3 100644
--- a/lib/javascript/html5_player.js
+++ b/lib/javascript/html5_player.js
@@ -75,7 +75,7 @@ function play(event)
//$('album').select('a')[0].writeAttribute('target', '_new');
$('artist').update(current_playlist_item.author);
//$('artist').select('a')[0].writeAttribute('target', '_new');
-$('albumart').update(new Element('img', {src: current_playlist_item.albumart_url}));
+ $('albumart').update(new Element('img', {src: current_playlist_item.albumart_url + '&thumb=4'}));
dequeue(current_playlist_item.element);
current_playlist_item.player.writeAttribute('preload', 'auto');
current_playlist_item.player.play();