refactoring of YTPlayerService