I have a live stream video that I am watching with Adobe Flash Player.
I need to calculate how much data I use with this Flash Player.
Data could be in seconds or KB/MB. (I need to send this data to a database)
e.g.: I watched 5 minutes of live stream, so I need to get '300' seconds from somewhere so I could add them to database. I could also use the size (KB/MB) that I would roughly convert into seconds somehow...
Another approach could be by capturing exact time, when 'Play' and 'Stop' are used and calculate time difference between them. Is there a way to capture them?
(Also what could be done if video was Stopped by exiting browser or closing tab/window with Flash Player).