matthewbub / video-player-manipulation

Interactive comments tied to html5 video API
https://video-player-92373.web.app/
3 stars 0 forks source link

tie comments to specific times in the video and display them in sync with video playback #15

Closed matthewbub closed 3 years ago

matthewbub commented 3 years ago
matthewbub commented 3 years ago

I am thinking I can tie User Comments to specific times in the video using the currentTime from the Video API. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#attr-currentTime

matthewbub commented 3 years ago

Let's start by getting a watch event on this video e.g video.currentTime

matthewbub commented 3 years ago

Next let's get the total length of the video as soon as the video loads. ☝️ https://github.com/hi-matbub/video-player-manipulation/commit/22a0ed3a861512514d06a65f66876bc3898aa144

matthewbub commented 3 years ago
matthewbub commented 3 years ago

Comments are un styled but are appending accordingly.

matthewbub commented 3 years ago

Resolved issues with scrubbing by wiping the DOM each time 55dfe444e72868eba9c05cfd67057756ca80f3dc

matthewbub commented 3 years ago

The closing of #22 also closes this Pull Request 👍