Forum Discussion

CarolaThurfjell's avatar
CarolaThurfjell
Community Member
11 years ago

Muted audio for revisited slides

Hi, I have a slide with an audio that I want to work as follow: The first time the user enters the slide the audio will be played. But the next time the user enters the slide I would like the audio to mute so that the audio dosn't repeat every time I visit the slide. Any suggestions on how to solve the problem? Should I have a trigger or something else?

6 Replies

  • BlakeGriffin's avatar
    BlakeGriffin
    Community Member

    I would use variables and triggers.  First I would set a True/False variable for the slide to be false as the default.  Then when the slide's timeline ends, have the variable change to true using a trigger.  Then, have a trigger to stop the media from playing if the variable is set to true when the timeline starts.  That way, when they go back to the slide, it has been viewed and the variable is set to true and the media will not play.

    I have attached an example for you.

  • Hi Blake, Thank's for your prompt reply and for the attached example! This will solve my problem.

    Regards,

    Carola

  • LeoRosswill's avatar
    LeoRosswill
    Community Member

    I love this forum... a 7 year old reply solves my problem today in 2 minutes.  Thank you!

  • Hi, Leo. 

    We're always happy to hear this, so thank you for taking the time to share how this discussion helped you!

  • 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?

    • Nedim's avatar
      Nedim
      Community Member

      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.