(function (window, document, $) { function sendPlayFolderCommand(item, sessionId, popup) { ApiClient.getItems(Dashboard.getCurrentUserId(), { ParentId: item.Id, Filters: "IsNotFolder", SortBy: "SortName", Recursive: true, Limit: 100 }).done(function (result) { ApiClient.sendPlayCommand(sessionId, { ItemIds: result.Items.map(function (i) { return i.Id; }).join(','), PlayCommand: $('#fldPlayCommand', popup).val() }); popup.popup("close"); }); } function showMenuForItem(options, sessionsPromise) { var playFromRendered; var trailersRendered; var specialFeaturesRendered; var themeVideosRendered; var themeSongsRendered; var item = options.item; var html = '
'; html += ' | '; var imgUrl; if (chapter.ImageTag) { imgUrl = ApiClient.getImageUrl(item.Id, { maxheight: 80, tag: chapter.ImageTag, type: "Chapter", index: i }); } else { imgUrl = "css/images/media/chapterflyout.png"; } html += ''; html += ' | '; html += '' + name + ' ' + Dashboard.getDisplayTime(chapter.StartPositionTicks) + ' | ';
html += '
There are currently no available media browser sessions to control.
'); $('#remoteControlFlyout').popup("reposition", {}); return; } var item = options.item; var html = ''; html += ''; html += ' | Client | '; html += 'Device | '; html += 'User | '; html += 'Now Playing | '; html += 'Time | '; html += '||
---|---|---|---|---|---|---|---|
'; html += ' | ' + session.Client + ' | '; html += '' + session.DeviceName + ' | '; html += ''; html += session.UserName || ''; html += ' | '; if (session.NowPlayingItem) { html += ''; html += session.NowPlayingItem ? session.NowPlayingItem.Name : ''; html += ' | '; html += ''; html += getSessionNowPlayingTime(session); html += ' | '; } else { html += ''; html += ' | '; } html += ' |
'; html += ' | '; var imgUrl; if (video.ImageTags && video.ImageTags.Primary) { imgUrl = ApiClient.getImageUrl(video.Id, { maxheight: 80, tag: video.ImageTags.Primary, type: "Primary" }); html += ''; } html += ' | '; html += '' + video.Name;
if (video.RunTimeTicks) {
html += ' ' + Dashboard.getDisplayTime(video.RunTimeTicks); } html += ' | ';
html += '
'; html += ''; html += ''; html += '
'; html += ' '; html += ''; html += ''; html += '
'; html += '