I was trying to get the current viewers watching the video over the duration of the video. I was hoping someone had a technique that I could use to accomplish this.
For example: Getting live viewers of video_id 242561765 at video_index 0:00:00, 0:00:10, and so on…
Actually it is possible to acquire this imformation on VODs but requires you to make your own browser extension. I prefer using “tampermonkey” which is a browser extension that allows users to write their own scripts with ease via javascript. This extension is available for most modern browsers.
If you have the extension running while the video & chat is being played back, then you can write a script using the browsers “mutation observer api” to watch for any changes made to the chat being played back and extract the username and message.
Correct, the method I have specified won’t obtain an accurate count of viewers if that was the intent. However, if the intent was to obtain the list of chatters and their messages on a VOD this would be the method to do so. The question was unclear if zimola wished to acquire the total views at any given point on the VOD or just the users and their messages. I went with the latter, hoping I answered the question accurately.