Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp4 #33

Open
rdcs opened this issue May 21, 2019 · 2 comments
Open

mp4 #33

rdcs opened this issue May 21, 2019 · 2 comments

Comments

@rdcs
Copy link

rdcs commented May 21, 2019

I have used your tool very successfully, however, my code returns a null in the following when an mp4 is tested:
(The filePath extension is mp4)
NSUrl videoFileURL = NSUrl.FromString(filePath);
Uri uri = new Uri(videoFileURL.ToString());
StreamReader streamReader = new StreamReader(filePath);
FileInfo fileInfo = new FileInfo(filePath);

            Stream stream = streamReader.BaseStream;
            FileType fileType = MimeDetective.FileInfoExtensions.GetFileType(fileInfo);

(The fileType here is null)
This code works fine for .mov files (quicktime) but fails with mp4. Please let me know if I am using it incorrectly for these type of files or if there is actually an issue.
Thanks!

@clarkis117
Copy link
Collaborator

clarkis117 commented May 21, 2019 via email

@rdcs
Copy link
Author

rdcs commented May 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants