Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2007, 05:38 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default WindowsMediaPlayer and WMPLib

Hi,

I'm working in a conversion module of media files (mostly avi, mpg, 3gp, etc) into flash video ".flv". The file conversion is working fine.

Now I want to check with the media whether it is completely converted or not. I used to grab the duration of the media in an windows based application (by creating an object for windowsmediaplayer) but my module is a windows service. When I'm trying to run the same code I used in the windows application successfully, in service, it is writing only "0:00" and as both of the media is compared with and giving a status that the media conversion is success.

But sometimes, the service is failed to convert the file or break in the middle (the converter is a seperate application and the service is only initialising the application and handing it over to another event handler) but to me if the file is not converted, the exception should be thrown.

If anybody used to work in same kind of project, plz help me out to get the proper code for getting the duration.

Thanks and Regards,

Senthil Kumar M.

[email protected]
__________________
Thanks in advance.

Regards,

Senthil Kumar M.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.