Skip to main content
added markdown to code, added win-forms & video tags
Source Link
Pikalek
  • 12.5k
  • 5
  • 45
  • 52

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)), };

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

Who knows advice? Thanks for that!

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!

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!

Source Link

Playing Video Files in Windows Forms with MediaPlayer

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!