[youtube https://www.youtube.com/watch?v=2i65b5oFstI?rel=0&modestbranding=1&w=580&h=385]

https://www.youtube.com/watch?v=duNWxpbAvPQ
Hi, we have a fix for Firefox not playing YouTube video in the background. Enjoy!

http://receivetipstricks.com/play-youtube-videos-in-background-android/
Here is a simple way to play YouTube videos in the background. And this works for iOS and Android.

What options to you have?

YouuTube Red — but this requires a $10/month subscription and apparently, it’s only available in the US.

Firetube, Audio pocket, Pop video player — they don’t work very well.

OG YouTUbe, Xposed module — this requires root and signing in with your YouTube credentials in a third-party is quite risky.

So what is the better option?

For Android (2:15)

Simply copy the URL of the video and paste it in the Firefox browser. And turn on desktop mode and play the video. Now, even if you minimize the browser or turn OFF your screen, the audio will still play in the background.

For iOS (3:30)

Copy the URL of the video and paste it on Safari web browser. Now play the video and minimize the app. This will stop the audio. but don’t worry. Swipe up from the bottom of the screen, bring the control center and tap the play button. That’s it.

I use Audio from YouTube audio library.

Cold Funk – Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/…)
Source: http://incompetech.com/music/royalty-
Artist: http://incompetech.com/

You can reach me here

Website – http://techwiser.com/
YouTube – https://www.youtube.com/techwiser
Facebook –https://www.facebook.com/techwiser
Twitter – https://twitter.com/TechWiser
Instagram – https://www.instagram.com/techwiser

source