diff --git a/src/ableplayer.php b/src/ableplayer.php index a9afa37..1714386 100644 --- a/src/ableplayer.php +++ b/src/ableplayer.php @@ -16,14 +16,14 @@ * License: MIT * License URI: https://github.com/ableplayer/ableplayer-wordpress/blob/master/LICENSE * Domain Path: lang - * Version: 1.2.0 + * Version: 1.3.0-beta1 */ // Configure debugging mode. define( 'ABLEPLAYER_DEBUG', false ); // Get current version number. -define( 'ABLEPLAYER_VERSION', '1.2.0' ); +define( 'ABLEPLAYER_VERSION', '1.3.0-beta1' ); register_activation_hook( __FILE__, 'ableplayer_activation' ); /** @@ -278,6 +278,10 @@ function able_player_parameters() { 'description' => __( 'Set the default volume from 0 to 10; default is 7 to avoid overpowering screen reader audio)', 'ableplayer' ), 'options' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ), ), + 'sign-src' => array( + 'default' => '', + 'description' => __( 'Path to a local ASL video, synchronized with the main video.', 'ableplayer' ), + ), 'youtube-id' => array( 'default' => '', 'description' => __( '11-character YouTube ID or a URL to a YouTube video page.', 'ableplayer' ), @@ -345,6 +349,7 @@ function ableplayer_shortcode( $atts, $content = null ) { 'seekinterval' => '', 'nowplaying' => 'false', 'skin' => '2020', + 'sign-src' => '', ), $atts, 'ableplayer' @@ -422,6 +427,9 @@ function ableplayer_shortcode( $atts, $content = null ) { if ( ! empty( $all_atts['vimeo-desc-id'] ) ) { $o .= ' data-vimeo-desc-id="' . $all_atts['vimeo-desc-id'] . '"'; } + if ( ! empty( $all_atts['sign-src'] ) ) { + $o .= ' data-sign-src="' . esc_url( $all_atts['sign-src'] ) . '"'; + } $o .= '>'; // enclosing tags. diff --git a/src/build/ableplayer.4.4.1.js b/src/build/ableplayer.4.4.1.js index 43c2df6..7075793 100644 --- a/src/build/ableplayer.4.4.1.js +++ b/src/build/ableplayer.4.4.1.js @@ -5813,11 +5813,14 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith(', add a to the sign