I am trying to play a video in a Form with DirectX 9 but it doesn't work. :(
I have no experience with DirectX so I thought I have to start with a simple videoplayer.
I've got a video in my "Content" folder of the project which conatins an ".avi" file.
Heres my code:
private void OpenVideo()
Video stream = new Video(@"Content\Video.avi");
stream.Owner = panelPlay;
stream.Size = new Size(400, 400);
Debugging works but the form is still blank. Can anyone help?
Edit: Okay I've got another problem.
I've forgot to call the method (shame on me).
Now the debugger gives an error "loader lock". The search in a famous search engine gives following results:
I've tried to fix it with the workaround but now the debugger throws: "Application error".
Anyone knows how to fix it?