I want to save my YouTube watching time on db in my website. In the first ajax, the duration is stored in db, and the second ajax is not working at all.
currentTime t