Hi how to display trailer from particular movie say for eg: from upcoming movies if selected one movie, where I need to display video trailer. How to get that link.
Thanks.
Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.
Want to rate or add this item to a list?
Not a member?
Odpowiedź użytkownika Travis Bell
30 października 2014 o godz. 2:01PM
Hi Ramkumar,
I assume your'e referring to doing this on the API? If so, once you have an id, lets say Interstellar (id 157336), you can call the
/videos
method.You can of course use
append_to_response
to get the movie details and videos in a single query too:Cheers.
Odpowiedź użytkownika mrudowsky
8 lipca 2015 o godz. 7:42PM
How do I create the video url from key, name, site, size and type information form the json file?
Odpowiedź użytkownika Travis Bell
9 lipca 2015 o godz. 12:04PM
Since we link to YouTube, it's as simple as taking the
key
value and appending it to a youtube.com address like so:Has the YouTube key of
SUXWAEX2jlg
, so:Cheers.
Odpowiedź użytkownika informatica
25 marca 2016 o godz. 5:35AM
Hi, in my apllication I have to search films by name. Is it possible to append video informations using "/search/movie" (I get always video=false). Thanks in advance!
Odpowiedź użytkownika Travis Bell
25 marca 2016 o godz. 9:53AM
The
video
field returned in results has nothing to do with YouTube videos. It's simply the designation as to whether or not the item is what we call a video here on TMDb. For more about videos, check this link: https://www.themoviedb.org/documentation/editing/videosOdpowiedź użytkownika informatica
25 marca 2016 o godz. 10:36AM
So, how can I get YouTube videos (trailers) with "/search/movie"? If this can't be done I have to get the id with the first api call and than get video informations with a second api call
Odpowiedź użytkownika Travis Bell
25 marca 2016 o godz. 10:49AM
You can't from any of the list methods at this time. You would have to call the id via a second API call.
Odpowiedź użytkownika informatica
25 marca 2016 o godz. 11:13AM
Ok, thanks for the very fast replies
Odpowiedź użytkownika a.salem2
12 grudnia 2016 o godz. 4:33AM
What may be the second api call? Can you please provide details steps for implementing the video trailer (I am creating this app using java) Also, I am doing a similar "search" api call, like informatica.
Odpowiedź użytkownika Travis Bell
12 grudnia 2016 o godz. 10:17AM
Hi @a.salem2 I created an API doc page that kind of goes through the basic process of what you're asking. You can read it here.
Odpowiedź użytkownika NayirMichel
3 maja 2017 o godz. 7:00AM
how can I display the image for any trailer embedded in the movie?
Odpowiedź użytkownika Travis Bell
3 maja 2017 o godz. 11:45AM
@NayirMichel Which image are you wanting to display?
Odpowiedź użytkownika lanre
12 maja 2017 o godz. 11:37AM
@travisbell I think he means the thumbnail to display, with e.g. a play icon on it, showing that it's a video that will be played on tapping that play icon.
Odpowiedź użytkownika Flixmag
13 maja 2017 o godz. 7:25AM
??
Odpowiedź użytkownika Travis Bell
13 maja 2017 o godz. 9:23AM
@Flixmag Do you have a question?