Assistance de TMDB

When I download the API for the Movie API, there is a video object in the results, but it is set to false.

It looks like this:

"video":false,

I'm getting the API from this URL: http://api.themoviedb.org/3/movie/popular

Is it possible to download video trailers from this API? I ask because I notice that there are video trailers on www.themoviedb.org.

25 réponses (sur la page 2 sur 2)

Jump to last post

Page précédente

@travisbell said:

this is id (video) for a particular one item our also for all list of item??

My example is one video (from the results array, which can contain many) for one specific movie, Logan, id: 263115).

Hi travis i thast dont now how to do it in the cod exemple were to past the url how to start the video i need the youtubeplayerView?? but thank you any way

Unfortunately I have no idea about anything to do with youtubeplayerView. Never used it wink but asking for that kind of support here is probably not the best place. Somewhere like Stack Overflow would be better suited for that kind of question.

Cheers.

@travisbell said:

You need to call the method that Kevin linked to above: http://docs.themoviedb.apiary.io/#reference/movies/movieidvideos

You cannot get the video responses in any of the list methods, only by calling the primary movie video method:

http://api.themoviedb.org/3/movie/131634/videos?api_key=###

Which you can do with append_to_response as well (to get everything in a single HTTP call):

http://api.themoviedb.org/3/movie/131634?api_key=###&append_to_response=videos

Hope that make more sense now.

Hi Travis

how the video is gonna start to play ?? its going direct to the YouTube when you click the button OUR the video is playing in the activity when you press the button

thank you

I'm not sure how that's done locally, I believe there's a way to play them inline. You would have to check out the YouTube API and Android libraries.

@travisbell said:

I'm not sure how that's done locally, I believe there's a way to play them inline. You would have to check out the YouTube API and Android libraries.

thank you travis

@travisbell sorry how i can get videos of popular movies ( the category of sorting criteria is popular )

The link that Kevin made doesn't work at all.

Also, a lot of the examples in your documentaries don't work, e.g. https://api.themoviedb.org/3/movie/157336?api_key={api_key}&append_to_response=videos,images

Could someone look into it?

@codette said:
The link that Kevin made doesn't work at all.

This conversation with Kevin is from 2015.
The documents are now here.
https://developers.themoviedb.org/3/getting-started/introduction
And soon they will go to another service.
In the case of videos, trailers, the new link is here:
https://developers.themoviedb.org/3/movies/get-movie-videos

Also, a lot of the examples in your documentaries don't work, e.g.
https://api.themoviedb.org/3/movie/157336?api_key={api_key}&append_to_response=videos,images
Could someone look into it?

I just tested it and it worked correctly for me.
https://api.themoviedb.org/3/movie/157336?api_key=THE_KEY&append_to_response=videos,images
It's the basic data of the movie Interstellar (2014)
https://www.themoviedb.org/movie/157336-interstellar
and at the end the videos, trailers.

vote_average    8.399
vote_count  31174
videos  
results 
0   
iso_639_1   "en"
iso_3166_1  "US"
name    "INTERSTELLAR - Own it TODAY on Blu-ray and DIGITAL HD!"
key "KlyknsTJk0w"
published_at    "2015-03-20T21:10:51.000Z"
site    "YouTube"
size    1080
type    "Teaser"
official    true
id  "57817ab4c3a36813870024b7"
1   
iso_639_1   "en"
iso_3166_1  "US"
name    "Interstellar – Building A Black Hole – Official Warner Bros."
key "MfGfZwQ_qaY"
site    "YouTube"
size    1080
type    "Featurette"
official    true
published_at    "2014-10-24T12:59:28.000Z"
id  "5db465f6f056d500180e96ff"
2   
iso_639_1   "en"

Is there any way to get the same trailers of movies and tv shown on website's home page, in the app as well? If yes what is the logic used there? Thank You

Basically, What is the logic used to display the trailers there for both movies and tv shows can anyone explain?

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenĂŞtre ouverte
? Ouvrir la fenĂŞtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenĂŞtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion