MediaPlayer improvements

Details are available in commits descriptions.