Image of Playtube Youtube Player

I’ve had a couple of people ask how I have the Youtube player instead of the Playtube Player on Vigeos. Deen from PlayTube actually saved me a lot of time with research and implementation and had a quick solution for me, so I figured I would share it with y’all in case you wanted to do the same. Keep in mind my solution for Mobile Autoplay is for Mediaelementjs that PlayTube Script uses, so by you converting to the YouTube video player, my autoplay solution will no longer work.

Find in /themes/default/layout/watch/content.phtml

Below Add

 

You also need to make the changes in /themes/default/layout/watch/playlist.phtml

Below Add

This can also be applied to the other import services, just change the embed code to whichever you wanted to use along with changing the conditional statement to be that of the import service.

You May Also Like

PlayTube Progressive Web Application

4 comments

  1. I have the Youtube player instead of the Playtube Player on my website,
    I have solved this problem without having to do as you do, not affected by Auto play in Mediaelementjs.

    1. Oh so autoplay still works for you? That’s good. I think the latest Chrome update will autoplay videos you frequent automatically, so that makes sense.

  2. Hi Disquy,
    Youtube player show check here https://prnt.sc/lengc1 but don’t show advertisement please make a solution for that if import videos from youtube. that will show ads this may help to keep adsense live on a website.
    Thanks.

    1. Sorry, PlayTube staff disabled this for legal reasons. For the same reason, I am unable to share how to show ads on YouTube videos.

Leave a Reply

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