updated the previous fix as it would brake the binding of the player's source to the media player (would not play new resource when source changed)