Embed videos & playlists - YouTube Help - Google Support

文章推薦指數: 80 %
投票人數:10人

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 After   Note: Iftheviewerclicksortapsoutoftheembedandisredirectedtoanotherwebsiteorapp,thatwebsiteorappmaytracktheviewer’sbehaviorasperthatwebsite’sorapp’spoliciesandterms. Makeanembeddedvideoplayautomatically Tomakeanembeddedvideoautoplay,add"&autoplay=1"tothevideo’sembedcoderightafterthevideoID(theseriesoflettersthatfollows"embed/"). Embeddedvideosthatareautoplayeddon'tincrementvideoviews. Example: Startanembeddedvideoatacertaintime Tohaveavideostartplayingfromaspecificpoint,add “?start=”toavideo’sembedcode,followedbythetimeinsecondsatwhichyou’dlikethevideotobeginplaying. Forexample,ifyouwantavideotostartat1minuteand30secondsintothevideo,yourembedcodewouldlooksomethinglikethis: Addcaptionstoanembeddedvideo Makecaptionsautomaticallyappearforanembeddedvideobyadding"&cc_load_policy=1"tothevideo'sembedcode. Youcanalsochooseacaptionlanguagefortheembeddedvideo.Tospecifythecaptionlanguageforthevideothatyou'dliketoembed,justadd"&cc_lang_pref=fr&cc_load_policy=1"tothevideo'sembedcode. "cc_lang_pref"setsthelanguageforthecaptionsshowninthevideo. "cc_load_policy=1"turnscaptionsonbydefault. "fr"representsthelanguagecodeforFrench.Youcanlookup2-letterlanguagecodesintheISO639-1standard. Turnoffembeddingforyourvideos Ifyou'veuploadedavideoanddon'twanttoallowotherstoembedyourvideoonexternalsites,followthesesteps: SignintoYouTubeStudio. Fromtheleftmenu,selectContent. Nexttothevideoyou’dliketomanage,selectDetails. Fromthebottom,selectSHOWMORE. Unchecktheboxnextto“Allowembedding”andSAVE. Wasthishelpful?Howcanweimproveit?YesNoSubmittrueSaveorsharevideos&playlistsSharevideosandchannelsEmbedvideos&playlistsShareclipsSearchClearsearchClosesearchGoogleappsMainmenuSearchHelpCentertrue59falsefalse



請為這篇文章評分?