Changeset 1889562
- Timestamp:
- 06/08/2018 10:40:37 AM (8 years ago)
- Location:
- fluid-player/trunk
- Files:
-
- 3 edited
-
FluidPlayerPlugin.php (modified) (8 diffs)
-
fluid-player.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluid-player/trunk/FluidPlayerPlugin.php
r1848568 r1889562 76 76 } 77 77 78 79 78 /** 80 79 * @param array $attrs … … 91 90 static::VTT_SPRITE => '', 92 91 static::FP_LAYOUT => static::FP_LAYOUT_DEFAULT_VALUE, 93 94 92 static::FP_OPTIONS_AUTOPLAY => 'false', 93 static::FP_OPTIONS_DOWNLOAD => 'false', 94 static::FP_OPTIONS_PLAYBACK => 'false', 95 95 static::FP_OPTIONS_LOGO => plugin_dir_url(__FILE__) . 'web/images/yourlogo.png', 96 96 static::FP_OPTIONS_LOGO_POSITION => 'top left', 97 97 static::FP_OPTIONS_LOGO_OPACITY => '1', 98 static::FP_OPTIONS_LOGO_HYPER => null, 98 99 static::FP_OPTIONS_AD_TEXT => '', 99 100 static::FP_OPTIONS_AD_TEXT_CTA => '', … … 139 140 } 140 141 142 //allowDownload 143 if ($params[static::FP_OPTIONS_DOWNLOAD_JS] !== 'false') { 144 $options[static::FP_OPTIONS_DOWNLOAD_JS] = true; 145 } 146 147 //playbackRateEnabled 148 if ($params[static::FP_OPTIONS_PLAYBACK_JS] !== 'false') { 149 $options[static::FP_OPTIONS_PLAYBACK_JS] = true; 150 } 151 141 152 //Logo 142 153 if (isset($params[static::FP_OPTIONS_LOGO_JS])) { … … 152 163 if (isset($params[static::FP_OPTIONS_LOGO_OPACITY_JS])) { 153 164 $options[static::FP_OPTIONS_LOGO_JS]['opacity'] = $params[static::FP_OPTIONS_LOGO_OPACITY_JS]; 165 } 166 167 if (isset($params[static::FP_OPTIONS_LOGO_HYPER_JS])) { 168 $options[static::FP_OPTIONS_LOGO_JS]['clickUrl'] = $params[static::FP_OPTIONS_LOGO_HYPER_JS]; 169 } else { 170 $options[static::FP_OPTIONS_LOGO_JS]['clickUrl'] = null; 154 171 } 155 172 } … … 313 330 static::FP_LAYOUT => static::FP_LAYOUT, 314 331 static::FP_OPTIONS_AUTOPLAY => static::FP_OPTIONS_AUTOPLAY_JS, 332 static::FP_OPTIONS_DOWNLOAD => static::FP_OPTIONS_DOWNLOAD_JS, 333 static::FP_OPTIONS_PLAYBACK => static::FP_OPTIONS_PLAYBACK_JS, 315 334 static::FP_OPTIONS_LOGO => static::FP_OPTIONS_LOGO_JS, 316 335 static::FP_OPTIONS_LOGO_POSITION => static::FP_OPTIONS_LOGO_POSITION_JS, 317 336 static::FP_OPTIONS_LOGO_OPACITY => static::FP_OPTIONS_LOGO_OPACITY_JS, 337 static::FP_OPTIONS_LOGO_HYPER => static::FP_OPTIONS_LOGO_HYPER_JS, 318 338 static::FP_OPTIONS_AD_TEXT => static::FP_OPTIONS_AD_TEXT_JS, 319 339 static::FP_OPTIONS_AD_TEXT_CTA => static::FP_OPTIONS_AD_TEXT_CTA_JS, … … 353 373 354 374 const FP_OPTIONS_AUTOPLAY = 'auto-play'; 375 const FP_OPTIONS_DOWNLOAD = 'allow-download'; 376 const FP_OPTIONS_PLAYBACK = 'playback-speed-control'; 355 377 const FP_OPTIONS_LOGO = 'logo'; 356 378 const FP_OPTIONS_LOGO_POSITION = 'logo-position'; 379 const FP_OPTIONS_LOGO_HYPER = 'logo-hyperlink'; 357 380 const FP_OPTIONS_LOGO_OPACITY = 'logo-opacity'; 358 381 const FP_OPTIONS_AD_TEXT = 'ad-text'; … … 365 388 366 389 const FP_OPTIONS_AUTOPLAY_JS = 'autoPlay'; 390 const FP_OPTIONS_DOWNLOAD_JS = 'allowDownload'; 391 const FP_OPTIONS_PLAYBACK_JS = 'playbackRateEnabled'; 367 392 const FP_OPTIONS_LOGO_JS = 'logo'; //TODO: update this 368 393 const FP_OPTIONS_LOGO_POSITION_JS = 'logoPosition';//TODO: update this 369 394 const FP_OPTIONS_LOGO_OPACITY_JS = 'logoOpacity';//TODO: update this 395 const FP_OPTIONS_LOGO_HYPER_JS = 'clickUrl';//TODO: update this 370 396 const FP_OPTIONS_AD_TEXT_JS = 'adText';//TODO: Move to Vast 371 397 const FP_OPTIONS_AD_TEXT_CTA_JS = 'adCTAText';//TODO: Move to Vast … … 404 430 } 405 431 ); 406 }; 432 }; 407 433 408 434 (function defer() { -
fluid-player/trunk/fluid-player.php
r1848592 r1889562 4 4 Plugin URI: https://wordpress.org/support/plugin/fluid-player/ 5 5 Description: Easily embed a Fluid Player instance on your website by using the fluid-player shortcode. 6 Version: 2. 06 Version: 2.3 7 7 Author: Florin Tudor 8 8 Author URI: https://www.fluidplayer.com -
fluid-player/trunk/readme.txt
r1848584 r1889562 6 6 Donate link: http://example.com/ 7 7 Tags: Fluid Player, html5 video player, VAST, thumbnails 8 Version: 2. 08 Version: 2.3 9 9 Requires at least: 4.6 10 10 Tested up to: 4.9.4 … … 37 37 * vtt_sprite : path to VTT sprites file (optional) 38 38 * layout : the following skins are provided with the player: default/browser, if no value is passed it will fall back to 'default' 39 * responsive : toggle responsive behavior, defaults to false 39 40 * auto-play : toggle video autoplay, defaults to false 41 * playback-speed-control : Toggle playback speed widget on the control bar, defaults to false 42 * allow-download : Toggle Download button on the control bar, defaults to false 43 40 44 * logo : Logo url 41 45 * logo-position: logo positioning, default value "top right" 42 46 * logo-opacity : logo opacity, default value 1 47 * logo-hyperlink: URL which will open in an new tab when the logo is clicked 48 43 49 * ad-text : Ad text visible in the top right corner of the video 44 50 * ad-cta-text : CTA hyperlink visible in the bottom left corner of the video 51 45 52 * html-on-pause-block-width : html banner width, default null 46 53 * html-on-pause-block-height : html banner height, default null 47 * responsive : toggle responsive behavior, defaults to false 54 48 55 49 56 Simple shortcode example: … … 56 63 vast_file="vast.xml" 57 64 layout="default" 65 58 66 auto-play="autoPlay" 67 allow-download="true" 68 playback-speed-control="true" 69 59 70 logo="https://www.fluidplayer.com/images/yourlogo.png" 60 71 logo-position="top right" 61 72 logo-opacity=".8" 73 logo-hyperlink="https://www.fluidplayer.com/" 74 62 75 ad-text="adText" 63 76 ad-cta-text="adCTAText" 77 64 78 html-on-pause-block-width="100" 65 79 html-on-pause-block-height="100" 80 66 81 responsive="true"] 67 82
Note: See TracChangeset
for help on using the changeset viewer.