Reputation: 419
I would like to play a .mp4 file. I was using the following code to play a .wmv file using Microsoft.DirectX.AudioVideoPlayback but it crashes when I switch to the .mp4 file format.
Video v;
v = Video.FromFile("C:\\sample_mpeg4.mp4");
v.Owner = pbMain;
v.Play();
Is there a simple way to get the .mp4 movie file playing?
Upvotes: 1
Views: 2937
Reputation: 1157
Check out this answer to a similar question: Windows (ideally .NET callable) API to join MP4 and/or 3GP files?
After a bit of searching I can't find a list of supported formats for the Microsoft.DirectX.AudioVideoPlaytback library, thought the FFMPEG libraries should do the job as well as anything else out there.
Upvotes: 1