Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

270
Visualizações
Autoplay audio on page load in browser

I have to play audio on page load i have checked these links also :

How to make audio autoplay on chrome

<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
  <audio id="audio1" style="display:none;">
    <source src="https://ia800206.us.archive.org/16/items/SilentRingtone/silence_64kb.mp3" type="audio/mpeg">
    <embed height="50" width="100" src="https://ia800206.us.archive.org/16/items/SilentRingtone/silence_64kb.mp3">
  </audio>

  <iframe src="https://ia800206.us.archive.org/16/items/SilentRingtone/silence_64kb.mp3" allow="autoplay" style="display:none" id="iframeAudio">
  </iframe> 
</body>

I have tried with script also

<script type="text/javascript">
function play()            {
    var audio=document.getElementById('audio1');
    audio.play();
    }
    $(function() {
    play();
   }, 2300);
  </script> 

But browser is restricting it, i want to play audio with progress bar, volume button and speed is there any way i can execute this in browser without user interaction i have checked other site audio plays on there site in chrome also, Is there any third party plugin i can use to resolve this issue.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Chromium browsers do not allow autoplay in most cases.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda