Plugin Directory

Changeset 1845513


Ignore:
Timestamp:
03/23/2018 09:12:39 AM (8 years ago)
Author:
wpslidesync
Message:

Updated js files for uploading YouTube

Location:
wp-slide-sync-lite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-slide-sync-lite/trunk/assets/admin.js

    r1843385 r1845513  
    339339    function addKeyframe(xcoord) {
    340340
    341         if( keyframes.length >= 5 ) {
    342             alert('The Lite version of WP Slide Sync only supports marking up to 5 keyframes. Upgrade to the Pro version to set unlimited keyframes.');
     341        if( keyframes.length >= 8 ) {
     342            alert('The Lite version of WP Slide Sync only supports marking up to 8 keyframes. Upgrade to the Pro version to set unlimited keyframes.');
    343343            return false;
    344344        }
     
    631631                if( video.provider == 'youtube' ) {
    632632
    633                     window.onYouTubeIframeAPIReady = function() {
    634 
    635                         loadPlayer(container, video.id);
    636 
    637                     }
     633                    loadPlayer(container, video.id);
    638634
    639635                } else if( video.provider == 'vimeo' ) {
     
    667663        if( vtype == 'youtube' ) {
    668664
    669             window.onYouTubeIframeAPIReady = function() {
    670 
     665            if (typeof(YT) == 'undefined' || typeof(YT.Player) == 'undefined') {
     666
     667                window.onYouTubeIframeAPIReady = function() {
     668                    loadPlayer(container, vid);
     669                };
     670
     671            } else {
    671672                loadPlayer(container, vid);
    672 
    673673            }
    674674
  • wp-slide-sync-lite/trunk/assets/main.js

    r1843608 r1845513  
    4646    }
    4747
    48     if(typeof(YT) == 'undefined' || typeof(YT.Player) == 'undefined'){
    49         window.onYouTubeIframeAPIReady = function() {
    50             loadPlayer();
    51         };     
    52     } else {
     48    window.onYouTubeIframeAPIReady = function() {
     49
    5350        loadPlayer();
    54     }
     51
     52    };
    5553
    5654    // Set player timecode
  • wp-slide-sync-lite/trunk/readme.txt

    r1843411 r1845513  
    11=== WP Slide Sync ===
    2 Contributors: Reattendance Ltd
     2Contributors: WP Slide Sync
    33Donate link: https://www.slidesync.com
    44License: GPLv3
  • wp-slide-sync-lite/trunk/wp-slide-sync-lite.php

    r1843393 r1845513  
    44Plugin Name: WP Slide Sync Lite
    55Description: Plugin for creating and displaying dynamic presentations by syncing a slideshow to video playback
    6 Plugin URI: Author URI: http://www.wpslidesync.com/
    7 Version: 1.0
    8 Author: Reattendance
    9 Author URI: http://www.wpslidesync.com/
    10 Text Domain: wp-slide-sync
     6Plugin URI: https://www.wpslidesync.com
     7Version: 1.1
     8Author: WP Slide Sync
     9Author URI: http://www.wpslidesync.com
     10Text Domain: http://www.wpslidesync.com
     11
    1112*/
    1213
    1314/**
    14  * @copyright Copyright (c) 2018. All rights reserved.
     15 * @copyright Copyright (c) 2016. All rights reserved.
    1516 *
    1617 * @license   Released under the GPL license http://www.opensource.org/licenses/gpl-license.php
     
    3031 */
    3132
    32 define( 'WP_SLIDE_SYNC_VERSION', '1.0' );
     33define( 'WP_SLIDE_SYNC_VERSION', '1.1' );
    3334
    3435// deny direct access
Note: See TracChangeset for help on using the changeset viewer.