Forum Discussion
anithaduraisamy
9 years agoCommunity Member
Mute audio using javascript
Hi guys,
i want to create my own mute/unmute audio button using articulate.i done this but i have a small problem.
problem:
i have three to four audio within a single slide.
when i click mute button from beginning of the timeline and when my timeline reach audio 2 it get automatically play but my button is mute stage(selected).
17 Replies
Hello Anitha - I cannot assist with your JavaScript coding, but hopefully someone in the community will be able to chime in and assist you here.
- anithaduraisamyCommunity Member
my javascript coding is,
var a = document.getElementsByTagName('audio');
for(var i=0; i < a.length; i++)
{
if (a[i].volume>0)
{
a[i].volume=0;
}
else
{
a[i].volume=1;
}
}can you pls see this video....
if you know the answer help me........
thanks
Anitha
Related Content
- 12 months ago
- 3 months ago