method to set output window of media player added