mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add some translations for playback info
This commit is contained in:
parent
17514b6d2f
commit
e24bed00e9
1 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackManager', 'appRouter', 'appSettings', 'connectionManager', 'htmlMediaHelper', 'itemHelper', 'fullscreenManager'], function (browser, require, events, appHost, loading, dom, playbackManager, appRouter, appSettings, connectionManager, htmlMediaHelper, itemHelper, fullscreenManager) {
|
define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackManager', 'appRouter', 'appSettings', 'connectionManager', 'htmlMediaHelper', 'itemHelper', 'fullscreenManager', 'globalize'], function (browser, require, events, appHost, loading, dom, playbackManager, appRouter, appSettings, connectionManager, htmlMediaHelper, itemHelper, fullscreenManager, globalize) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var mediaManager;
|
var mediaManager;
|
||||||
|
@ -1855,7 +1855,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
|
|
||||||
if (protocol) {
|
if (protocol) {
|
||||||
mediaCategory.stats.push({
|
mediaCategory.stats.push({
|
||||||
label: 'Protocol:',
|
label: globalize.translate("LabelProtocol"),
|
||||||
value: protocol
|
value: protocol
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1865,12 +1865,12 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
|
|
||||||
if (this._hlsPlayer || this._shakaPlayer) {
|
if (this._hlsPlayer || this._shakaPlayer) {
|
||||||
mediaCategory.stats.push({
|
mediaCategory.stats.push({
|
||||||
label: 'Stream type:',
|
label: globalize.translate("LabelStreamType"),
|
||||||
value: 'HLS'
|
value: 'HLS'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
mediaCategory.stats.push({
|
mediaCategory.stats.push({
|
||||||
label: 'Stream type:',
|
label: globalize.translate("LabelStreamType"),
|
||||||
value: 'Video'
|
value: 'Video'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1882,13 +1882,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
categories.push(videoCategory);
|
categories.push(videoCategory);
|
||||||
|
|
||||||
var rect = mediaElement.getBoundingClientRect ? mediaElement.getBoundingClientRect() : {};
|
var rect = mediaElement.getBoundingClientRect ? mediaElement.getBoundingClientRect() : {};
|
||||||
var height = rect.height;
|
var height = parseInt(rect.height);
|
||||||
var width = rect.width;
|
var width = parseInt(rect.width);
|
||||||
|
|
||||||
// Don't show player dimensions on smart TVs because the app UI could be lower resolution than the video and this causes users to think there is a problem
|
// Don't show player dimensions on smart TVs because the app UI could be lower resolution than the video and this causes users to think there is a problem
|
||||||
if (width && height && !browser.tv) {
|
if (width && height && !browser.tv) {
|
||||||
videoCategory.stats.push({
|
videoCategory.stats.push({
|
||||||
label: 'Player dimensions:',
|
label: globalize.translate("LabelPlayerDimensions"),
|
||||||
value: width + 'x' + height
|
value: width + 'x' + height
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1898,7 +1898,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
|
|
||||||
if (width && height) {
|
if (width && height) {
|
||||||
videoCategory.stats.push({
|
videoCategory.stats.push({
|
||||||
label: 'Video resolution:',
|
label: globalize.translate("LabelVideoResolution"),
|
||||||
value: width + 'x' + height
|
value: width + 'x' + height
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1908,13 +1908,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
|
|
||||||
var droppedVideoFrames = playbackQuality.droppedVideoFrames || 0;
|
var droppedVideoFrames = playbackQuality.droppedVideoFrames || 0;
|
||||||
videoCategory.stats.push({
|
videoCategory.stats.push({
|
||||||
label: 'Dropped frames:',
|
label: globalize.translate("LabelDroppedFrames"),
|
||||||
value: droppedVideoFrames
|
value: droppedVideoFrames
|
||||||
});
|
});
|
||||||
|
|
||||||
var corruptedVideoFrames = playbackQuality.corruptedVideoFrames || 0;
|
var corruptedVideoFrames = playbackQuality.corruptedVideoFrames || 0;
|
||||||
videoCategory.stats.push({
|
videoCategory.stats.push({
|
||||||
label: 'Corrupted frames:',
|
label: globalize.translate("LabelCorruptedFrames"),
|
||||||
value: corruptedVideoFrames
|
value: corruptedVideoFrames
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue