Moved CustomMediaPlayer to its own class