

YouTube’s app is available for both Android and iPhone. YouTube Premium will cost you $12 a month or $23 a month for a family subscription for up to six members - but you can get a one-month free trial. What is the catch? As you might expect, it’s money.

YouTube Premium also comes with ad-free access to YouTube Music and it gives you the option to shut off the screen in that app, too. There are no steps to turning this on as it's on by default, so as long as you have YouTube Premium, it should work just fine. But crucially for our purposes, it also allows you to continue watching YouTube in the background after shutting off your phone’s screen or navigating to a different app. YouTube Premium is a subscription service that gets rid of ads on desktop and mobile, opens access to exclusive videos, and allows for the downloading of videos. How to play videos in the background with YouTube Premium Also, since the YouTube iframe API requires the HTML5 postMessage feature, browsers that do not support it (I'm looking at you, IE7) will not support tubular - tubular will return false before any changes are made to your CSS in IE7. Browsers that do not support fixed positioning will not support tubular. So it's assuming your wrapper can accept positioning without breaking your site.įinally, tubular injects the YouTube video you specified as an iframe using fixed position at z-index: 1. You can configure the z-index value in the options. It promotes that wrapper to z-index: 99 and position: relative. First, it assumes you have a single wrapper element under the body tag that envelops all of your website content. Tubular makes some assumptions on how your website works. It scales the video, offsets the video and provides some basic controls for the video. It takes a single video from YouTube at injects it as a full-screen background on a website.
