YouTube app keeps pausing the video
I figured out what the problem is, it's because the phone thinks you keep plugging/unplugging the headphones. Try using another set of headphones and that should fix it.

I used the headphone that came with my PS4 and it caused the problem, it kept restarting but YouTube was still pausing until i changed the headphones then it went back to normal.

Hope that helps.