title: How to know that an HTML Audio/Video element has ended while looping
body: <p>I am trying to emit an event when a video has finished playing through one cycle while looping. </p>
  
  <p>when I do <code>this.nativeElement.addEventListener("ended", callsomething);</code> the ended call is not made unless the video is stopped which will not happen as it is looping by default. </p>
  
  <p>I attempted to use <code>this.nativeElement.addEventListener("timeupdate", callsomething);</code> where the "callsomething" function checked to see if it was at the end of the video but it never returned the exact end and so I ended up using it to check the beginning of the video since it always returned that. but then it turns out that when it is paused that will always be true...</p>
  
  <p>Any suggestion on how I can know that the video has fully looped once?</p>