Fade Out video player when removing it from the window

I am currently using this video player in my app. The video plays in full screen always, but when the user wants to close it, or the video ends, I'd like to apply a fade out effect from the player going back to the app. I haven't found a way to do this,
I'd need access to the MediaElement.Opacity I guess. Any suggestions?