No problem with your English. I was looking at your problem and found more info for you.
First, IMDB allows everyone to embed their videos into your site if you wish to. Therefore, this is legal and
not a problem.
Next, on their first page of any movie, you get all of the general information about the movie you select.
On that page is NOT any trailers in a viewable format. Therefore, to scrap out these trailers, you need to
use more than one step. I looked at the template PHP code that you are using to acquire the data. It does
not seem to show the trailers as direct links. I will have to run some scraping tests to see if I can come up
with a working version for you.
Basically, you have to alter the current code to locate the trailer info. On IMDB, when you select a trailer,
it takes you to a secondary page. I entered “Godfather” to test with. Then, selected TRAILERS. This sent
me to this page: “http://www.imdb.com//video/imdb/vi1348706585/?ref_=tt_ov_vi”… As you see, there is
no indication in the URL that it is from the Godfather or that it is a trailer except it is inside a “video” folder.
So, you would have to scrap this address from the original page and then re-scrape this new page to locate
the trailer’s code. On this page, the one I just showed you, it has an “EMBED” button next to the video.
This will show you code that you can use for placing this video trailer into your own page. Here is the code
for this “Godfather” trailer:
[php]
[/php]
As you see, it is the code that you need to place on your site where you want to show the video. It places
the video in place into an "iFrame". I selected the 640-pixel option. To test this, you can place this into your
test page and see if the Godfather trailer works. It should. I tried it on my server and it shows up...
So, you would need to first, alter your code to locate the trailer link. Next, scrape that new page for the real
trailer “EMBED” code and that is the code you need to keep to display into your own page where you want
it to display.
Do you understand all of this. I hope so. Let us know if you get it working or if you need further help.
Good luck with your code!