fixed the scope of mplayer websocket