Youtube Videos Won't Play While iPhone Screen Is Locked?

I have an iPhone 5, and on occasion, I like to listen to videos from Youtube on it while the screen is off. But recently, I've found a problem- sometimes, the ability for my iPhone to play Youtube videos when the screen is off… Breaks, for lack of a better word. When this happens and I turn the screen off and on again while a video is playing, the icons to play and skip forward or backward appear on screen like usual. They all work, and the tracking bar and timers at the top of the screen both count down as if the video were playing, but no sound comes out of the phone, either through headphones or through the speaker. And when I unlock the phone, the video is usually always at the same spot where it was when I locked it. Also, if I unplug my headphones from the jack, the video continues to "play," whereas the phone would immediately pause anywhere else.
Occasionally, this problem happens at random, but it usually happens whenever a Youtube video fails to load properly (i.e., when the tracking bar is replaced by "Loading…" and whatever was on the screen is replaced by the Quicktime logo), and is always preceded by a long fadeout of the sound (usually lasting around one second), where the sound would normally abruptly cut off when I lock the screen. And when it happens, the only way to fix it is to turn the phone off and on again- reloading the Youtube page doesn't work, and neither does closing and reopening it.
So my question is, is there a way to fix this problem without having to turn my iPhone all the way off and on again.

Added (1). Also, to clarify, I don't use the Youtube app. I use youtube through Safari. And like I said, it usually works. I just want to know if there's a fix for my particular issue. Well, an easier fix.

Youtube app for iphone isn't made by apple, and so it doesn't fully intergrete with the device, if you close the app, or lock your phone it will stop. End of. If you take out your headphones it won't know that and will continue playing through speakers. End of. There's nothing you can do but leave the screen on when listening. Simples

  • Youtube won't play any videos on my iPhone? It might be because of ios8 but with standard youtube app, I used to be able to watch youtube videos. One day, it simply didn't work. It loads for a long time, then an error message that reads "Can't play video, please try again later" can anyone help?
  • YouTube videos won't play on iPhone? YouTube videos won't play. It just keeps loading. And also my safari and mail won't work as well. Whenever I go into safari it just flashes out. And when I go to mail it's just frozen and it flashes out after a while. If anyone knows how to fix this please tell me how? That would be a great help.
  • Why won't YouTube won't play videos on my iPhone? My phone randomly stopped playing YouTube videos. It just shows that it is loading and never play. I have great Wi-Fi connection. Every other app including Netflix runs smoothly. It doesn't work on the app or browser. I cleared the cache on my browser. I reset my phone. My phone and the app are updated completely. I have no idea what to do.
  • Why can't i play youtube videos in background/lock screen on my iphone anymore? I always used to be able to do this, is there any way to still do it? Or is there any way to get an older version of the app that will alow me to do it? And does anyone know why they stopped this function? Very frustrating!