I personally use the PHP wrapper(glamorous/TMDb-PHP-API) to help me with this:
$tmdb_V3 = new TMDb('APIKEY');
$movietrailer = $tmdb_V3->getMovieTrailers($movieId);
// Get the YouTube ID
$trailer = $movietrailer['youtube'][0]['source'];
/* //If you want to view all the data from Json un-comment the below three lines.
echo "<pre>";
print_r($movietrailer);
echo "</pre>";
//*/
To then display the video you can use the below code:
Reply by Dale
on July 16, 2013 at 10:21 AM
I personally use the PHP wrapper(glamorous/TMDb-PHP-API) to help me with this:
To then display the video you can use the below code:
If you read the document page your find example there for your choose of langue :
http://docs.themoviedb.apiary.io/#get-%2F3%2Fmovie%2F%7Bid%7D%2Ftrailers
Dale :D
Reply by Kevin Deery
on July 16, 2013 at 11:07 AM
Hi,
if you go onto youtube and search for embedded youtube player you will get everything you need
you need to remove specific things form the url, I use the flash player on my windows form app to do this