FaceHalt is a cydia tweak does is makes it so the video playback pauses when you aren't looking at your devices screen. This is very similar to the intelligent pausing feature of other smartphones like the Samsung Galaxy S4.

It costs 1.99 on BigBoss repo and free on pirate repos.

NB: It may not work on all video applications but it does work on Videos.app and Youtube.app.