0
\$\begingroup\$

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!

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

0

You must log in to answer this question.

Browse other questions tagged .