Jelly-Party / jelly-party-extension

Chrome extension to synchronize video sessions
https://www.jelly-party.com/
GNU General Public License v3.0
33 stars 7 forks source link

Reattach event listeners to new video #1

Closed seandlg closed 4 years ago

seandlg commented 4 years ago

findVideoInterval is currently used to attach to a video. This relies on setInterval. What other mechanism could be used to attach to a video, that works on reactive Websites? When should look for a new video? Is there some generic event we can listen for, that will tell us when our current video gets unusable (in which case we scan for a new video)?

seandlg commented 4 years ago

It turns out that emptied is the correct event to listen to on the HTML5 video. A fix has already been applied.