(function (window, document, $) { function showMenu(options, sessionsPromise, usersPromise) { 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 + ' ' + DashboardPage.getDisplayText(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 += '
---|---|---|---|---|
'; html += ' | ' + session.Client + ' | '; html += '' + session.DeviceName + ' | '; html += ''; var user = null; if (session.UserId) { user = users.filter(function (u) { return u.Id == session.UserId; })[0]; } html += user ? user.Name : ' '; html += ' | '; html += ''; html += session.NowPlayingItem ? session.NowPlayingItem.Name : ''; 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 += ' ' + DashboardPage.getDisplayText(video.RunTimeTicks); } html += ' | ';
html += '