refactoring : print only if debug is set to True ; separated class MediaPlayerControl