Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a61b3e548 | ||
|
|
950116a775 | ||
|
|
b9040c20fc | ||
|
|
8388463880 | ||
|
|
233e569c94 | ||
|
|
93c265ffed | ||
|
|
8f4dfa31c8 | ||
|
|
99b8ef316c | ||
|
|
6880ccc9eb | ||
|
|
f77c3fbf71 | ||
|
|
81b28952cc | ||
|
|
911c96216a | ||
|
|
b3b6296798 | ||
|
|
bca2d577b9 | ||
|
|
11b6316338 | ||
|
|
bbc6da9d41 | ||
|
|
c313cbf37d |
@@ -44,18 +44,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
|
|
||||||
var stream = assembly.GetManifestResourceStream(resourceName);
|
var stream = assembly.GetManifestResourceStream(resourceName);
|
||||||
|
|
||||||
// if (stream == null)
|
|
||||||
// {
|
|
||||||
// // Try fallback/debug matching
|
|
||||||
// var allNames = assembly.GetManifestResourceNames();
|
|
||||||
// var match = Array.Find(allNames, n => n.EndsWith(resourcePath, StringComparison.OrdinalIgnoreCase));
|
|
||||||
|
|
||||||
// if (match != null)
|
|
||||||
// {
|
|
||||||
// stream = assembly.GetManifestResourceStream(match);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (stream == null)
|
if (stream == null)
|
||||||
{
|
{
|
||||||
return NotFound($"Resource not found: {resourceName}");
|
return NotFound($"Resource not found: {resourceName}");
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Threading.Tasks;
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using MediaBrowser.Common.Configuration;
|
using MediaBrowser.Common.Configuration;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
|
||||||
namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
||||||
{
|
{
|
||||||
@@ -20,14 +21,13 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
public OverlayImageController(IApplicationPaths applicationPaths)
|
public OverlayImageController(IApplicationPaths applicationPaths)
|
||||||
{
|
{
|
||||||
_applicationPaths = applicationPaths;
|
_applicationPaths = applicationPaths;
|
||||||
|
_imageDirectory = Path.Combine(applicationPaths.PluginConfigurationsPath, "Jellyfin.Plugin.MediaBarEnhanced", "Assets");
|
||||||
_imageDirectory = Path.Combine(applicationPaths.PluginConfigurationsPath, "MediaBarEnhancedAssets");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Uploads a new custom overlay image.
|
/// Uploads a new custom overlay image.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Microsoft.AspNetCore.Authorization.Authorize]
|
[Authorize(Policy = "RequiresElevation")]
|
||||||
[HttpPost("OverlayImage")]
|
[HttpPost("OverlayImage")]
|
||||||
[Consumes("multipart/form-data")]
|
[Consumes("multipart/form-data")]
|
||||||
public async Task<IActionResult> UploadImage([FromForm] IFormFile file, [FromQuery] string? filename = null)
|
public async Task<IActionResult> UploadImage([FromForm] IFormFile file, [FromQuery] string? filename = null)
|
||||||
@@ -41,7 +41,7 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
string extension = Path.GetExtension(file.FileName);
|
string extension = Path.GetExtension(file.FileName);
|
||||||
if (string.IsNullOrWhiteSpace(extension)) extension = ".jpg";
|
if (string.IsNullOrWhiteSpace(extension)) extension = ".jpg";
|
||||||
|
|
||||||
// Delete any existing file with this prefix before saving the new one (as extensions might differ)
|
// Delete any existing file with this prefix before saving the new one
|
||||||
string prefix = string.IsNullOrWhiteSpace(filename) ? "custom_overlay_image_global" : $"custom_overlay_image_{filename}";
|
string prefix = string.IsNullOrWhiteSpace(filename) ? "custom_overlay_image_global" : $"custom_overlay_image_{filename}";
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -61,9 +61,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
string targetFileName = $"{prefix}{extension}";
|
string targetFileName = $"{prefix}{extension}";
|
||||||
string targetPath = Path.Combine(_imageDirectory, targetFileName);
|
string targetPath = Path.Combine(_imageDirectory, targetFileName);
|
||||||
|
|
||||||
// Delete is not strictly necessary and can cause locking issues if someone is currently reading it.
|
|
||||||
// FileMode.Create will truncate the file if it exists, effectively overwriting it.
|
|
||||||
// We use FileShare.None to ensure we have exclusive write access, but handle potential IOExceptions gracefully.
|
|
||||||
using (var stream = new FileStream(targetPath, FileMode.Create, FileAccess.Write, FileShare.None))
|
using (var stream = new FileStream(targetPath, FileMode.Create, FileAccess.Write, FileShare.None))
|
||||||
{
|
{
|
||||||
await file.CopyToAsync(stream).ConfigureAwait(false);
|
await file.CopyToAsync(stream).ConfigureAwait(false);
|
||||||
@@ -83,7 +80,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the custom overlay image.
|
/// Retrieves the custom overlay image.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Microsoft.AspNetCore.Authorization.Authorize]
|
|
||||||
[HttpGet("OverlayImage")]
|
[HttpGet("OverlayImage")]
|
||||||
public IActionResult GetImage([FromQuery] string? filename = null)
|
public IActionResult GetImage([FromQuery] string? filename = null)
|
||||||
{
|
{
|
||||||
@@ -99,7 +95,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
string targetPath = existingFiles[0];
|
string targetPath = existingFiles[0];
|
||||||
|
|
||||||
// Read the file and return with appropriate MIME type
|
// Read the file and return with appropriate MIME type
|
||||||
// We use FileShare.ReadWrite | FileShare.Delete so that if someone is currently overwriting the file (uploading), we don't block them.
|
|
||||||
var stream = new FileStream(targetPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
|
var stream = new FileStream(targetPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
|
||||||
|
|
||||||
string mimeType = "application/octet-stream";
|
string mimeType = "application/octet-stream";
|
||||||
@@ -116,7 +111,7 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deletes a custom overlay image.
|
/// Deletes a custom overlay image.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Microsoft.AspNetCore.Authorization.Authorize]
|
[Authorize(Policy = "RequiresElevation")]
|
||||||
[HttpDelete("OverlayImage")]
|
[HttpDelete("OverlayImage")]
|
||||||
public IActionResult DeleteImage([FromQuery] string? filename = null)
|
public IActionResult DeleteImage([FromQuery] string? filename = null)
|
||||||
{
|
{
|
||||||
@@ -145,7 +140,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Api
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Renames a custom overlay image (used when a seasonal section is renamed).
|
/// Renames a custom overlay image (used when a seasonal section is renamed).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Microsoft.AspNetCore.Authorization.Authorize]
|
|
||||||
[HttpPut("OverlayImage/Rename")]
|
[HttpPut("OverlayImage/Rename")]
|
||||||
public IActionResult RenameImage([FromQuery] string oldName, [FromQuery] string newName)
|
public IActionResult RenameImage([FromQuery] string oldName, [FromQuery] string newName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,5 +56,9 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Configuration
|
|||||||
public string CustomOverlayStyle { get; set; } = "Shadowed";
|
public string CustomOverlayStyle { get; set; } = "Shadowed";
|
||||||
public string CustomOverlayImageStyle { get; set; } = "None";
|
public string CustomOverlayImageStyle { get; set; } = "None";
|
||||||
public string CustomOverlayPriority { get; set; } = "Image";
|
public string CustomOverlayPriority { get; set; } = "Image";
|
||||||
|
|
||||||
|
public int CustomOverlayPositionX { get; set; } = 0;
|
||||||
|
public int CustomOverlayPositionY { get; set; } = 0;
|
||||||
|
public int CustomOverlayScale { get; set; } = 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="fieldDescription">Uploading an image will securely save it to the server and automatically update the URL field above.</div>
|
<div class="fieldDescription">Uploading an image will save it to your server and automatically update the URL field above.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="sectionTitle" style="margin-top: 1.2em;">Styles</h2>
|
<h2 class="sectionTitle" style="margin-top: 1.2em;">Styles</h2>
|
||||||
@@ -289,6 +289,8 @@
|
|||||||
<option value="Wave">Liquid Wave</option>
|
<option value="Wave">Liquid Wave</option>
|
||||||
<option value="VHS">VHS Tracking</option>
|
<option value="VHS">VHS Tracking</option>
|
||||||
<option value="Matrix">Digital Matrix</option>
|
<option value="Matrix">Digital Matrix</option>
|
||||||
|
<option value="Ghost">Ghostly Apparition</option>
|
||||||
|
<option value="PulseGlow">Breathing Pulse Glow</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="fieldDescription">Choose the visual styling animation for your custom text.</div>
|
<div class="fieldDescription">Choose the visual styling animation for your custom text.</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -307,11 +309,31 @@
|
|||||||
<option value="Hologram">Hologram</option>
|
<option value="Hologram">Hologram</option>
|
||||||
<option value="CRT">CRT Monitor</option>
|
<option value="CRT">CRT Monitor</option>
|
||||||
<option value="Floating">Floating Float</option>
|
<option value="Floating">Floating Float</option>
|
||||||
|
<option value="VHSTracking">VHS Tracking Glitch</option>
|
||||||
|
<option value="ColorCycle">Rainbow Color Cycle</option>
|
||||||
|
<option value="Mirror">Mirror Reflection</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="fieldDescription">Choose a visual effect to apply to your overlay image.</div>
|
<div class="fieldDescription">Choose a visual effect to apply to your overlay image.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3 class="sectionTitle" style="margin-top:2em; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5em;">Layout Tweaks</h3>
|
||||||
|
<div style="display: flex; gap: 1em; flex-wrap: wrap;">
|
||||||
|
<div class="inputContainer" style="flex: 1; min-width: 150px;">
|
||||||
|
<label class="inputLabel inputLabelUnfocused" for="CustomOverlayPositionX">X Offset (% vw)</label>
|
||||||
|
<input is="emby-input" type="number" id="CustomOverlayPositionX" name="CustomOverlayPositionX" min="-50" max="50" step="1" />
|
||||||
|
<div class="fieldDescription">Horizontal nudge (negative = left, positive = right). Default is 0.</div>
|
||||||
|
</div>
|
||||||
|
<div class="inputContainer" style="flex: 1; min-width: 150px;">
|
||||||
|
<label class="inputLabel inputLabelUnfocused" for="CustomOverlayPositionY">Y Offset (% vh)</label>
|
||||||
|
<input is="emby-input" type="number" id="CustomOverlayPositionY" name="CustomOverlayPositionY" min="-50" max="50" step="1" />
|
||||||
|
<div class="fieldDescription">Vertical nudge (negative = up, positive = down). Default is 0.</div>
|
||||||
|
</div>
|
||||||
|
<div class="inputContainer" style="flex: 1; min-width: 150px;">
|
||||||
|
<label class="inputLabel inputLabelUnfocused" for="CustomOverlayScale">Scale (%)</label>
|
||||||
|
<input is="emby-input" type="number" id="CustomOverlayScale" name="CustomOverlayScale" min="50" max="200" step="1" />
|
||||||
|
<div class="fieldDescription">Overlay zoom level. Default is 100%.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ADVANCED TAB -->
|
<!-- ADVANCED TAB -->
|
||||||
@@ -640,7 +662,8 @@
|
|||||||
'IncludeWatchedContent', 'ShowPaginationDots', 'MaxParentalRating',
|
'IncludeWatchedContent', 'ShowPaginationDots', 'MaxParentalRating',
|
||||||
'MaxDaysRecent', 'ExcludeSeasonalContent', 'HideArrowsOnMobile',
|
'MaxDaysRecent', 'ExcludeSeasonalContent', 'HideArrowsOnMobile',
|
||||||
'EnableCustomOverlay', 'CustomOverlayText', 'CustomOverlayImageUrl',
|
'EnableCustomOverlay', 'CustomOverlayText', 'CustomOverlayImageUrl',
|
||||||
'CustomOverlayStyle', 'CustomOverlayImageStyle', 'CustomOverlayPriority'
|
'CustomOverlayStyle', 'CustomOverlayImageStyle', 'CustomOverlayPriority',
|
||||||
|
'CustomOverlayPositionX', 'CustomOverlayPositionY', 'CustomOverlayScale'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Manual mapping for MediaBarIsEnabled -> IsEnabled, to avoid conflicts with other plugins
|
// Manual mapping for MediaBarIsEnabled -> IsEnabled, to avoid conflicts with other plugins
|
||||||
@@ -884,7 +907,8 @@
|
|||||||
'IncludeWatchedContent', 'ShowPaginationDots', 'MaxParentalRating',
|
'IncludeWatchedContent', 'ShowPaginationDots', 'MaxParentalRating',
|
||||||
'MaxDaysRecent', 'ExcludeSeasonalContent', 'HideArrowsOnMobile',
|
'MaxDaysRecent', 'ExcludeSeasonalContent', 'HideArrowsOnMobile',
|
||||||
'EnableCustomOverlay', 'CustomOverlayText', 'CustomOverlayImageUrl',
|
'EnableCustomOverlay', 'CustomOverlayText', 'CustomOverlayImageUrl',
|
||||||
'CustomOverlayStyle', 'CustomOverlayImageStyle', 'CustomOverlayPriority'
|
'CustomOverlayStyle', 'CustomOverlayImageStyle', 'CustomOverlayPriority',
|
||||||
|
'CustomOverlayPositionX', 'CustomOverlayPositionY', 'CustomOverlayScale'
|
||||||
];
|
];
|
||||||
|
|
||||||
keys.forEach(function (key) {
|
keys.forEach(function (key) {
|
||||||
@@ -919,7 +943,7 @@
|
|||||||
MediaBarEnhancedConfigurationPage.createSectionElement(container, {
|
MediaBarEnhancedConfigurationPage.createSectionElement(container, {
|
||||||
Name: 'New Season',
|
Name: 'New Season',
|
||||||
StartDay: 1, StartMonth: 1,
|
StartDay: 1, StartMonth: 1,
|
||||||
EndDay: 1, EndMonth: 1,
|
EndDay: 31, EndMonth: 1,
|
||||||
MediaIds: '',
|
MediaIds: '',
|
||||||
OverlayText: '',
|
OverlayText: '',
|
||||||
OverlayImageUrl: ''
|
OverlayImageUrl: ''
|
||||||
@@ -997,7 +1021,7 @@
|
|||||||
' </div>' +
|
' </div>' +
|
||||||
' </div>' +
|
' </div>' +
|
||||||
' <div class="inputContainer" style="flex: 1; min-width: 250px; margin: 0; padding-bottom: 5px;">' +
|
' <div class="inputContainer" style="flex: 1; min-width: 250px; margin: 0; padding-bottom: 5px;">' +
|
||||||
' <div class="seasonal-dropzone" style="border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; padding: 1em; text-align: center; cursor: pointer; background: rgba(0,0,0,0.2); transition: all 0.2s ease; position: relative; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center;">' +
|
' <div class="seasonal-dropzone" style="border: 2px dashed rgba(255,255,255,0.2); border-radius: 8px; padding: 1em; text-align: center; cursor: pointer; background: rgba(0,0,0,0.2); transition: all 0.2s ease; position: relative; min-height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center;">' +
|
||||||
' <i class="material-icons" style="font-size: 24px; color: rgba(255,255,255,0.4); margin-bottom: 4px;">cloud_upload</i>' +
|
' <i class="material-icons" style="font-size: 24px; color: rgba(255,255,255,0.4); margin-bottom: 4px;">cloud_upload</i>' +
|
||||||
' <span style="font-size: 0.85em; color: rgba(255,255,255,0.7);">Upload seasonal image</span>' +
|
' <span style="font-size: 0.85em; color: rgba(255,255,255,0.7);">Upload seasonal image</span>' +
|
||||||
' <input type="file" class="seasonal-file-input" accept="image/png, image/jpeg, image/gif, image/webp" style="display: none;">' +
|
' <input type="file" class="seasonal-file-input" accept="image/png, image/jpeg, image/gif, image/webp" style="display: none;">' +
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
|
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
|
||||||
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
|
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
|
||||||
<Authors>CodeDevMLH</Authors>
|
<Authors>CodeDevMLH</Authors>
|
||||||
<Version>1.7.2.5</Version>
|
<Version>1.7.2.9</Version>
|
||||||
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
|
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1035,8 +1035,9 @@
|
|||||||
/* Custom Overlay Styling */
|
/* Custom Overlay Styling */
|
||||||
.custom-overlay-container {
|
.custom-overlay-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8vh;
|
top: calc(8vh + var(--overlay-y, 0vh));
|
||||||
left: 4vw;
|
left: calc(4vw + var(--overlay-x, 0vw));
|
||||||
|
transform: scale(var(--overlay-scale, 1));
|
||||||
z-index: 15;
|
z-index: 15;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1082,9 +1083,9 @@
|
|||||||
|
|
||||||
@media only screen and (max-width: 767px) and (orientation: portrait) {
|
@media only screen and (max-width: 767px) and (orientation: portrait) {
|
||||||
.custom-overlay-container {
|
.custom-overlay-container {
|
||||||
top: 8%; /* oder 5vh? */
|
top: calc(15vh + var(--overlay-y, 0vh));
|
||||||
left: 50%;
|
left: calc(50% + var(--overlay-x, 0vw));
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%) scale(var(--overlay-scale, 1));
|
||||||
width: 90%;
|
width: 90%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -1244,9 +1245,8 @@
|
|||||||
bottom: -10px;
|
bottom: -10px;
|
||||||
left: -50vw;
|
left: -50vw;
|
||||||
right: -50px;
|
right: -50px;
|
||||||
background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.8) 70%, transparent 100%);
|
background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
border-left: 5px solid #00a4dc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideInCinematic {
|
@keyframes slideInCinematic {
|
||||||
@@ -1324,6 +1324,7 @@
|
|||||||
@keyframes liquidWave {
|
@keyframes liquidWave {
|
||||||
0%, 100% { transform: translateY(0) skewY(0); }
|
0%, 100% { transform: translateY(0) skewY(0); }
|
||||||
25% { transform: translateY(-3px) skewY(1deg); }
|
25% { transform: translateY(-3px) skewY(1deg); }
|
||||||
|
50% { transform: translateY(0) skewY(0); }
|
||||||
75% { transform: translateY(3px) skewY(-1deg); }
|
75% { transform: translateY(3px) skewY(-1deg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1348,6 +1349,27 @@
|
|||||||
to { text-shadow: 0 0 10px #0f0, 0 0 20px #0f0; }
|
to { text-shadow: 0 0 10px #0f0, 0 0 20px #0f0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-overlay-style-Ghost {
|
||||||
|
color: rgba(255,255,255,0.8);
|
||||||
|
filter: blur(0px);
|
||||||
|
animation: ghostApparition 6s infinite alternate;
|
||||||
|
}
|
||||||
|
@keyframes ghostApparition {
|
||||||
|
0% { filter: blur(0px); opacity: 1; transform: scale(1); }
|
||||||
|
50% { filter: blur(3px); opacity: 0.6; transform: scale(1.02); }
|
||||||
|
100% { filter: blur(8px); opacity: 0; transform: scale(1.05); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-overlay-style-PulseGlow {
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 0 0 10px rgba(255,255,255,0.8);
|
||||||
|
animation: pulseGlowAura 3s ease-in-out infinite alternate;
|
||||||
|
}
|
||||||
|
@keyframes pulseGlowAura {
|
||||||
|
0% { text-shadow: 0 0 5px rgba(255,255,255,0.5), 0 0 10px #00a4dc; transform: scale(1); }
|
||||||
|
100% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px #00a4dc, 0 0 40px #00a4dc; transform: scale(1.05); }
|
||||||
|
}
|
||||||
|
|
||||||
/* Custom Overlay Image Styles */
|
/* Custom Overlay Image Styles */
|
||||||
.custom-overlay-img-RoundedShadow {
|
.custom-overlay-img-RoundedShadow {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -1406,3 +1428,29 @@
|
|||||||
50% { transform: translateY(-15px); }
|
50% { transform: translateY(-15px); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-overlay-img-VHSTracking {
|
||||||
|
filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5));
|
||||||
|
animation: imgVhsTracking 2s infinite;
|
||||||
|
}
|
||||||
|
@keyframes imgVhsTracking {
|
||||||
|
0% { transform: translateX(0); clip-path: inset(0 0 0 0); filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(0deg); }
|
||||||
|
5% { transform: translateX(-5px); clip-path: inset(10% 0 80% 0); filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(90deg); }
|
||||||
|
10% { transform: translateX(5px); clip-path: inset(40% 0 40% 0); filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(-90deg); }
|
||||||
|
15% { transform: translateX(0); clip-path: inset(0 0 0 0); filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(0deg); }
|
||||||
|
100% { transform: translateX(0); clip-path: inset(0 0 0 0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-overlay-img-ColorCycle {
|
||||||
|
filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5));
|
||||||
|
animation: imgColorCycle 10s linear infinite;
|
||||||
|
}
|
||||||
|
@keyframes imgColorCycle {
|
||||||
|
from { filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(0deg); }
|
||||||
|
to { filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5)) hue-rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-overlay-img-Mirror {
|
||||||
|
filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.5));
|
||||||
|
-webkit-box-reflect: below 2px linear-gradient(transparent, rgba(255,255,255,0.3));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ const CONFIG = {
|
|||||||
customOverlayStyle: "Shadowed",
|
customOverlayStyle: "Shadowed",
|
||||||
customOverlayImageStyle: "None",
|
customOverlayImageStyle: "None",
|
||||||
customOverlayPriority: "Image",
|
customOverlayPriority: "Image",
|
||||||
|
customOverlayPositionX: 0,
|
||||||
|
customOverlayPositionY: 0,
|
||||||
|
customOverlayScale: 100,
|
||||||
enableCustomMediaIds: true,
|
enableCustomMediaIds: true,
|
||||||
enableSeasonalContent: false,
|
enableSeasonalContent: false,
|
||||||
customMediaIds: "",
|
customMediaIds: "",
|
||||||
@@ -3867,6 +3870,14 @@ const slidesInit = async () => {
|
|||||||
|
|
||||||
const slidesContainer = document.getElementById("slides-container");
|
const slidesContainer = document.getElementById("slides-container");
|
||||||
if (slidesContainer) {
|
if (slidesContainer) {
|
||||||
|
const posX = CONFIG.customOverlayPositionX || 0;
|
||||||
|
const posY = CONFIG.customOverlayPositionY || 0;
|
||||||
|
const scaleValue = (CONFIG.customOverlayScale !== undefined ? CONFIG.customOverlayScale : 100) / 100;
|
||||||
|
|
||||||
|
overlayContainer.style.setProperty('--overlay-x', `${posX}vw`);
|
||||||
|
overlayContainer.style.setProperty('--overlay-y', `${posY}vh`);
|
||||||
|
overlayContainer.style.setProperty('--overlay-scale', scaleValue);
|
||||||
|
|
||||||
slidesContainer.appendChild(overlayContainer);
|
slidesContainer.appendChild(overlayContainer);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -9,12 +9,12 @@
|
|||||||
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
|
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"version": "1.7.2.5",
|
"version": "1.7.2.9",
|
||||||
"changelog": "feat: add custom text/image overlay option\n- feat: add option to disable pagination dots/counter\n- feat: add exclude seasonal content from random fetching option\n- Add hide arrows on mobile option \n- fix button issue on mobile when using ElegantFin Theme",
|
"changelog": "feat: add custom text/image overlay option\n- feat: add option to disable pagination dots/counter\n- feat: add exclude seasonal content from random fetching option\n- Add hide arrows on mobile option \n- fix button issue on mobile when using ElegantFin Theme",
|
||||||
"targetAbi": "10.11.0.0",
|
"targetAbi": "10.11.0.0",
|
||||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.7.2.5/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.7.2.9/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||||
"checksum": "d464b8ce83fe85018623c3de17ec5c1c",
|
"checksum": "7e70de12804aba803fdbe060c9ca5ae0",
|
||||||
"timestamp": "2026-03-10T19:47:06Z"
|
"timestamp": "2026-03-10T23:38:06Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "1.7.0.14",
|
"version": "1.7.0.14",
|
||||||
|
|||||||
Reference in New Issue
Block a user