`;
- html += '
';
- const clientImage = DashboardPage.getClientImage(session);
-
- if (clientImage) {
- html += clientImage;
- }
-
- html += '
';
- html += '
' + escapeHtml(session.DeviceName) + '
';
- html += '
' + escapeHtml(DashboardPage.getAppSecondaryText(session)) + '
';
- html += '
';
- html += '
';
-
- html += '
';
- const nowPlayingName = DashboardPage.getNowPlayingName(session);
- html += '
';
- html += '' + nowPlayingName.html + '';
- html += '
';
- html += '
' + escapeHtml(DashboardPage.getSessionNowPlayingTime(session)) + '
';
- html += '
';
-
- let percent = 100 * session?.PlayState?.PositionTicks / nowPlayingItem?.RunTimeTicks;
- html += indicators.getProgressHtml(percent || 0, {
- containerClass: 'playbackProgress'
- });
-
- percent = session?.TranscodingInfo?.CompletionPercentage?.toFixed(1);
- html += indicators.getProgressHtml(percent || 0, {
- containerClass: 'transcodingProgress'
- });
-
- html += indicators.getProgressHtml(100, {
- containerClass: 'backgroundProgress'
- });
-
- html += '