1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #295 - Add play to vlc option

This commit is contained in:
Luke Pulverenti 2014-09-15 23:33:30 -04:00
parent c6309d5001
commit 22eb703c65
16 changed files with 545 additions and 61 deletions

View file

@ -234,6 +234,17 @@
return false;
}
function onExternalPlayerButtonClick() {
closeContextMenu();
var id = this.getAttribute('data-itemid');
ExternalPlayer.showMenu(id);
return false;
}
function onPlayAllFromHereButtonClick() {
var index = this.getAttribute('data-index');
@ -358,6 +369,10 @@
}
}
if (mediaType == 'Video' && ExternalPlayer.getExternalPlayers().length) {
html += '<li data-icon="play"><a href="#" class="btnExternalPlayer" data-itemid="' + itemId + '">' + Globalize.translate('ButtonPlayExternalPlayer') + '</a></li>';
}
if (playbackPositionTicks && mediaType != "Audio") {
html += '<li data-icon="play"><a href="#" class="btnResume" data-ticks="' + playbackPositionTicks + '" data-itemid="' + itemId + '">' + Globalize.translate('ButtonResume') + '</a></li>';
}
@ -405,6 +420,7 @@
$('.btnRemoveFromPlaylist', elem).on('click', onRemoveFromPlaylistButtonClick);
$('.btnPlayAllFromHere', elem).on('click', onPlayAllFromHereButtonClick);
$('.btnQueueAllFromHere', elem).on('click', onQueueAllFromHereButtonClick);
$('.btnExternalPlayer', elem).on('click', onExternalPlayerButtonClick);
});
}