Lines:
1 to 100 of 184
<?php // (C) Copyright Bobbing Wide 2010-2017 /* The old way of embedding YouTube videos <object width="200" height="200"><param name="movie" value="http://www.youtube.com/v/prRUji1K4yg&hl=en&fs=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/prRUji1K4yg&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="200" height="200"> </embed> </object> The new way (2010!) uses iframe http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html Embedded player style guide http://support.google.com/youtube/bin/answer.py?hl=en&answer=178264 see also the oik-plugins page: @link http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-video-plugin/using-the-bw_video-shortcode/ Parameters that we should allow the user to define for HTML5 player are: https://developers.google.com/youtube/player_parameters autohide (supported players: AS3, AS2, HTML5) Values: 2 (default), 1, and 0. This parameter indicates whether the video controls will automatically hide after a video begins playing. The default behavior (autohide=2) is for the video progress bar to fade out while the player controls (play button, volume control, etc.) remain visible. If this parameter is set to 1, then the video progress bar and the player controls will slide out of view a couple of seconds after the video starts playing. They will only reappear if the user moves her mouse over the video player or presses a key on her keyboard. If this parameter is set to 0, the video progress bar and the video player controls will be visible throughout the video and in fullscreen. autoplay (supported players: AS3, AS2, HTML5) Values: 0 or 1. Default is 0. Sets whether or not the initial video will autoplay when the player loads. color (supported players: AS3, HTML5) This parameter specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. Valid parameter values are red and white, and, by default, the player will use the color red in the video progress bar. See the YouTube API blog for more information about color options. Note: Setting the color parameter to white will disable the modestbranding option. controls (supported players: AS3, HTML5) Values: 0, 1, or 2. Default is 1. This parameter indicates whether the video player controls will display. For AS3 players, it also defines when the Flash player will load: controls=0 - Player controls do not display in the player. For AS3 players, the Flash player loads immediately. controls=1 - Player controls display in the player. For AS3 players, the Flash player loads immediately. controls=2 - Player controls display in the player. For AS3 players, the Flash player loads afer the user initiates the video playback. Note: The parameter values 1 and 2 are intended to provide an identical user experience, but controls=2 provides a performance improvement over controls=1. Currently, the two values still produce some visual differences in the player, such as the video title's font size. However, when the difference between the two values becomes completely transparent to the user, the default parameter value may change from 1 to 2. enablejsapi (supported players: AS3, AS2, HTML5) Values: 0 or 1. Default is 0. Setting this to 1 will enable the Javascript API. For more information on the Javascript API and how to use it, see the JavaScript API documentation. https://developers.google.com/youtube/js_api_reference // , "enablejsapi" => bw_skv( iv_load_policy (supported players: AS3, AS2, HTML5) Values: 1 or 3. Default is 1. Setting to 1 will cause video annotations to be shown by default, whereas setting to 3 will cause video annotation to not be shown by default. loop (supported players: AS3, HTML5) Values: 0 or 1. Default is 0. In the case of a single video player, a setting of 1 will cause the player to play the initial video again and again. In the case of a playlist player (or custom player), the player will play the entire playlist and then start again at the first video. Note: This parameter has limited support in the AS3 player and in IFrame embeds, which could load either the AS3 or HTML5 player. Currently, the loop parameter only works in the AS3 player when used in conjunction with the playlist parameter. To loop a single video, set the loop parameter value to 1 and set the playlist parameter value to the same video ID already specified in the Player API URL: modestbranding (supported players: AS3, HTML5) This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user's mouse pointer hovers over the player. origin (supported players: AS3, HTML5) This parameter provides an extra security measure for the IFrame API and is only supported for IFrame embeds. If you are using the IFrame API, which means you are setting the enablejsapi parameter value to 1, you should always specify your domain as the origin parameter value. // , "origin" => bw_skv( "", "<i>domain URL</i>", "Origin for enablejsapi" ) playlist (supported players: AS3, HTML5) Value is a comma-separated list of video IDs to play.