Search code examples
c#windowsmedia-player

AxWindowsMediaPlayer - black screen


I'm building a desktop app in c# that uses AxWindowsMediaPlayer and is working nice, but when i kill explorer.exe (because i'm trying simulate kiosk mode on windows 10 home) the AxWindowsMediaPlayer control doesn't play, only shows a black screen.

What can i do to put it work? Or any alternative for AxWindowsMediaPlayer?

I just need something to simulate screen saver; slide show to pictures and sometimes play some videos with no play/pause/stop... controls.

Thank you


Solution

  • Adding this line resolved the issue.

    Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
    

    Thank you.