dcsimg
Results 1 to 2 of 2

Thread: [RESOLVED] Retreiving the duration of a video

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    44

    Resolved [RESOLVED] Retreiving the duration of a video

    hello
    how can I Retreiving the duration of a video file without using the media player

    thanks

  2. #2
    Fanatic Member stlaural's Avatar
    Join Date
    Sep 2007
    Location
    Quebec, Canada
    Posts
    683

    Re: Retreiving the duration of a video

    Found that on the web, they use DirectX to get the length of a video file.

    didn't test it but it might work, have a look.

    Note : you might need to install the DirectX SDK in order to be able to get the assembly that you need to add as a reference to your project. You can find it here
    Last edited by stlaural; Jan 20th, 2010 at 06:45 AM.
    Alex
    .NET developer
    "No. Not even in the face of Armageddon. Never compromise." (Walter Kovacs/Rorschach)

    Things to consider before posting.
    Don't forget to rate the posts if they helped and mark thread as resolved when they are.


    .Net Regex Syntax (Scripting) | .Net Regex Language Element | .Net Regex Class | DateTime format | Framework 4.0: what's new
    My fresh new blog : writingthecode, even if I don't post much.

    System: Intel i7 920, Kingston SSDNow V100 64gig, HDD WD Caviar Black 1TB, External WD "My Book" 500GB, XFX Radeon 4890 XT 1GB, 12 GBs Tri-Channel RAM, 1x27" and 1x23" LCDs, Windows 10 x64, ]VS2015, Framework 3.5 and 4.0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width