Submit Your Question Question. Rasmussen Email Address so we can send you a response! Who are you? I am part of the School of Receive an email confirmation of your submission. Leave this field blank. Submit Your Question. Powered by Springshare ; All rights reserved. The example at the end of the document has been updated to use the embedded AS3 player instead of the embedded AS2 player. The parameters used in the example have also been updated to only include parameters that the AS3 player supports.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4. For details, see the Google Developers Site Policies. Reference Samples Support. Overview This document explains how to embed a YouTube player in your application and also defines the parameters that are available in the YouTube embedded player. Embed a YouTube player You can use any of the following methods to embed a YouTube player in your application and specify player parameters.
Loading a playlist Set the listType player parameter to playlist. Parameters autoplay This parameter specifies whether the initial video will automatically start to play when the player loads. Supported values are 0 or 1. The default value is 0. If you enable Autoplay, playback will occur without any user interaction with the player; playback data collection and sharing will therefore occur upon page load.
Set the parameter's value to an ISO two-letter language code. The default behavior is based on user preference. Valid parameter values are red and white , and, by default, the player uses the color red in the video progress bar.
Note: Setting the color parameter to white will disable the modestbranding option. The default value is 0 , which means that keyboard controls are enabled. The default value is 0 , which means that the player cannot be controlled using that API. Note that the time is measured from the beginning of the video and not from either the value of the start player parameter or the startSeconds parameter, which is used in YouTube Player API functions for loading or queueing a video.
The default value is 1 , which causes the fullscreen button to display. The parameter value is an ISO two-letter language code or a fully specified locale. For example, fr and fr-ca are both valid values. Note that YouTube might select a different caption track language for a particular user based on the user's individual language preferences and the availability of caption tracks.
The default value is 1. October 15, The autoplay parameter definition has been updated to explain that if you enable Autoplay, playback will occur without any user interaction with the player; playback data collection and sharing will therefore occur upon page load. October 13, Note: This is a deprecation announcement for the embedded player functionality that lets you configure the player to load search results. The behavior for the rel parameter is changing on or after September 25, The effect of the change is that you will not be able to disable related videos.
However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played. To be more specific: Prior to the change, if the parameter's value is set to 0 , then the player does not show related videos. After the change, if the rel parameter is set to 0 , the player will show related videos that are from the same channel as the video that was just played.
The showinfo parameter, which indicates whether the player should display information like the video title and uploader before the video starts playing, is also being deprecated. Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends.
The avatar being displayed is new behavior that will be consistent across all embedded players. September 15, The controls parameter's definition has been updated to remove references to the deprecated Flash AS3 player. November 1, This document has been updated to remove references to the deprecated Flash AS3 player as well as to parameters only supported by that player. October 20, This update contains the following changes: The disablekb parameter definition has been corrected to note that the default value is 0 , which means that keyboard controls are enabled.
December 18, European Union EU laws require that certain disclosures must be given to and consents obtained from end users in the EU. July 18, The new hl parameter can be used to set the player's interface language. May 10, This update contains the following changes: YouTube no longer identifies experimental API features and services.
July 20, This update contains the following changes: The definition of the controls parameter has been updated to reflect support for a parameter value of 2 and to explain that, for AS3 players, the parameter value determines the time when the Flash player actually loads.
June 5, This update contains the following changes: The HTML5 player now supports the color , modestbranding , and rel parameters, and the definitions for these parameters have been updated accordingly. May 4, This update contains the following changes: The showinfo parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.
May 3, This update contains the following changes: The new end parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing a video. March 29, This update contains the following changes: The new Embedding a YouTube player section explains different ways to embed a YouTube player in your application.
Article Summary. You can get the embed code from a video on YouTube using any web browser. You don't have to be signed in to get the embed code, but you can sign in if you want. You can browse through recommendations or search for a specific video by typing in the search bar at the top of the page. It'll open in a more detailed view, where you can see comments, ratings, and recommended videos. If you want the embedded video to start playing at a specific time, click to check the box next to "Start at …" By clicking the time stamp, you can change the time listed.
There are other embed options that you can click to select including "Show player controls" and "Enable privacy-enhanced mode. Include your email address to get a message when this question is answered.
Related wikiHows How to. How to. About This Article. Written by:. Once we have found it we will then make it responsive for mobiles. Firstly find a YouTube video you want to embed. So in our screenshot below you can see I have found this video. Under the video click the share button — highlighted below. Now rather than share the YouTube video, you want to get the embed code. So click the embed button — highlighted below.
0コメント