Plugin Directory

Changeset 1890912


Ignore:
Timestamp:
06/11/2018 11:17:40 AM (8 years ago)
Author:
fluidplayer
Message:

Fixing simple shortcode bug, adding extra attributes

Location:
fluid-player/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fluid-player/trunk/FluidPlayerPlugin.php

    r1889562 r1890912  
    6464            static::VTT_FILE         => '',
    6565            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',
    6670            static::FP_VIDEO_SOURCES => static::prepareVideoSources([
    6771                [
     
    99103            static::FP_OPTIONS_AD_TEXT       => '',
    100104            static::FP_OPTIONS_AD_TEXT_CTA   => '',
    101             static::FP_OPTIONS_RESPONSIVE    => false,
     105            static::FP_OPTIONS_RESPONSIVE    => 'false',
    102106            static::FP_OPTIONS_HTML_ON_PAUSE_BLOCK_WIDTH    => 100,
    103107            static::FP_OPTIONS_HTML_ON_PAUSE_BLOCK_HEIGHT    => 100,
     
    136140
    137141        //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') {
    139143            $options[static::FP_OPTIONS_AUTOPLAY_JS] = true;
    140144        }
    141145
    142146        //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') {
    144148            $options[static::FP_OPTIONS_DOWNLOAD_JS] = true;
    145149        }
    146150
    147151        //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') {
    149153            $options[static::FP_OPTIONS_PLAYBACK_JS] = true;
    150154        }
     
    188192
    189193        //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') {
    191195            $options[static::FP_OPTIONS_RESPONSIVE_JS] = true;
    192196        }
  • fluid-player/trunk/fluid-player.php

    r1889562 r1890912  
    44Plugin URI: https://wordpress.org/support/plugin/fluid-player/
    55Description: Easily embed a Fluid Player instance on your website by using the fluid-player shortcode.
    6 Version: 2.3
     6Version: 2.3.0.1
    77Author: Florin Tudor
    88Author URI: https://www.fluidplayer.com
  • fluid-player/trunk/readme.txt

    r1889562 r1890912  
    66Donate link: http://example.com/
    77Tags: Fluid Player, html5 video player, VAST, thumbnails
    8 Version: 2.3
     8Version: 2.3.0.1
    99Requires at least: 4.6
    1010Tested up to: 4.9.4
     
    5555
    5656Simple 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]
    5870
    5971Extended shortcode example:
     
    6476    layout="default"
    6577
    66     auto-play="autoPlay"
     78    auto-play="true"
    6779    allow-download="true"
    6880    playback-speed-control="true"
Note: See TracChangeset for help on using the changeset viewer.