Bug Report 2: Audio Plays in Review Mode Despite Being Hidden via On Load Action with apReviewMode Condition

Hello ActivePresenter Team,

Description:
When adding an audio file to a slide and moving it along the timeline to start at a specific second, ActivePresenter automatically adds an animation to the audio object. This causes an On Load action to fail in Review Mode.

To work around this, I tried disabling the audio in Review Mode by adding an On Load action with Hide Object for the audio, and setting the condition:

IF apReviewMode is equal to True

However, even with this condition, the audio still plays in the background in Review Mode, despite being hidden.

If the animation is removed from the audio object, the start time resets to 0 in the timeline, which is also undesirable.

Steps to Reproduce:

  1. Add an audio file to a slide.
  2. In the timeline, drag the audio to start at a desired second (not at 0).
  3. Observe that an animation is automatically added to the audio.
  4. Add an On Load action: Hide Object (target: audio object).
  5. Set the condition: IF apReviewMode is equal to True.
  6. Preview the slide in Review Mode.

Expected Result:

  • Audio should not automatically receive an animation when moved in the timeline.
  • On Load actions should work normally in Review Mode.
  • When Hide Object with the apReviewMode condition is used, audio should stop playing in Review Mode.

Actual Result:

  • Audio automatically gets an animation when moved.
  • On Load actions fail in Review Mode when audio has animation.
  • Even when hidden via Hide Object with the apReviewMode condition, audio still plays in Review Mode.

Additional Information:

  • macOS: 15.3.2 (24D81)
  • ActivePresenter Pro Edition
  • Version 9.3.0 - 64-bit build (Released: 2025.04.08)

Hi,

This happens when running slides in Review Mode: the slide’s On Load event is executed immediately, which also means the audio is hidden. However, when the main timeline continues running, the audio will play.
If you want to prevent the audio from playing in Review Mode, you can try the following method:

  1. Uncheck the AutoPlay option
  2. Add JavaScript to the slide’s On Load event with the condition that apReviewMode is not equal to True.
setTimeout(function() {
    prez.object('audio_name').animate(AP.EffectType.MEDIA_PLAY);
}, 5000); // delay 5000 ms

Note that 5000 ms is the delay time before the audio starts playing.

Hope this helps!

1 Like

Hi Hang,
Thank you very much for your help.

Best Regards,