Adding global variables into media player class