Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Grab play lenght/runtime of AVI/WMV/MPG file in ASP?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Irresistance - 16 Mar 2008 07:21 GMT
Hello,
This may be the wrong group - I could not find the "oldskool" ASP one, so
sorry if misposted.

Ok what I need to do is really laughably simple. I would like to be able to
"scan" a videofile (AVI, WMV and MPG) using an ASP component (or otherwise)
to find out its play length. Yeah, just like you can see in File Explorer.
Resolution would be handy too, but play/runtime is most important.

I had a look at the Scripting.FileSystemObject but there does not seem to be
anything related to this.

If you know of any component or some cool trick to get this info, you shall
be my superhero programmer for one day!

Thanks

W
Irresistance - 16 Mar 2008 07:23 GMT
Oh and if you know of a JavaScript way to get this information, thats fine
too. I need it to make a timeline, so that when I drag the file into the
timeline, it automatically assigns the runtime as the default playtime
within the timeline :)

W

> Hello,
> This may be the wrong group - I could not find the "oldskool" ASP one, so
[quoted text clipped - 15 lines]
>
> W
John Timney (MVP) - 16 Mar 2008 22:45 GMT
Certainly not the best group for an answer - but you need to start somehwere
to get an idea of how to solve this.

Heres some C# code - stick it ina  webservice and call it via a web method
wrapper from javascript
http://bellouti.wordpress.com/2007/09/28/determine-a-video-size/

Not sure what old ASP is like for Ajax support - but you could certainly
call webservices.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

> Oh and if you know of a JavaScript way to get this information, thats fine
> too. I need it to make a timeline, so that when I drag the file into the
[quoted text clipped - 22 lines]
>>
>> W

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.