Connecting Tech Pros Worldwide Forums | Help | Site Map

Embed youtube video in iframe and play on my site

Newbie
 
Join Date: Dec 2006
Posts: 1
#1: Dec 8 '06
Hi Everyone,

i am developing one portal, in which i need to integrate youtube website's video. youtube is providing one ifame code if i use that , i can successfully emmebed the video's in to my website... but what is the problem is when i click on the list of videos from that frames it is going to the youtube site that is www.youtube.com, instead i want that video to be played in my website. so can any one suggest me how to go ahead

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jun 3 '08

re: Embed youtube video in iframe and play on my site


Without code, I can't say exactly, but you would need to have an object on your page that you can change the src of. What it probably does now is just link to a page on their site.
hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#3: Jun 3 '08

re: Embed youtube video in iframe and play on my site


YouTube seems to have changed it model now. The embedding code available for a video can be easily used for that. Click on any different video, it will remain on your page, won't go to youtube.
Reply


Similar JavaScript / Ajax / DHTML bytes