Well, I'm not 100% sure, but I don't think jQuery extends / analyzes these functions and attributes ( .paused , .pause() , .play() ).
try accessing the elements above the DOM element, for example:
$('.player_audio').click(function() { if (this.paused == false) { this.pause(); alert('music paused'); } else { this.play(); alert('music playing'); } });
jAndy Jun 07 2018-10-06T00: 00Z
source share