Heh.. that's a fun one. I would recommend looking into intersection observer. Honestly I don't think you need a library to do this sort of thing.
Please note: there is no sound on these videos.. and that is a GOOD thing. My accessibility self wonders if there is a problem with them NOT having a way to manually pause the video however.