diff --git a/src/components/htmlvideoplayer/plugin.js b/src/components/htmlvideoplayer/plugin.js
index d2f9632adb..45eff41dbe 100644
--- a/src/components/htmlvideoplayer/plugin.js
+++ b/src/components/htmlvideoplayer/plugin.js
@@ -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";
var mediaManager;
@@ -1855,7 +1855,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (protocol) {
mediaCategory.stats.push({
- label: 'Protocol:',
+ label: globalize.translate("LabelProtocol"),
value: protocol
});
}
@@ -1865,12 +1865,12 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (this._hlsPlayer || this._shakaPlayer) {
mediaCategory.stats.push({
- label: 'Stream type:',
+ label: globalize.translate("LabelStreamType"),
value: 'HLS'
});
} else {
mediaCategory.stats.push({
- label: 'Stream type:',
+ label: globalize.translate("LabelStreamType"),
value: 'Video'
});
}
@@ -1882,13 +1882,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
categories.push(videoCategory);
var rect = mediaElement.getBoundingClientRect ? mediaElement.getBoundingClientRect() : {};
- var height = rect.height;
- var width = rect.width;
+ var height = parseInt(rect.height);
+ 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
if (width && height && !browser.tv) {
videoCategory.stats.push({
- label: 'Player dimensions:',
+ label: globalize.translate("LabelPlayerDimensions"),
value: width + 'x' + height
});
}
@@ -1898,7 +1898,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (width && height) {
videoCategory.stats.push({
- label: 'Video resolution:',
+ label: globalize.translate("LabelVideoResolution"),
value: width + 'x' + height
});
}
@@ -1908,13 +1908,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
var droppedVideoFrames = playbackQuality.droppedVideoFrames || 0;
videoCategory.stats.push({
- label: 'Dropped frames:',
+ label: globalize.translate("LabelDroppedFrames"),
value: droppedVideoFrames
});
var corruptedVideoFrames = playbackQuality.corruptedVideoFrames || 0;
videoCategory.stats.push({
- label: 'Corrupted frames:',
+ label: globalize.translate("LabelCorruptedFrames"),
value: corruptedVideoFrames
});
}
diff --git a/src/strings/en-us.json b/src/strings/en-us.json
index 23d7b48012..364cd71e87 100644
--- a/src/strings/en-us.json
+++ b/src/strings/en-us.json
@@ -575,6 +575,7 @@
"LabelCollection": "Collection:",
"LabelCommunityRating": "Community rating:",
"LabelContentType": "Content type:",
+ "LabelCorruptedFrames": "Corrupted frames:",
"LabelCountry": "Country:",
"LabelCriticRating": "Critic rating:",
"LabelCurrentPassword": "Current password:",
@@ -609,6 +610,7 @@
"LabelDownMixAudioScaleHelp": "Boost audio when downmixing. A value of one will preserve the original volume.",
"LabelDownloadLanguages": "Download languages:",
"LabelDropImageHere": "Drop image here, or click to browse.",
+ "LabelDroppedFrames": "Dropped frames:",
"LabelDropShadow": "Drop shadow:",
"LabelDynamicExternalId": "{0} Id:",
"LabelEasyPinCode": "Easy pin code:",
@@ -757,6 +759,7 @@
"LabelPlaceOfBirth": "Place of birth:",
"LabelPlayDefaultAudioTrack": "Play default audio track regardless of language",
"LabelPlayer": "Player:",
+ "LabelPlayerDimensions": "Player dimensions:",
"LabelPlaylist": "Playlist:",
"LabelPlayMethod": "Play method:",
"LabelPleaseRestart": "Changes will take effect after manually reloading the web client.",
@@ -830,6 +833,7 @@
"LabelStatus": "Status:",
"LabelStopWhenPossible": "Stop when possible:",
"LabelStopping": "Stopping",
+ "LabelStreamType": "Stream type:",
"LabelSubtitleDownloaders": "Subtitle downloaders:",
"LabelSubtitleFormatHelp": "Example: srt",
"LabelSubtitlePlaybackMode": "Subtitle mode:",
@@ -882,6 +886,7 @@
"LabelVideo": "Video:",
"LabelVideoBitrate": "Video bitrate:",
"LabelVideoCodec": "Video codec:",
+ "LabelVideoResolution": "Video resolution:",
"LabelWeb": "Web:",
"LabelXDlnaCap": "X-DLNA cap:",
"LabelXDlnaCapHelp": "Determines the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.",
diff --git a/src/strings/zh-cn.json b/src/strings/zh-cn.json
index 1ef1071d0f..54f93e19b7 100644
--- a/src/strings/zh-cn.json
+++ b/src/strings/zh-cn.json
@@ -506,6 +506,7 @@
"LabelCollection": "收藏:",
"LabelCommunityRating": "公众评分:",
"LabelContentType": "内容类型:",
+ "LabelCorruptedFrames": "损坏的帧:",
"LabelCountry": "国家:",
"LabelCriticRating": "影评人评分:",
"LabelCurrentPassword": "当前密码:",
@@ -540,6 +541,7 @@
"LabelDownMixAudioScaleHelp": "缩混音频增强。值为A将保留原来的音量。",
"LabelDownloadLanguages": "下载语言:",
"LabelDropImageHere": "拖拽或点击选择图像于此处。",
+ "LabelDroppedFrames": "丢弃的帧:",
"LabelDropShadow": "阴影:",
"LabelDynamicExternalId": "{0} Id:",
"LabelEasyPinCode": "简易PIN码:",
@@ -681,6 +683,7 @@
"LabelPersonRole": "角色:",
"LabelPlaceOfBirth": "出生地:",
"LabelPlayDefaultAudioTrack": "播放默认音轨无论是什么语言",
+ "LabelPlayerDimensions": "播放器尺寸:",
"LabelPlaylist": "播放列表:",
"LabelPostProcessor": "后处理应用程序:",
"LabelPostProcessorArguments": "处理器后命令行参数:",
@@ -746,6 +749,7 @@
"LabelStatus": "状态:",
"LabelStopWhenPossible": "当可能时自动停止:",
"LabelStopping": "停止",
+ "LabelStreamType": "串流类型:",
"LabelSubtitleDownloaders": "字幕下载器:",
"LabelSubtitleFormatHelp": "例如:SRT",
"LabelSubtitlePlaybackMode": "字幕模式:",
@@ -787,6 +791,7 @@
"LabelVersion": "版本:",
"LabelVersionInstalled": "{0} 已安装",
"LabelVersionNumber": "版本 {0}",
+ "LabelVideoResolution": "视频分辨率:",
"LabelXDlnaCap": "X-DLNA CAP:",
"LabelXDlnaCapHelp": "决定在 urn:schemas-dlna-org:device-1-0 namespace 中的 X_DLNACAP 元素的内容。",
"LabelXDlnaDoc": "X-DLNA DOC:",