View Full Version : On2 Flix SDK -- ASP/Vb Script Sample needed
Hammad
12-26-2006, 10:48 AM
Hi, I downloaded the demo version for the SDK, but couldn't find any ASP/Vb Script related examples there. I shall be grateful if somebody can refer me such a sample.
Thanks in advance.
Hammad
01-08-2007, 02:09 AM
Hi, I wrote this function by looking at the C# sample included, but unable to encode the file.
In the function below, the object is created, copyrights and version info are printed okay, but when i try to set the input file (wiz passed as string argument i.e. absolute path and file name to be converted), nothing heppens, i.e. neither some error nor the required action. Can anybody point out what's wrong with this.
Thanks,
Hammad.
function encode_video(pSource, pDestination)
on error resume next
SET flix = Server.CreateObject("On2.FlixEngine")
response.write flix.Copyright() & " " & flix.version() & "<br>"
flix.setInputFile(pSource)
SET vidopts = flix.videoOptions()
respons.write "Source Width: " & vidopts.getSourceWidth() & "<br>"
respons.write "Source Height: " & vidopts.getSourceHeight() & "<br>"
respons.write "Source Duration: " & vidopts.getSourceDuration() & "<br>"
flix.setOutputFile(pDestination)
Call flix.encode()
response.write flix.encodingStatus()
SET flix = Nothing
end function
vBulletin v3.5.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.