Recently I came across this problem to keep track of how much time elapsed for
YouTube video while working on one of our apps. The reason being, we were
looking for user engagement score and we wanted to analyze the time for which
user was engaged in watching YouTube video