Forum Discussion
Muted audio for revisited slides
Hi there! I am linking to this old thread to ask if there is a variable that depends on the volume bar in the player instead.
I have a screen with voiceovers reading the content aloud. The text read is highlighted by an outline while the voice reads. What I would like to achieve is to make the outline hidden if the learner has set the volume bar in the player to zero. Do you think this can be done?
You would need JavaScript to check the current volume (0-10 range). If the value is 0, you could then hide an outline. The implementation depends on your project setup, including how you target the outline element to ensure both way communication.
JavaScript snippet:
var currentVolume = DS.appState.currentVolume();
console.log(currentVolume);
I recommend creating a new topic for this discussion, as your question doesn't align with the original thread's subject. This will help ensure your inquiry receives the proper attention and relevant responses.
Related Content
- 9 months ago
- 11 months ago