Hi!
I am trying to find the length of a video file using the following code:
Microsoft.DirectX.AudioVideoPlayback.Video video = new Microsoft.DirectX.AudioVideoPlayback.Video(path);
StringBuilder sb = new StringBuilder();
sb.Append(video.Caption); sb.Append("\r\n");
sb.Append(video.Size.Width.ToString());
sb.Append( "\r\n"); sb.Append(video.Size.Height.ToString());
sb.Append("\r\n"); sb.Append(video.Duration.ToString());
textBox1.Text = sb.ToString();
But in order to use this code I need to add reference to "Microsoft.DirectX.AudioVideoPlayback.dll" file.
But I am unable to do so. On running the code it says "unable to load the file".
I am clueless.
Is the DLL file corrupt or I am missing something.
Please Help!