Skip to main content
Participating Frequently
August 28, 2020
Question

Advanced Action not toggling Closed Captions

  • August 28, 2020
  • 2 replies
  • 881 views

I've run into a problem trying to use Advanced Actions to turn on/off closed captions for a custom button I created. I'm using Advanced Actions because I am changing the state of the button (to a custom state).  I did exactly the same thing with a "mute/sound on" button and it works perfectly. 

 

Here's the script to be executed when someone clicks on the button:

 

If

cpCmndCC is equal to 0

 

Actions

Assign cpCmndCC equal to 1

Change state of ClosedCaption to CC_ON

 

Else

Assign cpCmndCC equal to 0

Change state of ClosedCaption to Normal

 

Half of the script works fine. The button starts in "Normal" state and when you click it, it changes to the "CC_ON" state and the captions are turned on.

 

But the other part doesn't work.  Once the captions are on and the button is the "CC_ON" state, you can't turn them off, etc.  So apparently the action isn't resetting the cpCmndCC value to 0.

Like I said, I did this exact same thing with mute/unmute, and it works perfectly.  I can't figure out why it's not working unless there's a bug.

 

    This topic has been closed for replies.

    2 replies

    SharleneO
    Participating Frequently
    June 23, 2021

    Hi David, I know this was posted ages ago, but hoping to get an answer.

    I am having exactly the same problem with a custom button with an advanced action, the same as the mute button, doesnt matter if i toggle or assign, when going into the second slide, the CC button does not show the correct state, although the captions do show as set in the previous.

    Did you manage to work it out? If so how? 

    Participating Frequently
    June 23, 2021
    Unfortunately I did not find a solution. The captions themselves toggle
    correctly, but the button state does not. It makes no sense at all because
    the button for audio (on/off) toggles just fine.
    Lilybiri
    Legend
    June 23, 2021

    Did you ever try the action which I proposed? It works perfectly for me, but it is a shared action.

    Lilybiri
    Legend
    August 28, 2020

    I use the same shared action for all toggle buttons. Do not use Assign, but the Toggle command in both parts of the conditional action. Here is the post about that shared action:

    http://blog.lilybiri.com/1-action-equals-5-toggle-buttons

    Sorry, example movie is still SWF.  

    Just tested the action in 11.5.499, works perfectly.

    Participating Frequently
    August 28, 2020

    I just tried that with captions and it's not working.  I went back and did it with Mute/Sound On, and for sure, Toggle is working there, just as Assign did.

     

    It's looking to me like there could be a bug with turning captions back off.

    Lilybiri
    Legend
    August 28, 2020

    Which version are you using?  Do you not believe me when I told that I hve tried it just now for HTML5 output, in the most recent version which is 11.5.499.