Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaPlayer doesn't work if legacy WMP is not installed. #10366

Open
JordanSjodinFaithlife opened this issue Jan 30, 2025 · 0 comments
Open

MediaPlayer doesn't work if legacy WMP is not installed. #10366

JordanSjodinFaithlife opened this issue Jan 30, 2025 · 0 comments
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions

Comments

@JordanSjodinFaithlife
Copy link

Description

In modern versions of Windows, Windows Media Player is a legacy item one has to add via Optional Features. If you don't do this, then the MediaPlayer and VideoDrawing in WPF apps doesn't work.

This error is shown if the legacy player is not installed:
System.Runtime.InteropServices.COMException (0x88980507): MILAVERR_INVALIDWMPVERSION (0x88980507)

It would be great to be able to play videos within WPF regardless of if the end-user has an optional feature installed of not.

Reproduction Steps

  1. Install a fresh install of Windows 11 Or Go to "Manage Optional Features" and remove the "Windows Media Player Legacy" from your system (might need to reboot for it to actually go away)
  2. Try to use a WPF app that uses a MediaPlayer and VideoDrawing to playback a video.

Expected behavior

  1. WPF would provide a working MediaPlayer that doesn't rely on something labeled 'Legacy' to be installed.

Actual behavior

  1. WPF does not provide a working MediaPlayer

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

.net 8
Windows 10 or 11
x64

Does not appear to be affected by this configuration.

Other information

No response

@himgoyalmicro himgoyalmicro added the Enhancement Requested Product code improvement that does NOT require public API changes/additions label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Requested Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

No branches or pull requests

2 participants