I’m hesitant to try the first solution you posted because as shown in your video, it seems to suffer the same lag as the first one I posted.
As for the second one, it functioned much like the second one I posted. Not sure if I did something wrong, or if it just doesn’t work anymore.