Commit Graph
343 Commits
Author SHA1 Message Date
Skyler Shaw c7a4a47735 Serve slideshowpure.js/css from the plugin instead of jsDelivr
The injected index.html loaded both files from cdn.jsdelivr.net at
{{Config.VersionString}}, default "main". A branch ref is not a version:
jsDelivr re-resolves it at request time, so browser-side changes reach
every install the day they land, with no release and no way to decline,
and the code in the browser drifts from the installed plugin version. It
also leaves the media bar broken on servers without internet access.

Embed the files in the assembly and serve them from the existing
/MediaBar/{file} route:

- slideshowpure.js/css become EmbeddedResource under the Inject namespace
- Inject/index.html templates an asset base URL instead of a bare ref
- VersionString defaults to "embedded", which resolves to ../MediaBar
  (relative, so it works when Jellyfin is hosted under a base path)

Any other value is still treated as a git ref and fetched from jsDelivr.
2026-08-26 05:32:44 -07:00
Skyler Shaw f8b52288db Stop index.html requests rewriting the saved VersionString
IndexHtml() normalised VersionString in place ("latest" to "main", and
"main" to "10.11" on 10.11 builds). Those assignments mutate the live
configuration, so every home page load overwrote the value the
administrator saved, and concurrent requests raced over the field.
Compute the resolved version into a local instead.
2026-08-26 05:32:43 -07:00
Skyler Shaw 48f620a6a8 Return 404 when GetFile is asked for a resource that is not embedded
The manifest resource stream was null-forgiven, so a request for any file
outside the embedded Inject.* set threw mid-action and surfaced as a 400
with a stack trace in the server log. Return NotFound instead, and dispose
the reader.
2026-08-26 05:32:43 -07:00
Zach Ross-Clyne b2672657c4 Merge branch 'MakD:main' into main 2026-08-23 21:51:33 +01:00
M0RPH3US da79c05066 Merge pull request #114 from MrRussLuther/sync-page-backdrop
Sync the page backdrop with the featured slide
2026-08-11 21:07:52 +05:30
Russell Luther c1fa76f046 Sync the page backdrop with the featured slide
The background behind the home page is Jellyfin's own backdrop layer, and it
has no connection to what the bar is showing. It sits on unrelated library art,
and where the user has Jellyfin's backdrop rotator enabled it also cycles on its
own timer, so the page behind the hero drifts while the hero itself is correct.

PageBackdrop points that layer at the featured item and keeps it in step. It
reuses the exact URL the active slide already requested through
SlideCreator.buildImageUrl, so the browser serves the image from cache and no
extra request is made.

Two details worth calling out:

Jellyfin's rotator adds its own .backdropImage siblings into the same container
and cycles them, which paints over anything we set. While the bar owns the
screen we keep our layer the only one and make sure it stays last. This is done
with a MutationObserver on the container rather than a timer, so it reacts to
the rotator instead of polling for it.

It is scoped to the home page. VisibilityObserver already knows when the bar is
hidden, so leaving the page hands the backdrop straight back to Jellyfin and no
other page is affected.

Defaults on, alongside slideAnimationEnabled and enableTrailers. Set
CONFIG.syncPageBackdrop to false to leave the backdrop alone.
2026-08-06 22:31:57 -04:00
M0RPH3US b6a113ba45 Merge pull request #113 from MrRussLuther/prefer-main-trailer
Pick the main trailer instead of RemoteTrailers[0]
2026-08-06 20:11:51 +05:30
M0RPH3US e835513bbf Merge pull request #112 from MrRussLuther/fix-firefox-backdrop-mask-composite
Fix missing backdrop to trailer fade in Firefox (invalid mask-composite value)
2026-08-06 20:10:56 +05:30
M0RPH3US bb53c0b01d Merge pull request #111 from Vinnie-Singleton/makd-endsat-clock
Show "Ends at" time in the viewer's own clock format
2026-08-06 20:10:10 +05:30
Russell Luther 049cd148d2 Demote alternate cuts within tier and handle youtu.be and embed URLs
A flat 10 point demotion ranked an accessibility variant of a real
trailer below non-trailer junk like Behind the Scenes or Review.
Subtract 0.5 instead, so an alternate cut loses to an ordinary entry
of the same tier but still beats lower tier promo clips.

