mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve session information dialog
This commit is contained in:
parent
182dc10fb1
commit
3616d0fa15
2 changed files with 9 additions and 6 deletions
|
@ -30,9 +30,6 @@ import confirm from '../../components/confirm/confirm';
|
||||||
const text = [];
|
const text = [];
|
||||||
const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session);
|
const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session);
|
||||||
|
|
||||||
text.push(DashboardPage.getSessionNowPlayingStreamInfo(session));
|
|
||||||
text.push('<br/>');
|
|
||||||
|
|
||||||
if (displayPlayMethod === 'Remux') {
|
if (displayPlayMethod === 'Remux') {
|
||||||
title = globalize.translate('Remuxing');
|
title = globalize.translate('Remuxing');
|
||||||
text.push(globalize.translate('RemuxHelp1'));
|
text.push(globalize.translate('RemuxHelp1'));
|
||||||
|
@ -43,9 +40,13 @@ import confirm from '../../components/confirm/confirm';
|
||||||
text.push(globalize.translate('DirectStreamHelp1'));
|
text.push(globalize.translate('DirectStreamHelp1'));
|
||||||
text.push('<br/>');
|
text.push('<br/>');
|
||||||
text.push(globalize.translate('DirectStreamHelp2'));
|
text.push(globalize.translate('DirectStreamHelp2'));
|
||||||
|
} else if (displayPlayMethod === 'DirectPlay') {
|
||||||
|
title = globalize.translate('DirectPlaying');
|
||||||
|
text.push(globalize.translate('DirectPlayHelp'));
|
||||||
} else if (displayPlayMethod === 'Transcode') {
|
} else if (displayPlayMethod === 'Transcode') {
|
||||||
title = globalize.translate('Transcoding');
|
title = globalize.translate('Transcoding');
|
||||||
text.push(globalize.translate('MediaIsBeingConverted'));
|
text.push(globalize.translate('MediaIsBeingConverted'));
|
||||||
|
text.push(DashboardPage.getSessionNowPlayingStreamInfo(session));
|
||||||
|
|
||||||
if (session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons && session.TranscodingInfo.TranscodeReasons.length) {
|
if (session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons && session.TranscodingInfo.TranscodeReasons.length) {
|
||||||
text.push('<br/>');
|
text.push('<br/>');
|
||||||
|
@ -403,10 +404,8 @@ import confirm from '../../components/confirm/confirm';
|
||||||
} else if (displayPlayMethod === 'DirectStream') {
|
} else if (displayPlayMethod === 'DirectStream') {
|
||||||
html += globalize.translate('DirectStreaming');
|
html += globalize.translate('DirectStreaming');
|
||||||
} else if (displayPlayMethod === 'Transcode') {
|
} else if (displayPlayMethod === 'Transcode') {
|
||||||
html += globalize.translate('Transcoding');
|
|
||||||
|
|
||||||
if (session.TranscodingInfo && session.TranscodingInfo.Framerate) {
|
if (session.TranscodingInfo && session.TranscodingInfo.Framerate) {
|
||||||
html += ' (' + session.TranscodingInfo.Framerate + ' fps)';
|
html += `${globalize.translate('Framerate')}: ${session.TranscodingInfo.Framerate}fps`;
|
||||||
}
|
}
|
||||||
|
|
||||||
showTranscodingInfo = true;
|
showTranscodingInfo = true;
|
||||||
|
@ -550,8 +549,10 @@ import confirm from '../../components/confirm/confirm';
|
||||||
|
|
||||||
if (nowPlayingItem) {
|
if (nowPlayingItem) {
|
||||||
row.classList.add('playingSession');
|
row.classList.add('playingSession');
|
||||||
|
row.querySelector('.btnSessionInfo').classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
row.classList.remove('playingSession');
|
row.classList.remove('playingSession');
|
||||||
|
row.querySelector('.btnSessionInfo').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session.ServerId && session.SupportedCommands.indexOf('DisplayMessage') !== -1) {
|
if (session.ServerId && session.SupportedCommands.indexOf('DisplayMessage') !== -1) {
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
"Director": "Director",
|
"Director": "Director",
|
||||||
"Directors": "Directors",
|
"Directors": "Directors",
|
||||||
"DirectPlaying": "Direct playing",
|
"DirectPlaying": "Direct playing",
|
||||||
|
"DirectPlayHelp": "The source file is entirely compatible with this client, and the session is receiving the file without modifications.",
|
||||||
"DirectStreamHelp1": "The video stream is compatible with the device, but has an incompatible audio format (DTS, TRUEHD, etc) or number of audio channels. The video stream will be repackaged losslessly on the fly before being sent to the device. Only the audio stream will be transcoded.",
|
"DirectStreamHelp1": "The video stream is compatible with the device, but has an incompatible audio format (DTS, TRUEHD, etc) or number of audio channels. The video stream will be repackaged losslessly on the fly before being sent to the device. Only the audio stream will be transcoded.",
|
||||||
"DirectStreamHelp2": "Power consumed by direct streaming usually depends on the audio profile. Only the video stream is lossless.",
|
"DirectStreamHelp2": "Power consumed by direct streaming usually depends on the audio profile. Only the video stream is lossless.",
|
||||||
"DirectStreaming": "Direct streaming",
|
"DirectStreaming": "Direct streaming",
|
||||||
|
@ -261,6 +262,7 @@
|
||||||
"Filters": "Filters",
|
"Filters": "Filters",
|
||||||
"Folders": "Folders",
|
"Folders": "Folders",
|
||||||
"FormatValue": "Format: {0}",
|
"FormatValue": "Format: {0}",
|
||||||
|
"Framerate": "Framerate",
|
||||||
"Friday": "Friday",
|
"Friday": "Friday",
|
||||||
"Fullscreen": "Full screen",
|
"Fullscreen": "Full screen",
|
||||||
"General": "General",
|
"General": "General",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue