Plugin Directory

Changeset 2400839


Ignore:
Timestamp:
10/16/2020 11:11:13 AM (5 years ago)
Author:
team-ok
Message:

Added muted shortcode attribute

Location:
switch-video-quality
Files:
2 edited
9 copied

Legend:

Unmodified
Added
Removed
  • switch-video-quality/tags/1.5.6/readme.txt

    r2371264 r2400839  
    44Tags: change, choose, select, quality, resolution, self-hosted, video, stream, player, wordpress, media, library, playlist, responsive, embed, iframe, bitrate, HD, 4K, html5, mediaelement, mejs, svq
    55Requires at least: 3.6
    6 Tested up to: 5.5
    7 Stable tag: 1.5.5
     6Tested up to: 5.5.1
     7Stable tag: 1.5.6
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    195195= 1.5.5 =
    196196* Fixed a bug that stopped hd and 4k labels from showing up.
     197= 1.5.6 =
     198* Added the "muted" shortcode attribute. May be set to "true" or "yes" or anything truthy (not an empty string) to load the player initially muted.
  • switch-video-quality/tags/1.5.6/switch_video_quality.php

    r2304452 r2400839  
    33Plugin Name: Switch Video Quality
    44Description: Switch Video Quality adds quality switch functionality to the wordpress video player to let you choose between different resolutions of a (self-hosted) html5-compatible video.
    5 Version: 1.5.5
     5Version: 1.5.6
    66Author: Timo Klemm (team-ok)
    77Text Domain: switch-video-quality
     
    426426            'height'   => '',
    427427            'class'    => '',
     428            'muted'    => '',
    428429        );
    429430        $atts = shortcode_atts( $defaults_atts, $attr, 'video' );
     
    487488            'loop'     => wp_validate_boolean( $atts['loop'] ),
    488489            'autoplay' => wp_validate_boolean( $atts['autoplay'] ),
    489             'preload'  => $atts['preload']
     490            'preload'  => $atts['preload'],
     491            'muted'    => wp_validate_boolean( $atts['muted'] )
    490492        );
    491493
    492494        // These ones should just be omitted altogether if they are blank
    493         foreach ( array( 'poster', 'loop', 'autoplay') as $a ) {
     495        foreach ( array( 'poster', 'loop', 'autoplay', 'muted' ) as $a ) {
    494496            if ( empty( $html_atts[$a] ) ) {
    495497                unset( $html_atts[$a] );
  • switch-video-quality/trunk/readme.txt

    r2371264 r2400839  
    44Tags: change, choose, select, quality, resolution, self-hosted, video, stream, player, wordpress, media, library, playlist, responsive, embed, iframe, bitrate, HD, 4K, html5, mediaelement, mejs, svq
    55Requires at least: 3.6
    6 Tested up to: 5.5
    7 Stable tag: 1.5.5
     6Tested up to: 5.5.1
     7Stable tag: 1.5.6
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    195195= 1.5.5 =
    196196* Fixed a bug that stopped hd and 4k labels from showing up.
     197= 1.5.6 =
     198* Added the "muted" shortcode attribute. May be set to "true" or "yes" or anything truthy (not an empty string) to load the player initially muted.
  • switch-video-quality/trunk/switch_video_quality.php

    r2304452 r2400839  
    33Plugin Name: Switch Video Quality
    44Description: Switch Video Quality adds quality switch functionality to the wordpress video player to let you choose between different resolutions of a (self-hosted) html5-compatible video.
    5 Version: 1.5.5
     5Version: 1.5.6
    66Author: Timo Klemm (team-ok)
    77Text Domain: switch-video-quality
     
    426426            'height'   => '',
    427427            'class'    => '',
     428            'muted'    => '',
    428429        );
    429430        $atts = shortcode_atts( $defaults_atts, $attr, 'video' );
     
    487488            'loop'     => wp_validate_boolean( $atts['loop'] ),
    488489            'autoplay' => wp_validate_boolean( $atts['autoplay'] ),
    489             'preload'  => $atts['preload']
     490            'preload'  => $atts['preload'],
     491            'muted'    => wp_validate_boolean( $atts['muted'] )
    490492        );
    491493
    492494        // These ones should just be omitted altogether if they are blank
    493         foreach ( array( 'poster', 'loop', 'autoplay') as $a ) {
     495        foreach ( array( 'poster', 'loop', 'autoplay', 'muted' ) as $a ) {
    494496            if ( empty( $html_atts[$a] ) ) {
    495497                unset( $html_atts[$a] );
Note: See TracChangeset for help on using the changeset viewer.