media player - Detect if audio is playing in browser Javascript -
is there global way detect when audio playing or starts playing in browser.
something along idea of if(window.mediaplaying()){...
without having code tied specific element?
i looking solution in google, didn't find yet. maybe check data has x value when audio playing. if have button start playing audio file, maybe can sure audio playing adding event listener on rep. button...
maybe adding event listener "audio" tag? if remember correctly, audio tag has "paused" attribute... , remember audio has "paused" attribute...
also, may want check topic html5 check if audio playing?
i jus find 5 seconds ago jaja
Comments
Post a Comment