jwk811 Posted April 22, 2009 Share Posted April 22, 2009 i take the embed code and put it in the html and nothing comes up cept when you first load it a blank square then it goes away once the site loads Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/ Share on other sites More sharing options...
tang Posted April 22, 2009 Share Posted April 22, 2009 View the source of your page and compare it to the html that youtube advise that you use. Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/#findComment-816724 Share on other sites More sharing options...
jwk811 Posted April 22, 2009 Author Share Posted April 22, 2009 ok nevermind it wasnt working yesterday but i checked it again and now its working weird. but i have another question. i want the embedded video to have a thumbnail. heres whats going to happen. people will come to the site click embed video from youtube. then they will copy and paste the embeded code into the area i provide which will then go into the database. on the video page it will show everyones videos but only the thumbnail and when they click on it it will go to the video on MY website. the embedded video. Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/#findComment-816783 Share on other sites More sharing options...
longtone Posted April 23, 2009 Share Posted April 23, 2009 i want the embedded video to have a thumbnail. You need to use the Youtube API eg: http:gdata.youtube.com/feeds/api/videos/IYhjYAZcuN0 Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/#findComment-817829 Share on other sites More sharing options...
coalgames Posted April 26, 2009 Share Posted April 26, 2009 I see what you mean. You are making a portal where users enter in an embed code that goes into your database then a list of videos appear on your website. You could probably use fopen() to grab the thumbnail from the youtube site. Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/#findComment-819905 Share on other sites More sharing options...
TheFilmGod Posted April 29, 2009 Share Posted April 29, 2009 I see what you mean. You are making a portal where users enter in an embed code that goes into your database then a list of videos appear on your website. You could probably use fopen() to grab the thumbnail from the youtube site. fopen() is restricted from external servers. You simply would want to find the link of the image on youtube's server and "hotlink" the image to youtube's server. Google "youtube thumbnail" for help. I'm sure there are some thumbnails. Quote Link to comment https://forums.phpfreaks.com/topic/155239-why-cant-i-embed-a-youtube-video-on-my-website/#findComment-821560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.