Create script to autoplay embeds (YouTube, SoundCloud, Vimeo, etc.)
$10-30 CAD
Cancelled
Posted over 10 years ago
$10-30 CAD
Paid on delivery
Hey there,
So basically we have a wordpress blog, posts on the category pages have small embeds and we have an infinite scroll plugin ([login to view URL]).
What we would like to achieve is that if the user clicks play on one of the embed and it reaches the end, the next playable content would start automatically. If the script reach the end of the page and infinite scroll has not yet finish to pull content (not reached the end of the category), the script would trigger the infinite scroll to look for the next available content. Since there is a small loading time, this sequence should fire approximately 15 seconds before the end of the video/song.
There is probably some good chunks of code that you can take from here : [login to view URL]
Looking for a small, lightweight script that only loads when necessary, we already have a lot of scripts and we don't want the page speed to be impacted.
Good luck!