Afternoon all...

Now I'm new to all this COM malarky so could do with some help.  We're
trying to integrate Flix Pro [http://www.wildform.com/flix/flix_pro.php]
to allow uploaded videos (.avi or .mpg) to be automagically converted to
.flv for streaming download.

The sample ASP source that comes with the demo installation has the
following line to set the video export type (i.e. what comes out):

flxEngine.SetExportVideoType(ExportMXVideo)

Here's a cut down version of what I've got so far (it's just a demo):

------------------------------8<------------------------------
<cfscript>
    // the actual Flix engine (COM component)
    variables.flxEngine = createobject("com",
"Flix_COM.WF_FlixCOMEncoder");

    // set the input and output files
    variables.flxEngine.SetInputFile(url.input);
    variables.flxEngine.SetOutputFile(url.output);

    // set export type
    // FIXME: so how does this work then?
    variables.flxEngine.SetExportVideoType(ExportMXVideo);
</cfscript>
------------------------------8<------------------------------

It's the "ExportMXVideo" that I'm having issues with.  From what I can
understand, SetExportVideoType() accepts an object of type
"WF_ExportedVideoType", but I have absolutely no idea how to go about
creating it...  Here's the docs about that function:

------------------------------8<------------------------------
SetExportVideoType
==================
Description: The SetExportVideoType method sets the type of video to
export.

C++:
  HRESULT SetExportVideoType(
    WF_ExportedVideoType exportVideoType
  );

Visual Basic:
  object.SetExportVideoType(exportVideoType As WF_ExportedVideoType)

Parameters:
-----------
C++:
  exportVideoType
    A WF_EmbeddedUrlType indicating the type of video to export.

Visual Basic:
  object  
    Object expression that resolves to a WF_FlixCOMEncoder object.

Return Values:
--------------
C++:
  If the method succeeds, the return value is S_OK. 
------------------------------8<------------------------------

Does anyone have any experience with this?

Cheers,

Tim.

--
-------------------------------------------------------
<CF_CodingContest mode="judging" newentries="false">
Maze Solver - http://tech.badpen.com/cfcontest/
-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------

--
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to