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.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 30 octobre 2014 Ă 14h01
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.
Réponse de mrudowsky
le 8 juillet 2015 Ă 19h42
How do I create the video url from key, name, site, size and type information form the json file?
Réponse de Travis Bell
le 9 juillet 2015 Ă 12h04
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.
Réponse de informatica
le 25 mars 2016 Ă 05h35
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!
Réponse de Travis Bell
le 25 mars 2016 Ă 09h53
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/videosRéponse de informatica
le 25 mars 2016 Ă 10h36
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
Réponse de Travis Bell
le 25 mars 2016 Ă 10h49
You can't from any of the list methods at this time. You would have to call the id via a second API call.
Réponse de informatica
le 25 mars 2016 Ă 11h13
Ok, thanks for the very fast replies
Réponse de a.salem2
le 12 décembre 2016 à 04h33
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.
Réponse de Travis Bell
le 12 décembre 2016 à 10h17
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.
Réponse de NayirMichel
le 3 mai 2017 Ă 07h00
how can I display the image for any trailer embedded in the movie?
Réponse de Travis Bell
le 3 mai 2017 Ă 11h45
@NayirMichel Which image are you wanting to display?
Réponse de lanre
le 12 mai 2017 Ă 11h37
@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.
Réponse de Flixmag
le 13 mai 2017 Ă 07h25
??
Réponse de Travis Bell
le 13 mai 2017 Ă 09h23
@Flixmag Do you have a question?