mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
Enable a size for HTML5 Player sized albumart
This commit is contained in:
parent
a201a05d06
commit
6f05b3d436
2 changed files with 6 additions and 1 deletions
|
@ -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';
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue