Add function of media player