Also parse youtu.be short links and youtube.com embed links by
pathname, since neither carries a v query param.
2026-08-01 01:16:33 -04:00
Russell Luther 96b0d4b099 Pick the main trailer instead of RemoteTrailers[0]
RemoteTrailers arrives in metadata provider order, which is not
preference order. Taking index 0 unconditionally means the bar
regularly plays something other than the trailer: a promo clip, a
teaser, or an accessibility variant.

The clearest case is an American Sign Language cut. TMDb lists
"Official American Sign Language Trailer" first for A Minecraft Movie,
Mortal Kombat II and Superman, so those slides play a trailer with an
interpreter composited into the corner, drawn over the backdrop.

Index 0 is also not guaranteed to be a YouTube link. When it is not,
searchParams.get("v") returns null and the slide loses its trailer
even though a usable YouTube entry sits further down the list.

Entries are now ranked by name, preferring official, final and main
trailers over generic ones and teasers, with alternate cuts ranked
below everything else rather than dropped so an item that has nothing
else still plays something. Provider order breaks ties, so an item
whose first entry is already the best keeps it. Entries that yield no
video id are skipped instead of ending the search.

Across a 384 item library this changes the pick for 105 items and
loses the trailer for none. Avatar moves from "Back in Theatres" to
"Special Edition Official Trailer", Oppenheimer from "Review" to
"Official Trailer", Moana 2 from "Special Look" to "Official Trailer",
and the three titles above stop playing the sign language cut.
2026-08-01 00:30:33 -04:00
Russell Luther b1735613a2 Use the standard intersect value for mask-composite on .backdrop.with-video
source-in is a -webkit-mask-composite value and is not valid for the
standard mask-composite property, which accepts only add, subtract,
intersect and exclude. Firefox drops the invalid declaration and falls
back to the initial value add, which unions the two mask layers instead
of intersecting them. The horizontal fade is lost and the 40% wide
backdrop hard cuts against the playing trailer.

Chromium is unaffected either way because it honours the
-webkit-mask-composite line that follows, which is left unchanged.

