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]