update shared components
This commit is contained in:
parent
bcd1e109e0
commit
c59b4c5a08
10 changed files with 1298 additions and 27 deletions
|
@ -15,20 +15,13 @@ define(['actionsheet', 'datetime', 'playbackManager', 'globalize', 'appSettings'
|
|||
var resumePositionTicks = item.UserData ? item.UserData.PlaybackPositionTicks : null;
|
||||
|
||||
var showExternalPlayer = isMobileApp && mediaType == 'Video' && !isFolder && appSettings.enableExternalPlayers();
|
||||
|
||||
var playableItemId = itemType == 'Program' ? channelId : itemId;
|
||||
|
||||
if (!resumePositionTicks && mediaType != "Audio" && !isFolder && !showExternalPlayer) {
|
||||
if (itemType == 'Program') {
|
||||
playbackManager.play({
|
||||
ids: [channelId],
|
||||
serverId: serverId
|
||||
});
|
||||
} else {
|
||||
playbackManager.play({
|
||||
items: [item]
|
||||
});
|
||||
}
|
||||
playbackManager.play({
|
||||
ids: [playableItemId],
|
||||
serverId: serverId
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue