Another simple modification to your PlayTube core would be setting the autoplay checkbox defaulted to checked. This way anyone that visits your website will automatically be shown the next recommended video. If they choose to opt out by unchecking the Autoplay box, then they will still get the cookie stored so autoplay is no longer enabled for that visitor. This works for both logged in and unregistered members.

Find in /sources/watch/content.php

Add this above the previous code

 

Have a request? Feel free to reach out to me.

You May Also Like

PlayTube Progressive Web Application

Leave a Reply

Your email address will not be published. Required fields are marked *