update components

This commit is contained in:
Luke Pulverenti 2017-01-01 17:55:57 -05:00
parent 511d4882c1
commit 80b537e30b
2 changed files with 10 additions and 10 deletions

View File

@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.417",
"_release": "1.4.417",
"version": "1.4.419",
"_release": "1.4.419",
"_resolution": {
"type": "version",
"tag": "1.4.417",
"commit": "d03cd494c958c2fcbc45447fab8b6ab58c925cba"
"tag": "1.4.419",
"commit": "e65e31848b76b3cab4193f201517212050de8c53"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",

View File

@ -748,7 +748,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
self.seek = function (ticks, player) {
player = player || currentPlayer;
if (currentPlayer && !enableLocalPlaylistManagement(player)) {
if (player && !enableLocalPlaylistManagement(player)) {
return player.seek(ticks);
}
@ -1034,17 +1034,17 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
self.instantMix = function (item, player) {
player = player || currentPlayer;
if (!enableLocalPlaylistManagement(player)) {
if (player && !enableLocalPlaylistManagement(player)) {
return player.instantMix(item);
}
var apiClient = connectionManager.getApiClient(serverId);
var apiClient = connectionManager.getApiClient(item.ServerId);
var options = {};
options.UserId = apiClient.getCurrentUserId();
options.Fields = 'MediaSources';
apiClient.getInstantMixFromItem(id, item).then(function (result) {
apiClient.getInstantMixFromItem(item.Id, options).then(function (result) {
self.play({
items: result.Items
});
@ -1054,7 +1054,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
self.shuffle = function (shuffleItem, player) {
player = player || currentPlayer;
if (!enableLocalPlaylistManagement(player)) {
if (player && !enableLocalPlaylistManagement(player)) {
return player.shuffle(shuffleItem);
}
@ -1177,7 +1177,7 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
self.currentTime = function (player) {
player = player || currentPlayer;
if (currentPlayer && !enableLocalPlaylistManagement(player)) {
if (player && !enableLocalPlaylistManagement(player)) {
return player.currentTime();
}