Page 224 - SKU-000506274_TEXT.indd
P. 224
C h a p t e r 1 8 Incorporating YouTube Videos on Your Own Website 203
• Show border. By default, YouTube creates a borderless player. If you
want a border around the embedded player on your page, check this
option.
• Enable privacy-enhanced mode. By default, YouTube creates and
stores a cookie on that user’s computer when someone watches a video.
If you’d rather not infringe quite so much on your visitors’ privacy,
check this option to instruct YouTube not to store personally-identifi-
able information.
Note
Enabling privacy-enhanced mode doesn’t mean YouTube won’t store any
cookies for viewers of that video. YouTube might still set cookies for that
video, but not store information that identifies the video’s viewer.
• Play in HD—If you’re embedding a high definition video, checking this
option creates a larger video player and initiates playback in HD mode.
Note, however, that this will be a very large playback window, and
might not fit on all web pages.
• Use iframe embed code—This generates a different, more versatile
embed code. The iframe code can play back in either Flash or HTML5,
depending on the viewing environment, which will make some embed-
ded videos viewable on mobile devices. (At present, this feature was still
in the testing phase.)
• Color scheme—By default, the embedded viewer uses the standard
grayish color scheme. If you want a more colorful player window,
choose a different color scheme.
• Size—You can choose the size of video player you want embedded on
your page. Select the size that fits best.
For example, Figure 18.3 shows a video player embedded with the standard options
(gray color scheme, small size, no border, and so on). Figure 18.4 shows the same
player embedded at a larger size with a red color scheme and colored border.
You’ll need to copy this entire code (it’s longer than the embed box itself) and then
paste it into the HTML code on your website. Just insert the embed code into your
web page’s HTML where you want the video player window to display. What you
get is a special click-to-play YouTube video player window in line on your web page
or blog. The video itself remains stored on and served from YouTube’s servers; only
the code resides on your website. When a site visitor clicks the video, YouTube’s
servers deliver it to your viewer’s web browser, just as if your own server sent it.