I think you have to use the native API to convert the handle to the id of the window that is to be passed to mplayer.