59

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.

  • 1
    When you say "2.1" are you referring to the youtube app version or your Android version? I thought youtube was only at 2.0.26. – Matt Nov 23 '10 at 17:42
  • I mean the android version. sorry. how to check the youtube app version? – Louis Rhys Nov 23 '10 at 23:12
  • 1
    Settings > Application Manager > Applications > YouTube It will show you your current version. On the moto droid the most recent YouTube app allows playback with the screen off now but it still stops when you navigate to another app. – Matt Nov 23 '10 at 23:17
  • it says version 1520 – Louis Rhys Nov 24 '10 at 2:07
  • I don't think you can get the latest update without froyo. – Matt Nov 26 '10 at 9:38

15 Answers 15

6

This new app PVStar+ (Pro Version) is amazing. It allows you to play videos in the background (even if your device screen is off). Another feature which i love is video cache. Saves data when you have to play some clips again and again.

You can read more about it here: http://www.wowtechy.com/playlists-continuous-repeat-background-cache-youtube-playback-android/

  • 3
    Just wanted to chime in: it seems Google killed the PVSTAR apps (something about ToS). – Rodrigo Hahn Apr 16 '15 at 17:40
  • 1
    PVStar+ seems to be dead. I can't find it in Google Store. – styrofoam fly Jul 24 '17 at 17:35
6

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.

  1. Install NewPipe (either from APK or from the Fossdroid app).
  2. Install VLC Android.
  3. Open NewPipe, and in Settings, make sure that Use External Player has a checkmark.
  4. Open VLC, and in Preferences, make sure that Play videos in background has a checkmark.
  5. 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.
  • +1 for the new pipe! It is a shame that Android version of vlc player does not open the media from the network stream like it's desktop counterpart does. – Narayanan Sep 26 '15 at 5:48
  • Recent NewPipe versions don't require external player for background playback. – janot Dec 20 '18 at 14:24
5
  • 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.

Solution :

  • 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.

Update #2:

Only For Rooted: You can install Xposed Modules Installer and use Repository called Youtube Background Play

Update #3:
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
  • Seems to be a very good idea and +1 from me to make me discover mx players okay from network stream feature. Unfortunately, when tried few video [URLs ](youtu.be/m3KdpzL3Hkk) all I get is an error can't play this link . Does it work for YouTube and if so I have a doubt that it will violate YouTube's terms and conditions. – Narayanan Sep 26 '15 at 5:58
  • Thanks for bringing issue to attention..I have just updated answer now it shoud work.. – Ash-Ishh.. Sep 26 '15 at 16:11
3

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.

2

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 :/

2

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).

2

You can do it in an easy way (without hack).

  1. Download a floating browser app like this one: Floating Browser, open the URL (http://YouTube.com/tv) in the popup browser.

  2. Use large swipes movement to open the side panel and navigate to the parameters at the bottom. Go to "pair devices" option, keep the code that appear onscreen in the popup browser.

  3. Go to your YouTube app, and in the parameters, go to connected devices and enter your code.

  4. You will now have a popup browser in which a YouTube player reads the video opened from your YouTube app. You can now reduce the popup to the notification bar, and maybe even hide the notification (it may be hard to get the popup back if you do so. Go to floating browser app info setting page, then force quit and enable notification to revert it).

The video will keep playing if you switch app and even if your screen is off. You can even pair remote devices (a tablet, a computer, a laptop... All of them at the same time). This will allow you to remotely control your music from every YouTube-enabled device.

I'm here for troubleshooting!

2

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.

2

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)

IMG:

2

It is possible with xposed framework, and module youtube background playback:

  1. Download xposed installer
  2. From that app install xposed framework
  3. 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..

1

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/

1

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.

0

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:

https://m.apkpure.com/non-stop-yt/com.non_stopyt

Also I for got to mention, you can sign in and view your feed / and subscription feed and every thing.

  • 2
    Your affiliation with the app? – Aaron Gillion Mar 22 '16 at 18:06
0

Simplest way to play YouTube video or playlist in background:

  1. Play a YouTube video in Google Chrome.

  2. Switch to Desktop Mode (Options ~> Request Desktop Site).

  3. Hit the Home button to push Google Chrome into background.

  4. 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!

0

I'll share 3 methods to play youtube in background and with the screen lock.

protected by Community Jan 24 '18 at 17:41

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.