gallery aplayer refactoring and vlcControl