Jellyfin Forum
Assistance Needed: Using API to Retrieve Local Movie Trailers in Jellyfin - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Plugin Development (https://forum.jellyfin.org/f-plugin-development)
+--- Thread: Assistance Needed: Using API to Retrieve Local Movie Trailers in Jellyfin (/t-assistance-needed-using-api-to-retrieve-local-movie-trailers-in-jellyfin)



Assistance Needed: Using API to Retrieve Local Movie Trailers in Jellyfin - daiguaxiaobai - 2024-07-05

Hello Jellyfin Community,
I am currently working on enhancing the Jellyfin experience by adding a feature to play movie trailers when the mouse hovers over a movie card. I have successfully implemented the hover-to-play feature using Tampermonkey, but I am struggling with how to retrieve the local trailer URL for a specific movie using the Jellyfin API.
As a beginner, I have relied heavily on AI assistance to complete many aspects of this project, including the translation of this request. I would greatly appreciate any guidance on how to make an API request to fetch the local trailer URL for a given movie. Any examples or documentation references would be highly beneficial.
Thank you for your support!
Best regards,