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.
- Install NewPipe (either from APK or from the Fossdroid app).
- Install VLC Android.
- Open NewPipe, and in Settings, make sure that Use External Player has a checkmark.
- Open VLC, and in Preferences, make sure that Play videos in background has a checkmark.
- Now, when you play a video in NewPipe, on the dialog that appears select VLC player. It will play in VLC and you can do other things while it plays.
- Download MX Player
- Play YouTube video using MX Player.
- Press Menu button (or the 3 dot icon), and then select Play
- Make sure "Background Play" is checked
- Now, you can press Home Button and listen in lock screen. There is also a shortcut for enabling Background Play, which is tapping and holding the Play button, instead of just tapping it to play a video
Update : Now MX player is not allowing to play youtube videos directly as mentioned by narayanan.
- You need to download UC browser .
- Now play the youtube video through UC browser
(The other browsers redirect to youtube app but it wont since it has its own built in player)
- Now you have to select option called Play With in top of video player and select MX player. Thats it.
Try YouTube Vanced
For non-rooted phone:
- Install the MicroG APK if you want to log in with your YouTube account.
- Find the YouTube Vanced APK that you want and download it.
- Install the APK like you normally would.
For rooted phone:
- Download the official installer found in downloads above
- Select a suitable apk for your device (check your architecture using an app such as CPU-Z) and the secondary theme you want to. (All apks include the white theme)
- Place the downloaded apk into /sdcard/Downloads or inside the installation zip
- Uninstall all YouTube updates and disable auto-update in the playstore (If you are able to completely uninstall the youtube app do so)
- Flash the installer in TWRP
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).
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.
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:
- Download xposed installer
- From that app install xposed framework
- Than in download section find youtube background playback module, activate it and than reboot. Enjoy!
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/
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!