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

update now playing screen

This commit is contained in:
Luke Pulverenti 2017-01-20 12:52:37 -05:00
parent 668418e69b
commit 4589e01159
22 changed files with 245 additions and 97 deletions

View file

@ -1570,7 +1570,10 @@ var AppInfo = {};
document.title = Globalize.translateDocument(document.title, 'core');
loadPlugins([], browserInfo).then(onAppReady);
require(['apphost'], function (appHost) {
loadPlugins([], appHost, browserInfo).then(onAppReady);
});
}
function defineRoute(newRoute, dictionary) {
@ -2368,7 +2371,7 @@ var AppInfo = {};
});
}
function loadPlugins(externalPlugins, browser, shell) {
function loadPlugins(externalPlugins, appHost, browser, shell) {
console.log('Loading installed plugins');
@ -2413,10 +2416,13 @@ var AppInfo = {};
}
list.push('bower_components/emby-webcomponents/htmlvideoplayer/plugin');
list.push('bower_components/emby-webcomponents/sessionplayer');
if (browser.chrome) {
list.push('bower_components/emby-webcomponents/chromecastplayer');
if (appHost.supports('remotecontrol')) {
list.push('bower_components/emby-webcomponents/sessionplayer');
if (browser.chrome) {
list.push('bower_components/emby-webcomponents/chromecastplayer');
}
}
list.push('bower_components/emby-webcomponents/youtubeplayer/plugin');