Package com.esprit.utils
Class FilmYoutubeTrailer
java.lang.Object
com.esprit.utils.FilmYoutubeTrailer
Utility class providing helper methods for the RAKCHA application. Contains
reusable functionality and common operations.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- RAKCHA Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwatchTrailer
(String filmName) Search for and return the trailer URL for a given film
-
Field Details
-
LOGGER
-
APPLICATION_NAME
- See Also:
-
YOUTUBE_BASE_URL
- See Also:
-
FALLBACK_URL
- See Also:
-
MAX_RESULTS
private static final long MAX_RESULTS- See Also:
-
apiKey
-
youtube
private final com.google.api.services.youtube.YouTube youtube
-
-
Constructor Details
-
FilmYoutubeTrailer
public FilmYoutubeTrailer()Performs FilmYoutubeTrailer operation.
-
-
Method Details
-
watchTrailer
Search for and return the trailer URL for a given film- Parameters:
filmName
- The name of the film to search for- Returns:
- URL of the trailer video, or fallback URL if not found
-