If you just want to analyze it you can send it as events to Google Analytics with the percentage of video watched.
If you want to add it to your DB, make an api call to your server when the video has started playing. The api call will have an object with video id, user id, etc. You can also send another event when user has completed viewing the video