I am having some problems with retrieving information from varrious video files from one asp page. After the information has been collected from the first file (test.wmv), the page stops responding (as if it is still loading) and the media processor somehow locks the file second file (test.avi). Meaning that I can't delete the file or do anything else with it, untill I reboot the server or wait a long time (> 1 hour). Below is the code that I am running. I suspect the problem occurs when the loop runs "objInfoRetriever.RetrieveInfo" for the second time.
Thanks in advance!
Code:
Dim file_arr(3)
file_arr(0) = "test.wmv"
file_arr(1) = "test.avi"
file_arr(2) = "test.mpeg"
file_arr(3) = "test.asx"
Dim objInfoRetriever
Set objInfoRetriever = Server.CreateObject("COMObjectsNET.InfoRetriever")
For i = 0 To UBound(file_arr)
objInfoRetriever.RetrieveInfo Server.MapPath(file_arr(i))
MediaType = objInfoRetriever.MediaType
Width = objInfoRetriever.Width
Height = objInfoRetriever.Height
Duration = objInfoRetriever.Duration
Response.write file_arr(i) & " (MediaType: " & MediaType & " Dimensions: " & Width & "x" & Height & ", Duration: " & Duration & ")"
Response.flush
Next