Forums

Welcome Guest Search | Active Topics | Members

Media Processor InfoRetriever freezes asp page Options
Tblaster
Posted: Monday, June 12, 2006 2:01:15 PM
Rank: Member
Groups: Member

Joined: 6/12/2006
Posts: 12
Points: 0
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:
' Test files
Dim file_arr(3)
file_arr(0) = "test.wmv"
file_arr(1) = "test.avi"
file_arr(2) = "test.mpeg"
file_arr(3) = "test.asx"

'Create instabce of Aurigma Media Processors InfoRetriever
Dim objInfoRetriever
Set objInfoRetriever = Server.CreateObject("COMObjectsNET.InfoRetriever")

For i = 0 To UBound(file_arr)
      ' Load file
      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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.