The stock YouTube app (here on 2.1-eclair, but applies to all android versions) stops playing when I minimised, switched to another application or even when I lock the phone. And when I resume it restart downloading the clip from the beginning. Is there any way that I can play YouTube clips in the background? Note, I only the audio to continue playing.
Here's a solution using entirely free and open source software. The basic idea is that although YouTube can't play clips in the background, VLC for Android can play clips in the background, so all we need to do is pipe the clip to VLC where we can listen to it minimised.
That sounds complicated, but luckily there is software that does it for us.
Update : Now MX player is not allowing to play youtube videos directly as mentioned by narayanan.
(The other browsers redirect to youtube app but it wont since it has its own built in player)
Only For Rooted: You can install Xposed Modules Installer and use Repository called Youtube Background Play
Try YouTube Vanced
For non-rooted phone:
For rooted phone:
TubeMate YouTube Downloader is a great app that will let you download either the audio or the video from a YouTube file and save it to your device. When it is on your device, you are then able to use a media player (such as DoubleTwist) to play either in the background. But as for straight background music from YouTube, that's a no-go :/
It's not currently possible but it should be soon. According to AndroidPolice background audio is coming in a future release of the YouTube app.
You can use firefox and request the desktop site. You can change tabs, open other apps, or turn off the screen. However the desktop site layout is not optimal for mobile firefox. This does not work in chrome or the default ("Standard") browser and it will not play videos that require flash (vevo).
Instead of the YouTube app, open YouTube in your standard browser. Then, the video won't pause or stop when you turn your screen off. It will still pause when you go home or minimize, though.
You could also use YouTube Vanced. YouTube Vanced is a modded version of YouTube. It is a feature enhanced version of the official YouTube app, most importantly brings the feature for background playback (as well as other equally useful features including built-in adblocking, black/dark themes, etc).
It officially supports minimum (API 17) version 4.2 jellybean and works on both rooted and non-rooted devices.
This page has installation instructions and download links for non-rooted and rooted devices.
Additionally you need to install the install MicroG package (found in the download links) in order to be able to log into google account (not necessary if you don't want to log in)
(Click image to enlarge)
It is possible with xposed framework, and module youtube background playback:
But beware if your device runs stock rom there is big chance to get bootlop after installing xposed framework.
EDIT: ooh, sorry I didn's see that your device is running 2.1 android, and for using xposed framework 4.0+ android is required..
Firefox for Android had that feature. YouTube blocked it so now you need an extension for that. https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/
Select a video and start playing. Press home button (ofcourse youtube app will close/minimize). With headphones plugged, stay in the home screen, press play/pause button on the headphone itself. Works for me everytime, but only for playing from browser not from YouTube app.
I'll share 4 methods to play youtube in background and with the screen lock.
Install Brave browser, enable media play background option in site settings, and visit https://m.youtube.com
use Youtube vanced app https://youtubevanced.com/
use YMusic app
use NewPipe app
Non-Stop YT app does this. It looks and works just like the normal youtube app. Except you can open up other apps, turn off your screen and every thing. You can find it for download here:
Also I for got to mention, you can sign in and view your feed / and subscription feed and every thing.
Simplest way to play YouTube video or playlist in background:
Play a YouTube video in Google Chrome.
Switch to Desktop Mode (
Request Desktop Site).
Hit the Home button to push Google Chrome into background.
Pull down notification to find Google Chrome media control. Play the video from here.
There's no thumbs down of it as you can still open new tabs in Google Chrome to do another thing.
Enjoy listening YouTube podcasts and song playlists while doing other things in smartphone or real world!