Reputation: 157
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
Upvotes: 0
Views: 1257
Reputation: 157
Adding this line resolved the issue.
Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
Thank you.
Upvotes: 1
Reputation: 121
I would consider using DirectX rather than the WMP control, you'll have more control and probably less overhead.
See:
http://www.c-sharpcorner.com/UploadFile/mgold/PlayingVideo11242005002218AM/PlayingVideo.aspx
Upvotes: 0