I'm reading from a folder the .mp4 files there Currently I'm using FileInfo to extract the name FileInfo is limited to a few of the details a movie contains. I also need to extract other information like Title Subtitle Comments Genre Directors Producers
DirectoryInfo dirInfo = new DirectoryInfo(@"..\bin\Debug\Folder");
FileInfo[] fileNames = dirInfo.GetFiles("*.mp4");
foreach (FileInfo fi in fileNames)
{
string movieName = fi.Name.Split('.')[0]; // returns the file name
VideoFile newVideo = new VideoFile(movieName); // insert name in object
director.ListVid.Add(newVideo); // add object to a director object - aka another list
}
listVideoDirector.Add(director); //add director object to list
My videoFile object has more attributes. I need to extract them from the actual file