To allow the user to open a video file to be played in the MediaPlayerElement control, add the following namespaces to your project. The simplest way to cast media from a Universal Windows app is to use the built-in casting capability of the MediaPlayerElement control. Built-in media casting with MediaPlayerElement This article shows you how to cast media to remote devices from a Universal Windows app.