1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

string improvements

This commit is contained in:
dkanada 2020-01-12 16:05:05 +09:00
parent da87b4a620
commit 88d8c580e5
3 changed files with 5 additions and 10 deletions

View file

@ -95,23 +95,19 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
} }
function getMediaStreamAudioTracks(mediaSource) { function getMediaStreamAudioTracks(mediaSource) {
return mediaSource.MediaStreams.filter(function (s) { return mediaSource.MediaStreams.filter(function (s) {
return s.Type === 'Audio'; return s.Type === 'Audio';
}); });
} }
function getMediaStreamTextTracks(mediaSource) { function getMediaStreamTextTracks(mediaSource) {
return mediaSource.MediaStreams.filter(function (s) { return mediaSource.MediaStreams.filter(function (s) {
return s.Type === 'Subtitle'; return s.Type === 'Subtitle';
}); });
} }
function zoomIn(elem) { function zoomIn(elem) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
var duration = 240; var duration = 240;
elem.style.animation = 'htmlvideoplayer-zoomin ' + duration + 'ms ease-in normal'; elem.style.animation = 'htmlvideoplayer-zoomin ' + duration + 'ms ease-in normal';
dom.addEventListener(elem, dom.whichAnimationEvent(), resolve, { dom.addEventListener(elem, dom.whichAnimationEvent(), resolve, {
@ -1417,7 +1413,6 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (!appHost.supports('htmlvideoautoplay')) { if (!appHost.supports('htmlvideoautoplay')) {
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" controls="controls" webkit-playsinline playsinline>'; html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" controls="controls" webkit-playsinline playsinline>';
} else { } else {
// Chrome 35 won't play with preload none // Chrome 35 won't play with preload none
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" webkit-playsinline playsinline>'; html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" webkit-playsinline playsinline>';
} }
@ -1764,7 +1759,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
}; };
HtmlVideoPlayer.prototype.getAspectRatio = function () { HtmlVideoPlayer.prototype.getAspectRatio = function () {
return this._currentAspectRatio; return this._currentAspectRatio || "auto";
}; };
HtmlVideoPlayer.prototype.getSupportedAspectRatios = function () { HtmlVideoPlayer.prototype.getSupportedAspectRatios = function () {

View file

@ -83,7 +83,7 @@
"Art": "Art", "Art": "Art",
"AsManyAsPossible": "As many as possible", "AsManyAsPossible": "As many as possible",
"Ascending": "Ascending", "Ascending": "Ascending",
"AspectRatio": "Aspect ratio", "AspectRatio": "Aspect Ratio",
"AttributeNew": "New", "AttributeNew": "New",
"Audio": "Audio", "Audio": "Audio",
"AuthProviderHelp": "Select an Authentication Provider to be used to authenticate this user's password.", "AuthProviderHelp": "Select an Authentication Provider to be used to authenticate this user's password.",
@ -565,7 +565,7 @@
"ReplaceExistingImages": "Replace existing images", "ReplaceExistingImages": "Replace existing images",
"ReplaceAllMetadata": "Replace all metadata", "ReplaceAllMetadata": "Replace all metadata",
"RepeatOne": "Repeat one", "RepeatOne": "Repeat one",
"RepeatMode": "Repeat mode", "RepeatMode": "Repeat Mode",
"RepeatEpisodes": "Repeat episodes", "RepeatEpisodes": "Repeat episodes",
"RepeatAll": "Repeat all", "RepeatAll": "Repeat all",
"Repeat": "Repeat", "Repeat": "Repeat",

View file

@ -36,7 +36,7 @@
"Artists": "Artists", "Artists": "Artists",
"AsManyAsPossible": "As many as possible", "AsManyAsPossible": "As many as possible",
"Ascending": "Ascending", "Ascending": "Ascending",
"AspectRatio": "Aspect ratio", "AspectRatio": "Aspect Ratio",
"AttributeNew": "New", "AttributeNew": "New",
"Audio": "Audio", "Audio": "Audio",
"AuthProviderHelp": "Select an Authentication Provider to be used to authenticate this user's password.", "AuthProviderHelp": "Select an Authentication Provider to be used to authenticate this user's password.",
@ -1258,7 +1258,7 @@
"Repeat": "Repeat", "Repeat": "Repeat",
"RepeatAll": "Repeat all", "RepeatAll": "Repeat all",
"RepeatEpisodes": "Repeat episodes", "RepeatEpisodes": "Repeat episodes",
"RepeatMode": "Repeat mode", "RepeatMode": "Repeat Mode",
"RepeatOne": "Repeat one", "RepeatOne": "Repeat one",
"ReplaceAllMetadata": "Replace all metadata", "ReplaceAllMetadata": "Replace all metadata",
"ReplaceExistingImages": "Replace existing images", "ReplaceExistingImages": "Replace existing images",