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.
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsÀtta denna artikel eller lÀgga till den i en lista?
Inte medlem?
Svar frÄn Travis Bell
den 30 oktober 2014 vid 2:01 PM
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.
Svar frÄn mrudowsky
den 8 juli 2015 vid 7:42 PM
How do I create the video url from key, name, site, size and type information form the json file?
Svar frÄn Travis Bell
den 9 juli 2015 vid 12:04 PM
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.
Svar frÄn informatica
den 25 mars 2016 vid 5:35 AM
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!
Svar frÄn Travis Bell
den 25 mars 2016 vid 9:53 AM
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/videosSvar frÄn informatica
den 25 mars 2016 vid 10:36 AM
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
Svar frÄn Travis Bell
den 25 mars 2016 vid 10:49 AM
You can't from any of the list methods at this time. You would have to call the id via a second API call.
Svar frÄn informatica
den 25 mars 2016 vid 11:13 AM
Ok, thanks for the very fast replies
Svar frÄn a.salem2
den 12 december 2016 vid 4:33 AM
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.
Svar frÄn Travis Bell
den 12 december 2016 vid 10:17 AM
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.
Svar frÄn NayirMichel
den 3 maj 2017 vid 7:00 AM
how can I display the image for any trailer embedded in the movie?
Svar frÄn Travis Bell
den 3 maj 2017 vid 11:45 AM
@NayirMichel Which image are you wanting to display?
Svar frÄn lanre
den 12 maj 2017 vid 11:37 AM
@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.
Svar frÄn Flixmag
den 13 maj 2017 vid 7:25 AM
??
Svar frÄn Travis Bell
den 13 maj 2017 vid 9:23 AM
@Flixmag Do you have a question?