Embed videos & playlists - YouTube Help - Google Support
文章推薦指數: 80 %
You can add a YouTube video or playlist to a website or blog by embedding it.
SkiptomaincontentEmbedvideos&playlistsYoucanaddaYouTubevideoorplaylisttoawebsiteorblogbyembeddingit.
TheYouTubeAPITermsofServiceandDeveloperPoliciesapplytoallaccessanduseoftheYouTubeembeddedplayer.
Embedavideoorplaylist
Onacomputer,gototheYouTubevideoorplaylistyouwanttoembed.
ClickSHARE.
FromthelistofShareoptions,clickEmbed.
Fromtheboxthatappears,copytheHTMLcode.
PastethecodeintoyourwebsiteHTML.
Fornetworkadministrators:Youwillneedtoaddyoutube.comtothefirewallallowlist.
Important:IfyourwebsiteorappischilddirectedandyouembedYouTubecontent,youmustselfdesignateyoursiteorappusingthesetools.ThisselfdesignationwillensureGoogledoesnotservepersonalizedadsonthesesitesorappsandsomefeatureswillbedisabledintheembeddedplayer.
Note: Age-restrictedvideoscan’tbewatchedonmost3rdpartywebsites.ThesevideoswillredirectviewersbacktoYouTubewhenplayed.
Managevideoembeddingoptions
Turnonprivacy-enhancedmode
ThePrivacyEnhancedModeoftheYouTubeembeddedplayerpreventstheuseofviewsofembeddedYouTubecontentfrominfluencingtheviewer’sbrowsingexperienceonYouTube.ThismeansthattheviewofavideoshowninthePrivacyEnhancedModeoftheembeddedplayerwillnotbeusedtopersonalizetheYouTubebrowsingexperience,eitherwithinyourPrivacyEnhancedModeembeddedplayerorintheviewer’ssubsequentYouTubeviewingexperience.
IfadsareservedonavideoshowninthePrivacyEnhancedModeoftheembeddedplayer,thoseadswilllikewisebenon-personalized.Inaddition,theviewofavideoshowninthePrivacyEnhancedModeoftheembeddedplayerwillnotbeusedtopersonalizeadvertisingshowntothevieweroutsideofyoursiteorapp.
Asareminder,theYouTubeAPITermsofServiceandDeveloperPoliciesapplytotheaccessanduseoftheYouTubeembeddedplayer.
TousePrivacyEnhancedMode:
ChangethedomainfortheembedURLinyourHTMLfromhttps://www.youtube.comtohttps://www.youtube-nocookie.com.
Fornetworkadministrators:Youwillneedtoaddyoutube-nocookie.comtothefirewallallowlist.
Foruseinapplications,useaWebViewinstanceoftheembeddedplayer.PrivacyEnhancedModeisavailableonlyforembeddedplayersonwebsites.
Important:Ifyourwebsiteorappischilddirected,youmustselfdesignateyoursiteorappusingthesetools,asrequiredbytheYouTubeAPITermsofServiceandDeveloperPolicies,evenifyouembedYouTubevideoswiththePrivacyEnhancedModeplayer.
Example:
Before
延伸文章資訊
- 1Embed videos & playlists - YouTube Help - Google Support
You can add a YouTube video or playlist to a website or blog by embedding it.
- 2YouTube
Enjoy the videos and music you love, upload original content, and share it all with friends, fami...
- 3Video upload tips - Android - YouTube Help
Try uploading a test video to get comfortable with the steps. Use YouTube's video privacy setting...
- 4Insert a video from YouTube or another site - Microsoft Support
In PowerPoint for Microsoft 365 or PowerPoint 2019, you can insert an online video from YouTube o...
- 5YouTube - Apps on Google Play
Get the official YouTube app on Android phones and tablets. See what the world is watching -- fro...