Changeset 1890912
- Timestamp:
- 06/11/2018 11:17:40 AM (8 years ago)
- Location:
- fluid-player/trunk
- Files:
-
- 3 edited
-
FluidPlayerPlugin.php (modified) (4 diffs)
-
fluid-player.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluid-player/trunk/FluidPlayerPlugin.php
r1889562 r1890912 64 64 static::VTT_FILE => '', 65 65 static::VTT_SPRITE => '', 66 static::FP_OPTIONS_AUTOPLAY => 'false', 67 static::FP_OPTIONS_DOWNLOAD => 'false', 68 static::FP_OPTIONS_PLAYBACK => 'false', 69 static::FP_OPTIONS_RESPONSIVE => 'false', 66 70 static::FP_VIDEO_SOURCES => static::prepareVideoSources([ 67 71 [ … … 99 103 static::FP_OPTIONS_AD_TEXT => '', 100 104 static::FP_OPTIONS_AD_TEXT_CTA => '', 101 static::FP_OPTIONS_RESPONSIVE => false,105 static::FP_OPTIONS_RESPONSIVE => 'false', 102 106 static::FP_OPTIONS_HTML_ON_PAUSE_BLOCK_WIDTH => 100, 103 107 static::FP_OPTIONS_HTML_ON_PAUSE_BLOCK_HEIGHT => 100, … … 136 140 137 141 //Autoplay 138 if ( $params[static::FP_OPTIONS_AUTOPLAY_JS] !== 'false') {142 if (isset($params[static::FP_OPTIONS_AUTOPLAY_JS]) && $params[static::FP_OPTIONS_AUTOPLAY_JS] !== 'false') { 139 143 $options[static::FP_OPTIONS_AUTOPLAY_JS] = true; 140 144 } 141 145 142 146 //allowDownload 143 if ( $params[static::FP_OPTIONS_DOWNLOAD_JS] !== 'false') {147 if (isset($params[static::FP_OPTIONS_DOWNLOAD_JS]) && $params[static::FP_OPTIONS_DOWNLOAD_JS] !== 'false') { 144 148 $options[static::FP_OPTIONS_DOWNLOAD_JS] = true; 145 149 } 146 150 147 151 //playbackRateEnabled 148 if ( $params[static::FP_OPTIONS_PLAYBACK_JS] !== 'false') {152 if (isset($params[static::FP_OPTIONS_PLAYBACK_JS]) && $params[static::FP_OPTIONS_PLAYBACK_JS] !== 'false') { 149 153 $options[static::FP_OPTIONS_PLAYBACK_JS] = true; 150 154 } … … 188 192 189 193 //responsive 190 if ( $params[static::FP_OPTIONS_RESPONSIVE_JS] !== 'false') {194 if (isset($params[static::FP_OPTIONS_RESPONSIVE_JS]) && $params[static::FP_OPTIONS_RESPONSIVE_JS] !== 'false') { 191 195 $options[static::FP_OPTIONS_RESPONSIVE_JS] = true; 192 196 } -
fluid-player/trunk/fluid-player.php
r1889562 r1890912 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.3 6 Version: 2.3.0.1 7 7 Author: Florin Tudor 8 8 Author URI: https://www.fluidplayer.com -
fluid-player/trunk/readme.txt
r1889562 r1890912 6 6 Donate link: http://example.com/ 7 7 Tags: Fluid Player, html5 video player, VAST, thumbnails 8 Version: 2.3 8 Version: 2.3.0.1 9 9 Requires at least: 4.6 10 10 Tested up to: 4.9.4 … … 55 55 56 56 Simple shortcode example: 57 [fluid-player video="foo.mp4" vast_file="vast.xml" vtt_file="thumbs.vtt" vtt_sprite="thumbs.jpg" layout="default"] 57 [fluid-player 58 video="foo.mp4" 59 vast_file="vast.xml" 60 vtt_file="thumbs.vtt" 61 vtt_sprite="thumbs.jpg" 62 layout="default" 63 64 auto-play="true" 65 allow-download="true" 66 playback-speed-control="true" 67 68 responsive="true" 69 ] 58 70 59 71 Extended shortcode example: … … 64 76 layout="default" 65 77 66 auto-play=" autoPlay"78 auto-play="true" 67 79 allow-download="true" 68 80 playback-speed-control="true"
Note: See TracChangeset
for help on using the changeset viewer.