MediaPlayer
doesn't work if legacy WMP is not installed.
#10366
Labels
Enhancement Requested
Product code improvement that does NOT require public API changes/additions
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
andVideoDrawing
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
MediaPlayer
andVideoDrawing
to playback a video.Expected behavior
MediaPlayer
that doesn't rely on something labeled 'Legacy' to be installed.Actual behavior
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
The text was updated successfully, but these errors were encountered: