[MediaPlayer] change the error code following the API's change (#1102)