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

153
Visualizações
how to prevent IDM (internet download manager) to download song, song link is given in anchor tag in HTML

I'm making audio player using wavesurfer.js. I have made an anchor tag and put the song link in anchor's href attribute like this.

<a href="songs/song5.mp3" class="btn songlink songBtn"><i class="fa fa-play fa-lg playbtn"></i></a>

Everything is working fine but if I install [IDM]. It starts downloading the song and songs doesn't play on the browser. So where should I put the song link in order to prevent the downloading.

here is my jQuery code and html code is as given above

$(".player-playlist .songlink").click(function(){
                songLink = $(this).attr('href');
                wavesurfer = WaveSurfer.create({
                    container: '#playing-wave',
                    waveColor: '#CCCCCC',
                    progressColor: '#E64C51',
                    barWidth:1,
                    height:40,
                    barGap:0,
                    backgroundColor: 'transparent',
                    cursorColor: 'transparent',
                    plugins: [
                        WaveSurfer.minimap.create({
                            container: '#wave-minimap',
                            waveColor: '#CCCCCC',
                            progressColor: '#E64C51',
                            barWidth:1,
                            height:30,
                            barGap:0,
                            backgroundColor: 'transparent',
                            cursorColor: 'transparent',
                        })
                    ]
                });

});
about 4 years ago · Juan Pablo Isaza
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