The Movie Database Подршка

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 одговора (на страни 2 од 2)

Jump to last post

Претходна страница

@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?

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се