I am playing a html5 video in my angular js application. I would like the video to be able to pause and play when the video screen is clicked. I have been able to use a function to either pause or play it and I want to be able to do both depending on whether the video is paused or is playing. I have tried the pausePlay() function but it's not working. My code is shown below:I am playing a html5 video in my angular js app