fix the bug of media player while minimize app and resume it