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?
User contributions licensed under CC BY-SA 3.0