How To Embed A Youtube Video In Dreamweaver
Embed videos & playlists
You can add a YouTube video or playlist to a website or web log by embedding it.
Embed a video or playlist
- On a computer, become to the YouTube video or playlist y'all want to embed.
- Click SHARE
.
- From the list of Share options, click Embed.
- From the box that appears, copy the HTML lawmaking.
- Paste the code into your website HTML.
- For network administrators: You volition need to add youtube.com to the firewall allowlist.
- Important: If your website or app is kid directed and you embed YouTube content, y'all must self designate your site or app using these tools. This self designation will ensure Google does not serve personalized ads on these sites or apps and some features will be disabled in the embedded player.
Note:Age-restricted videos can't be watched on nigh third party websites. These videos will redirect viewers back to YouTube when played.
Manage video embedding options
Plow on privacy-enhanced mode
The Privacy Enhanced Mode of the YouTube embedded player prevents the utilise of views of embedded YouTube content from influencing the viewer'south browsing experience on YouTube. This means that the view of a video shown in the Privacy Enhanced Mode of the embedded actor will not be used to personalize the YouTube browsing experience, either within your Privacy Enhanced Style embedded role player or in the viewer'due south subsequent YouTube viewing experience.
If ads are served on a video shown in the Privacy Enhanced Mode of the embedded player, those ads will also exist not-personalized. In addition, the view of a video shown in the Privacy Enhanced Mode of the embedded player will not be used to personalize advertising shown to the viewer outside of your site or app.
Every bit a reminder, the YouTube API Terms of Service and Developer Policies apply to the admission and utilise of the YouTube embedded player.
To utilise Privacy Enhanced Style:
- Change the domain for the embed URL in your HTML from https://www.youtube.com to https://www.youtube-nocookie.com.
- For network administrators: You will demand to add youtube-nocookie.com to the firewall allowlist.
- For utilise in applications, utilise a WebView instance of the embedded player. Privacy Enhanced Way is bachelor only for embedded players on websites.
- Important: If your website or app is child directed, you must self designate your site or app using these tools, as required by the YouTube API Terms of Service and Developer Policies, even if you embed YouTube videos with the Privacy Enhanced Mode player.
Example:
Before
<iframe width="1440" height="762"
src="https://www.youtube.com/embed/7cjVj1ZyzyE"
frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
After
<iframe width="1440" tiptop="762" src="https://www.youtube-nocookie.com/embed/7cjVj1ZyzyE"
frameborder="0" let="autoplay; encrypted-media" allowfullscreen></iframe>
Note: If the viewer clicks or taps out of the embed and is redirected to some other website or app, that website or app may rails the viewer's behavior every bit per that website's or app's policies and terms.
Make an embedded video play automatically
To make an embedded video autoplay, add "&autoplay=i" to the video'southward embed code right afterwards the video ID (the serial of letters that follows "embed/").
Embedded videos that are autoplayed don't increment video views.
Example:
<iframe width="560" superlative="315" src="https://world wide web.youtube.com/embed/D6Ac5JpCHmI?&autoplay=ane"frameborder="0" allowfullscreen></iframe>
Start an embedded video at a certain time
To have a video starting time playing from a specific indicate, add "?start=" to a video'due south embed code, followed past the time in seconds at which y'all'd like the video to begin playing.
For case, if you want a video to commencement at 1 minute and 30 seconds into the video, your embed code would await something like this:
<iframe allowfullscreen="" frameborder="0" tiptop="315" src="http://www.youtube.com/embed/UkWd0azv3fQ?star t=xc " width="420"></iframe>
Add captions to an embedded video
Make captions automatically appear for an embedded video past adding "&cc_load_policy=1" to the video'south embed code.
You can also choose a caption linguistic communication for the embedded video. To specify the caption language for the video that you'd similar to embed, just add together "&cc_lang_pref=fr&cc_load_policy=ane" to the video's embed lawmaking.
- "cc_lang_pref" sets the language for the captions shown in the video.
- "cc_load_policy=i" turns captions on by default.
- "fr" represents the language lawmaking for French. Yous tin look up 2-letter linguistic communication codes in the ISO 639-1 standard.
Plough off embedding for your videos
If you've uploaded a video and don't want to permit others to embed your video on external sites, follow these steps:
- Sign in to YouTube Studio.
- From the left menu, select Content.
- Next to the video you'd like to manage, select Details
.
- From the top, select SHOW More.
- Uncheck the box side by side to "Allow embedding" and SAVE.
Was this helpful?
How can we meliorate it?
Source: https://support.google.com/youtube/answer/171780?hl=en
Posted by: conwaypubjer.blogspot.com
0 Response to "How To Embed A Youtube Video In Dreamweaver"
Post a Comment