[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oik-video.inc


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. 
[1] [2] Next »

Called by

    Invoked by

      Calls

      Call hooks

      File name: oik-video.inc
      Plugin ref: oik video – bw_video shortcode
      Version: 1.2.2
      Deprecated?: No
      API Letters: I,O,V

      Published: March 31, 2017 | Last updated: March 31, 2017

      Information

      File name: oik-video.inc
      Plugin ref: oik video – bw_video shortcode
      Version: 1.2.2
      Deprecated?: No
      API Letters: I,O,V

      Recent plugin updates

      oik v4.7.2 oik v4.7.2 includes a fix to the logic to render blocks for Content and Excerpts in the bw_pages shortcode. ...
      oik v4.7.1 Upgrade to oik v4.7.1 for bw_pages rendering blocks for Content and Excerpts, and support for post_name attribute for shortcode which query posts ...
      oik-shortcodes v1.41.1 Upgrade to oik-shortcodes v1.41.1 for a couple of minor changes. ...
      oik-bob-bing-wide v2.2.2 Upgrade to oik-bob-bing-wide v2.2.2 for improvements to bw_dash examples and fixes to some SVG icon's visibility. ...
      oik-bwtrace v3.3.1 Upgrade to oik-bwtrace v3.3.1 to measure plugin load times and ad hoc action timing points. ...

      Plugins

      • All Plugins
      • oik base plugin
      • FREE oik plugins
      • WordPress plugins
      • Premium oik plugins

      Themes

      • FREE themes
      • Bespoke themes
      • Premium themes

      Blocks

      • All Blocks
      • Block examples
      • About Blocks

      Shortcodes

      • All Shortcodes
      • Shortcode examples
      • About Shortcodes

      Reference

      • About APIs
      • All APIs
      • All Classes
      • All Files
      • All Hooks

      Support

      • Contact
      • Cookies policy
      • Get API key
      • Privacy
      • Request support
      • Sitemap
      • Stay informed
      • Terms and Conditions
      oik-plugins
      Email: [email protected]

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

      Site:  www.oik-plugins.com
      © Copyright oik-plugins 2011-2022. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins
      WordPress 6.0.1. PHP: 7.4.30. Memory limit: 768M