Home / Topic / Sync Audio and Text replacement not clearing trigger timers

Sync Audio and Text replacement not clearing trigger timers

Home Kwiksher Forums Kwik 2 Bugs Sync Audio and Text replacement not clearing trigger timers

Viewing 2 posts - 1 through 2 (of 2 total)
  • #10688

    Hi Alex/Kwik folks,I ran into a bug when using Sync Audio and Text replacement with triggered actions. Basically, the trigger timers weren't getting cancelled the way things normally do when added to Global timerStash. I found the problematic code at line 161 of syncSound library.Replacing line 161 with below code fixed the problem for me. I thought I'd share in case anyone else runs into this problem.

    Code:
    -- timerStash.a = timer.performWithDelay( line[i].start, text[i].trigger)-- replacing above line since sentence with multiple lines had timer references lost and weren't able to be canceled-- the timers were always added to timerStash.a instead of unique id-- this approach will enable cancelAllTimers to properly cancel the delayed triggers                                  timerStash['syncSoundTrigger'..i] = timer.performWithDelay( line[i].start, text[i].trigger)

    NOTE: this code works for me, it may need tweaking for you. But hopefully this will get you most of the way there.-jb               

    Anonymous
    #16647

    Thanks for sharing JB!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising