1
Good afternoon, you guys!
I’m having a problem that I can’t see a solution on Google or with the tests I do. I have a site where there are some audio tags, they work normally in browsers like Mozilla, but in Chrome it appears disabled, I have tested the same clean code on a test page and it worked, but in this application it does not run.
Code below:
$(".ouvir").click(function() {
var arq = $(this).parent().find('a.ouvir_oculto').attr('href');
console.log('Here -> ' + arq);
//$(this).parent().html('<audio controls type="audio/mpeg" src="'+arq+'" controlsList="nodownload" autoplay style="width:200px"></audio>');
$(this).parent().html('<audio src="' + arq + '" controls="controls"></audio>');
return false;
});
$('.meu_player').bind('contextmenu', function() {
return false;
});
<div style="clear:both; float:left; width: 470px">
<div id="MediaPlayerOverview_<?= $contador; ?>" class="meu_player">
<a href="<?php print get_sub_field('end_arquivo'); ?>" class="ouvir_oculto"></a>
<a href="play" class="ouvir"><img src="<?php print bloginfo('template_url'); ?>/imagens/player.png" width="36" height="30"></a>
</div>
</div>
Is an application Wordpress, where it searches the registered audio and implements in the tag audio dynamically. At first it does the process right, but cannot execute
Link: https://www.radioriodejaneiro.am.br/programa/ouvindo-voce/#recordings
It’s working for me, what’s your version of Chrome?
– Denis Rudnei de Souza
Maybe this can help you.
– Sam
Thank you first of all for your help. The version of my Chrome @Denisrudneidesouza is Version 80.0.3987.122. I had seen some forums talking that could be outdated browser, but this is not my case, I believe, since it informs that is the latest version.
– Moises Fausto
@Sam Until it makes sense this link you sent, because the audio link is not certified, maybe it is some incompatibility. As the player link is third party, you think I should inform them about this error or update the certificate of my site?
– Moises Fausto