I'm not sure this is the right place for this.

First of all, it doesn't make sense (I think) to call pause() after hiding the player. I suspect that hidePlayer() already does everything that pause() does, but I'm not sure about that.

Second, the releaseVideo() and restoreVideo() functions called below are things that I just added for bug 837236. Because we didn't leave fullscreen mode when switching apps via the task switcher, those were there to handle the case where the video remains visible. 

I think that it would be better if we didn't not go back to the video list screen when the user goes home and comes back. So I'd suggest that you do not call hidePlayer() here, but just make sure that releaseVideo() and restoreVideo() are doing the right thing.