Skip to main content
Participant
August 18, 2021
Question

PleaseHelp - How to make music play in the background and still i am able to make clickable button ?

  • August 18, 2021
  • 1 reply
  • 94 views

I have query.

I am using HTML Canvas Animate for e-learning slides preparation.

 

I want to add background voiceover and give a clickable options or 'click to read script' button during the voiceover.

 

But when i click on the 'Click to Read Script' button the voice over stops as i have give command to move from this frame to this frame.

there is no mouseover option available when pointer goes over the button and scripts pops ups.

 

i need help that how can we make a slide where voice over or music is playing in the background and still i am able to make clickable buttons during the voice over and it does not stops. 

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    August 18, 2021

    Hi.

     

    There's an HTML5 Canvas presentation template in this link that has background music and voices playing simultaneously.

    https://github.com/joao-cesar/adobe/tree/master/animate%20cc/html5_canvas/narrated_story

     

    Maybe it will help you to get started.

     

    Please let us know.

     

    Regards,

    JC

    Participant
    August 25, 2021

    Thank you for reply. But the issue is When i click any button during voice over or music, it shall not stop. it should played in back.

    JoãoCésar17023019
    Community Expert
    Community Expert
    August 25, 2021

    Hi.

     

    The method provided in the template does just that. For example, if you write:

    this.playSound("Track0", "voice");
    this.playSound("Voice0", "voice");

     

    The second call will override the previous sound of the first call. But if you pass a different "sound channel" name, like this:

    this.playSound("Track0", "bgm");
    this.playSound("Voice0", "voice");

     

    The voice sound will be played but the background music will still continue playing.

     

    So just provide different names for the second argument and you should get sounds playing simultaneously.

     

    Regards,

    JC