Youtube and Vimeo shortcode for embed video


Youtube and Vimeo both services are very fine and provide iframe code so we can use them in our web site.

But sometimes we need different type of view. For example, if i want to display only video image, but don’t show title, image etc…..

Here I have find some code for youtube and vimeo

Youtube

Shortcode Name Value
autohide 0 for visible1 for hides everything

2 for hides the video progress bar

controls 0 to hide the controls
disablekb 1 for disable the keyboard controls
hd 1 to enable hd playback
fs 1 to enable fullscreen mode
rel 0 to disable the related videos when done playing
showinfo 0 to disable display information

Vimeo

Shortcode Name Value
title 0 to hide title
byline 0 for hide “from <uploaded_profile_name>” text
portrait 0 for hide uploaded user’s profile image
autoplay 1 to play video automatically

Above both code inserted into iframe’s src element.

For example,

http://player.vimeo.com/video/videoid?title=0&byline=1&title=0&portrait=1&autoplay=0

Advertisements
Posted in web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s