add method to create media player