Add the condition to register media player