Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8678625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:46:14+00:00 2026-06-12T20:46:14+00:00

I am working on retrieving data from a .mp4 file using the Shell32 library.

  • 0

I am working on retrieving data from a .mp4 file using the Shell32 library.

The code I have works on localhost, but when I use it on a IIS server it returns the file as a “MP4 File” instead of a “MP4 Video” which results in no video data (Width, height, frame rate, etc.) getting back.

I read that I could use GetDetailsEx to get the correct data back, but this method doesn’t seem to exist in the Folder class.

public static ExtendedFilePropertiesMp4 GetExtendedFileProperties(string directory, string fileName)
    {
        Dictionary<string, int> headers = new Dictionary<string,int>();

        Shell shell = new Shell();
        Folder folder;

        folder = shell.NameSpace(directory);

        for (int i = 0; i < short.MaxValue; i++)
        {
            string header = folder.GetDetailsOf(null, i);

            if (String.IsNullOrEmpty(header))
                break;

            if (!headers.ContainsKey(header))
                headers.Add(header, i);
        }

        FolderItems folderItems = folder.Items();

        foreach (FolderItem2 item in folder.Items())
        {
            if (folder.GetDetailsOf(item, 0) == fileName)
            {
                ExtendedFilePropertiesMp4 extendedFileProperties = new ExtendedFilePropertiesMp4();

                // Get data and set the properties of the extendFileProperties

                return extendedFileProperties;
            }
        }

        return null;
    }

Is there a setting in the Web.config or similar I need to change for it to work?

EDIT: I see I have been down voted, could the people that did it explain why? I’d love to elaborate on my problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:46:16+00:00Added an answer on June 12, 2026 at 8:46 pm

    What I was using this for was to change the width and height of a div tag that had a video tag inside of it.

    Since the above didn’t work I found another way of doing it, which was by using the loadedmetadata.

    For more information see this answer:
    jQuery, checking to see if video has height/width

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Retrieving data from the REST Server works well, but if I want to post
I have jqGrid 3.5 (full) mostly working. I have it retrieving data with the
I'm working on a GWT app where I'm retrieving a file from a web
I am currently working on a system for storing and retrieving data from a
I'm working on an application that opens a database connection and retrieving data from
Am working in a project where retrieving data from database takes time since the
I am successfully retrieving JSON data from a web service with GET using Restkit's
is there any small working program for recieving from and sending data to client
I have a query in a stored procedure retrieving some data in XML format
i'm working on google analytics and try to get some data from analytics. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.