none
Unable to play audio wave files using WPF Media Element class on Windows10 RRS feed

  • Question

  • We are using Media Element class for playing audio wave files. this is working fine in in windows 7 and windows 8 but we are getting System.Windows.Media.InvalidWmpVersionException in windows 10 fresh PC.

    I believe Windows Media Player is not available in windows 10 so we are getting this exception.

    Is there any workaround available?

    Monday, August 31, 2015 7:35 AM

Answers

  • The stuff andy metioned is windows media player.

    The version for windows 10.

    As explained in that last link

    http://winsupersite.com/windows-10/what-are-windows-10-n-and-kn-editions

    "

    Due to a ruling for anti-competitive practices by the European Commission in 2004, Microsoft has been forced to maintain special editions for its Windows operating systems. Labeled "N" for Europe and "KN" for Korea, these editions include all the base features of the operating system but without Windows Media Player and related technologies pre-installed. For the Windows 10 editions, this includes Windows Media Player, Music, Video, Voice Recorder and Skype.

    If you reside in and purchase a PC in a country required to use the N and KN editions, you receive a computer without media technologies. This can cause some headaches, particularly when using apps and visiting web sites that have been coded to utilize the built-in Windows media capabilities. For a full list of excluded features, check out Media feature pack for Windows 10 N and Windows 10 KN editions on the Microsoft support site.

    The ruling was about consumer choice. However, if you choose to, you can still install Windows Media Player and related apps anytime for free by downloading and installing a special Media Feature Pack.

    "


    Tuesday, September 1, 2015 8:15 AM
    Moderator

All replies

  • If you don't have windows media player installed, you could install the media feature pack

    https://www.microsoft.com/en-us/download/details.aspx?id=48231

    https://support.microsoft.com/en-us/kb/3010081

    http://winsupersite.com/windows-10/what-are-windows-10-n-and-kn-editions


    Monday, August 31, 2015 8:23 AM
    Moderator
  • Hi,

    Whether it works depends on your installation of Win10 (if it has Windows Media Player installed).

    MediaElement requires Windows Media Player or the stuff Andy mentioned. If you just want to play a *.wav file, you could fall back to SoundPlayer:

    SoundPlayer sp = new SoundPlayer("Akkord.wav");
    sp.Play();

    No Windows Media Player required.

    Rgds MM


    PS: Please mark as answer if helpful. Thanks!

    Monday, August 31, 2015 9:00 AM
  • I tried using Sound Player. Am able to play the wave file, but there are no options to Fast-forward or pause and resume
    Tuesday, September 1, 2015 7:48 AM
  • The stuff andy metioned is windows media player.

    The version for windows 10.

    As explained in that last link

    http://winsupersite.com/windows-10/what-are-windows-10-n-and-kn-editions

    "

    Due to a ruling for anti-competitive practices by the European Commission in 2004, Microsoft has been forced to maintain special editions for its Windows operating systems. Labeled "N" for Europe and "KN" for Korea, these editions include all the base features of the operating system but without Windows Media Player and related technologies pre-installed. For the Windows 10 editions, this includes Windows Media Player, Music, Video, Voice Recorder and Skype.

    If you reside in and purchase a PC in a country required to use the N and KN editions, you receive a computer without media technologies. This can cause some headaches, particularly when using apps and visiting web sites that have been coded to utilize the built-in Windows media capabilities. For a full list of excluded features, check out Media feature pack for Windows 10 N and Windows 10 KN editions on the Microsoft support site.

    The ruling was about consumer choice. However, if you choose to, you can still install Windows Media Player and related apps anytime for free by downloading and installing a special Media Feature Pack.

    "


    Tuesday, September 1, 2015 8:15 AM
    Moderator
  • @Andy,

    Aha, got it. Thanks for clarifying.

    Rgds MM


    PS: Please mark as answer if helpful. Thanks!

    Tuesday, September 1, 2015 8:22 AM
  • Thanks for clarifying
    Wednesday, September 2, 2015 6:59 AM