• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I control the overall volume level of a project during playback?

New Here ,
Feb 26, 2018 Feb 26, 2018

Copy link to clipboard

Copied

I have successfully created  buttons to increase the volume level in my captivate project. Using advanced actions, I add or subtract 10 from the value of the system variable cpCmndVolume. However, I find that this only adjusts the audio assigned to the slide and not the audio track of a video embedded on the slide. I would have thought this variable controls all audio.

How can I control the overall volume level of a project during playback?

Views

639

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 26, 2018 Feb 26, 2018

Copy link to clipboard

Copied

I have successfully used the "Interactions > Learning Interactions > Volume Control" interaction to control both the slide and video audio. I show this to my clients and students when we do video training in Captivate.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 26, 2018 Feb 26, 2018

Copy link to clipboard

Copied

LATEST

A video element is separate from an audio element.

You can increase the volume of the video by executing this JavaScript in your Advanced Action you are using to increase volume.

var vids = document.getElementsByTagName("video");

if ( vids[0] ! == null && vids[0] !== undefined)

{

     vids[0].volume = 0.2;

}

if ( vids[1] ! == null && vids[1] !== undefined)

{

     vids[0].volume = 0.2;

}

Video volume max is 1.0, video silence is 0.

I've found that if you have multiple videos in the projects that there can actually be two video elements when you access them. The script above sets the volume for both depending on which is the video that I actually playing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources