With the following encoding, only the audio part of the video is played, but the video itself is not shown:

mediaPlayer = new Windows.Media.Playback.MediaPlayer()
   AutoPlay = true,
   Source = Windows.Media.Core.MediaSource.CreateFromUri(new Uri(DialogFileName)),

Who knows advice? Thanks for that!

  • 2
    \$\begingroup\$ Windows Forms is not a common game development technology, so you may find better answers to this on StackOverflow. \$\endgroup\$
    – DMGregory
    Dec 17 '21 at 13:10
  • \$\begingroup\$ What type of file are you trying to play? Are you able to play the file manually? \$\endgroup\$
    – Pikalek
    Dec 17 '21 at 15:14

You must log in to answer this question.

Browse other questions tagged .