Slider revolution Audio

1 reply · opened Sep 19, 2020

Ooskar321Sep 19, 2020

Hi,
is there any way to make a audio file playing continuously while slides are changing?
For example: I've two slides and in first slide I added via slide editor a audio file. it starts automatically but it stops when 2nd slide comes. and it starts from beginning when 1st slide starts again.
Is there any way to have background music out of the box?
Thanks and regards :)
Oskar

SSemicolon WebSTAFFSep 21, 2020

Hello,

Unfortunately, this is currently not supported out of the Box for the Revolution Slider. If you would like to add an Audio to be played in the Background, we would suggest you to use a Standalone Audio Player and then use JS to play it on Window Load or Slider Ready. Example:

<audio id="audio-player" controls>
  <source src="audio.ogg" type="audio/ogg">
  <source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

And then use JS to play the Audio Player: #audio-player

<script>
var x = document.getElementById("audio-player"); 

function playAudio() { 
  x.play(); 
} 

function pauseAudio() { 
  x.pause(); 
} 
</script>

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard