Skip to content
Proyectos

Fovty/HoverTrailer

Ver en GitHub

Acerca de

Netflix-style video previews for Jellyfin

Diseño y multimedia

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

HoverTrailer, a plugin for Jellyfin

Trailer previews on hover for Jellyfin.
Point at a movie or series card and its trailer starts playing, like on Netflix.

Release Jellyfin 12.x Build Downloads License Support on Ko-fi

HoverTrailer adds trailer previews to the Jellyfin web interface. It plays a local trailer file if the item has one, a YouTube trailer otherwise, and can fall back to the theme video. Position, size, background blur and player controls are set on the plugin's settings page.

Demo

Hovering over cards in a Jellyfin library starts their trailers

Anchor to Card with Halo blur Fix Position with player controls
Trailer preview anchored to its card, with the neighbouring posters blurred Trailer preview pinned to a corner, with the control bar and the move and resize handles

Install

Requires Jellyfin 12. For Jellyfin 10.11 see Compatibility.

  1. In the Jellyfin dashboard open Plugins → Manage Repositories and add this repository:
    https://raw.githubusercontent.com/Fovty/HoverTrailer/master/manifest.json
    
  2. Recommended: install File Transformation (v2.2.1.0 or newer) first. HoverTrailer detects it and injects its script through it, so no file in Jellyfin's web directory is modified.
  3. Back in Plugins, search for HoverTrailer and install it.
  4. Restart the Jellyfin server.
  5. Open Plugins → HoverTrailer to change the settings. Every option has a description next to it.
Manual installation
  1. Download the zip of the latest release.
  2. Extract the .dll into a HoverTrailer folder in your Jellyfin plugins directory:
    • Linux: /var/lib/jellyfin/plugins/HoverTrailer
    • Docker: /config/plugins/HoverTrailer
    • Windows: %ProgramData%\Jellyfin\Server\plugins\HoverTrailer
  3. Restart the Jellyfin server.

Compatibility

Jellyfin server HoverTrailer release Plugin runtime
12.0 and newer 0.4.0.0 and newer .NET 10
10.11.x 0.3.1.0 (last build for 10.11) .NET 9

The plugin catalog picks the newest release whose targetAbi matches your server, so both server lines use the same repository URL. Only the 12.x line gets new features. Releases built for 10.11 fail on Jellyfin 12 with a MissingMethodException, because Jellyfin 12 changed the plugin ABI and moved to .NET 10 (#24).

What changed in each release: CHANGELOG.md.

Known limitations

  • Touch devices: hover needs a pointer, so the plugin turns itself off on phones, tablets and other devices that report a touchscreen. This includes laptops with a touchscreen.
  • Native mobile and TV apps do not load the web interface, so the plugin has no effect there.
  • First hover is muted: browsers block autoplay with sound until you have interacted with the page. Click anywhere once and later previews have audio.
  • YouTube previews are always 16:9, because the real aspect ratio of an embedded YouTube video cannot be read.
  • Seeking in local trailers works when the browser can play the file itself (H.264, VP9 or AV1 video with AAC, MP3, Opus, Vorbis or FLAC audio). Other files, for example HEVC video or AC3/DTS audio, play through Jellyfin's remux, which cannot seek, so the seek bar is hidden.

Troubleshooting

No preview appears

  1. Check that the plugin is listed and enabled in the dashboard, and that the server was restarted after installing.
  2. Hard reload the page (Ctrl+Shift+R, or Cmd+Shift+R on macOS). The browser caches the client script.
  3. Use a desktop browser. Touch devices are skipped on purpose.

A trailer does not play

  1. Check that the item has a trailer in Jellyfin: a local trailer file or a trailer URL in its metadata.
  2. Turn on Enable Debug Mode in the plugin settings, reload, and look for [HoverTrailer] lines in the browser console (F12).
  3. YouTube sometimes refuses to play behind a VPN. Local trailer files avoid that; Jellyfin's naming rules for extras apply, for example Movie Name (2020)-trailer.mp4.

Access to the path '/usr/share/jellyfin/web/index.html' is denied

Install the File Transformation plugin. HoverTrailer then stops touching the web directory.

Alternatives if you cannot use File Transformation

Fix the file permissions:

docker exec -it jellyfin find / -name index.html
docker exec -it --user root jellyfin chown jellyfin:jellyfin /jellyfin/jellyfin-web/index.html
docker restart jellyfin

Or bind-mount the file:

docker cp jellyfin:/jellyfin/jellyfin-web/index.html /path/to/jellyfin/config/index.html
# then in docker-compose.yml:
volumes:
  - /path/to/jellyfin/config/index.html:/jellyfin/jellyfin-web/index.html

Build from source

Requires the .NET 10 SDK.

git clone https://github.com/Fovty/HoverTrailer.git
cd HoverTrailer
dotnet build --configuration Release --property:TreatWarningsAsErrors=false

The switch is needed because the project treats analyzer warnings as errors and does not build clean without it. The plugin is Fovty.Plugin.HoverTrailer/bin/Release/net10.0/Fovty.Plugin.HoverTrailer.dll.

Contributing

Bug reports and ideas are welcome in the issues; the bug form asks for the details that are usually needed. Pull requests are welcome too. If HoverTrailer is useful to you, a coffee on Ko-fi helps keep it maintained.

License

MIT, see LICENSE.

Credits

Built for Jellyfin. The plugin structure and release workflow follow Intro Skipper, the settings page follows Jellyscrub. The films in the demo are open movies by the Blender Studio (CC BY).

HoverTrailer is a community plugin and is not affiliated with Jellyfin or Netflix.

Explorar proyectos relacionados

Cargando…