Jump to content

Can you put a youtube link in script to display in a page


rdkd1970

Recommended Posts

This is my script I want to display but it does not show in the page just blank.

 

<td><object width="220" height="148"><param name="movie" value="http://www.youtube.com/user/THEWORLDOFTRAVEL#p/search/2/uX9nd3xM_MY=1&h1=enUS&color1=0x234900&color3=34900&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/user/THEWORLDOFTRAVEL#p/search/2/uX9nd3xM_MY=1&h1=enUS&color1=0x234900&color3=34900&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="220" height="148"></embed></object></td>

Link to comment
Share on other sites

when a video is uploaded to youtube, the uploader has an option to choose if he's going to allow other people to embed the movie or not (i.e. in other websites, like you're trying to do). If this is not set to 'Allow', you won't be able to show it. Although I'm quite sure you should see a blank area with something saying "embedding disabled for this video".

 

 

Link to comment
Share on other sites

Try this.

 

http://code.google.com/apis/youtube/youtube_player_demo.html

 

so need the video id

 

<object width="220" height="148"><param name="movie" value="http://www.youtube.com/v/LRAYG7XiFtk?version=3&feature=player_embedded"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/LRAYG7XiFtk?version=3&feature=player_embedded" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="220" height="148"></embed></object>

Link to comment
Share on other sites

When I put that URL into a web browser, I get an error message from YouTube: "Incorrect parameters, please try again."

 

When a video is displayed on YouTube there is a menu item you can click that will give you the code needed for embedding the video in your page. Use it. For example, I picked one video at random from that page and this is the code for sharing it:

<object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/VcRABREWPbE?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/VcRABREWPbE?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object>

 

Ken

Link to comment
Share on other sites

Actually, I just tried the link you have and it's incorrect. Where did you copy that from? videos that allow embedding will have the embedding code available for you. Don't just grab code from the browser url. you link gives out a warning saying: 'Incorrect parameters, please try again.'

 

Hope this helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.