I\'ve looked through a couple of questions to find out if an HTML5 element is playing, but can\'t find the answer. I\'ve looked at the W3 documentation and it has an event n
My requirement was to click on the video and pause if it was playing or play if it was paused. This worked for me.
inside app.component.ts
playIfPaused(file){ file.paused ? file.play(): file.pause(); }