.video-container already uses the intersect and source-in pairing.
2026-07-28 05:27:43 -04:00
Vinnie-Singleton 46647a739b Show "Ends at" time in the viewer's own clock format
Right now the end time is locked to 24-hour. There is no option to switch
to 12 hour. Dropping the forced setting lets it match whatever the viewer's
device already uses including 12 hr with AM/PM along with the existing 24
hour format.
2026-07-07 02:25:50 +00:00
M0RPH3US 073eac75e7 Update version number in slideshowpure.css 2026-07-01 15:41:47 +05:30
M0RPH3US 57e33f5749 Update version number to v5.0.1 2026-07-01 15:41:28 +05:30
M0RPH3US f2f58465c4 Merge pull request #110 from dracovoldy/fix/youtube-api-fallback
Fallback when YouTube API fails to load
2026-06-29 20:01:25 +05:30
Abhishek Mallik 74873bf4d4 Fallback when YouTube API fails to load 2026-06-29 02:14:19 +05:30
Zach Ross-Clyne 2b0faa8123 Remove daily schedule from stale workflow
Removed scheduled cron job for stale issues and PRs.
2026-06-26 11:19:41 +01:00
IAmParadox27 ae878fd763 Added support for 10.11.11 - need to change this to a nicer more future proofed solution in the future 2.4.12.0 2026-06-11 11:01:56 +01:00
IAmParadox27 27eedf38f3 Minor compile error for 10.10.7 and 10.11.x (not .9+) 2.4.11.0 2026-05-25 21:05:58 +01:00
IAmParadox27 0ca9bd0622 Added support for 10.11.10 2026-05-25 20:57:28 +01:00
IAmParadox27 9c4e3ef05e Merge branch 'upstream'
# Conflicts:
#	slideshowpure.js
2026-05-25 20:43:48 +01:00
IAmParadox27 69ca89e385 Added support for 10.11.9 2026-05-25 20:37:47 +01:00
M0RPH3US 23a98399b8 Update slideshowpure.css 2026-05-19 21:29:13 +05:30
M0RPH3US ad2a5473e8 Update slideshowpure.js 2026-05-19 21:28:53 +05:30
M0RPH3US 787fd379ef Update slideshowpure.css 2026-05-19 20:39:04 +05:30
M0RPH3US 18b5a6dca1 Update slideshowpure.js
Attempt to fix #105
2026-05-19 20:38:34 +05:30
Zach Ross-Clyne e246a616cd Merge branch 'MakD:main' into main 2.4.9.0 2.4.10.0 2026-02-13 14:31:50 +00:00
M0RPH3US 3c64087e24 Update slideshowpure.css 2026-02-13 13:58:38 +05:30
M0RPH3US fcb7bf469b Update slideshowpure.js 2026-02-13 13:58:20 +05:30
M0RPH3US ec89fea419 Update slideshowpure.css 2026-02-13 13:30:01 +05:30
M0RPH3US ec268f128d Update slideshowpure.js 2026-02-13 13:29:32 +05:30
M0RPH3US 3d0ae04cc6 Update slideshowpure.css 2026-02-11 22:06:01 +05:30
M0RPH3US d3c29f6f6c Update slideshowpure.js 2026-02-11 22:05:34 +05:30
IAmParadox27 6ed1f7277a The actually hooking of the config var was missed from previous PR. Adding now 2.4.8.1 2026-02-08 11:23:49 +00:00
Zach Ross-Clyne b480d7a3b1 Merge branch 'MakD:main' into main 2.4.8.0 2026-02-08 10:27:38 +00:00
Zach Ross-Clyne dec803c61b Merge pull request #116 from n00bcodr/main
Add Enable Trailers to Plugin Config
2026-02-08 10:27:29 +00:00
Pavan Thanuj Upadrasta 4442e1cf43 Revert "Pause/resume trailers on page visibility"
This reverts commit d041b49471.
2026-02-08 10:26:01 +00:00
Pavan Thanuj Upadrasta c494c1dbc4 Revert "Update index.html"
This reverts commit b5b7a0298b.
2026-02-08 10:25:56 +00:00
M0RPH3US a76fa02a56 Update slideshowpure.css 2026-02-07 18:02:14 +05:30
M0RPH3US 568d0a028c Implement page visibility handling for slideshow
Added page visibility handling to pause and resume slideshow and videos based on tab visibility.
2026-02-07 18:01:34 +05:30
Pavan Thanuj Upadrasta b5b7a0298b Update index.html 2026-02-06 22:53:58 +00:00
Pavan Thanuj Upadrasta d041b49471 Pause/resume trailers on page visibility
Bump slideshow version to v4.1.0 and add page-visibility handling for trailer playback. Introduces STATE flags (pageVisible, trailerPlaying) and a VisibilityObserver.handlePageVisibilityChange with a visibilitychange listener to pause trailers when the tab is hidden and resume them only when the page is visible and slideshow isn't paused. Stops the auto-advance timer while a trailer is playing and restarts/advances appropriately when trailers end; ensures trailerPlaying is reset when switching slides. Also adds defensive checks, console logs and error handling for player play/pause operations, and falls back to the slide timer if the page is not visible.
2026-02-06 22:53:55 +00:00
Pavan Thanuj Upadrasta 912e23cb67 Add Enable Trailers to Plugin Config 2026-02-06 22:32:53 +00:00
Zach Ross-Clyne e9de149120 Merge branch 'MakD:main' into main 2026-02-05 14:55:20 +00:00
M0RPH3US 685e7ecfc6 Update Jellyfin Slideshow to version 4.0.0 2026-02-05 11:02:09 +05:30
M0RPH3US 5ff5b4de05 Upgrade Jellyfin Slideshow to version 4.0.0 2026-02-05 11:01:31 +05:30
M0RPH3US 164a8c996a Update version number to 3.0.9 in CSS file 2026-01-29 02:51:24 +05:30
M0RPH3US 921fefa95d Update version number to v3.0.9 2026-01-29 02:48:09 +05:30
M0RPH3US 85aa720cba Merge pull request #85 from TheMatrixan/main
Fix JSON extraction in LocalizationUtils
2026-01-29 02:42:39 +05:30