Exception when opening a video file using MediaPlayer class from a service

0

I'm using the MediaPlayer class (https://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer(v=vs.110).aspx) to open a video file programmatically and send frames to a client. Everything works fine, however my code needs to run from a service, but when I open the file, I get the following exception in the MediaFailed event:

COMException ('Exception from HRESULT: 0xC00D11BA')

I have googled it and there is not too much information about it other than a possible sound card issue, which I don't think it should be related because it opens just fine when I'm not running it from a service. Any ideas?

c#
windows
video
media
windows-media-player
asked on Stack Overflow May 18, 2018 by LEM

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0